Hi! I am on a project. I have a laptop and It doesn't have a COM port. So what I would like to do is to get a usb to RS232 cable and write a code so to output voltages on usb and measure it on the RS-232 end. Can I vary the output voltage to my needs?
Suggest a code cause it's the first time i want to do this. Thanks!
If you are speaking of analog voltage, you can relax - both COM-port and USB are digital interfaces, so it is not possible to output arbitrary voltage by them directly.
You'd better choose some DAC - digital to analog converter - which could be controlled from USB - and purchase it. If you can explain what is your goal, I perhaps can give better advise...
Well i basically want to output bits from usb and via the cable to RS232. How would I know the level of the voltage at the RS232 end? I am an electronic engineer and basicaly with the bit stream i would get from the RS232 end i would like to perform an FSK (Frequency shift keying). So some harware will be involved as well.
The other thing i would like to have is a window on my screen so that I would be able to input HEX letters or 01 bits and press enter and see that string or bits to the RS232 end.