Define 'but its nt working' meaning what errors did you get, why you think it isn't working, what voltages its getting, how you are controlling it, relevant source code, etc.
We know nothing about your setup
actually when i tried nothing will show ..
i have tried in matlab and labview
matlab code is given below:
s = serial('COM3');
fopen(s);
for n = 1:100
fwrite(s,10101010,'uchar');
pause(.1);
fwrite(s,10000010,'uchar');
fwrite(s,01000000,'uchar');
fwrite(s,00000000,'uchar');
fwrite(s,01000010,'uchar');
end
fclose(s);