Hello,
I am communicating with a programmable power supply using an RS-232
interface through Visual Studio and having a slight problem. The power
supply documentation supplied very little information about communicating
this way except for the following:
Baud Rate: 1200, 2400, 4800, or 9600
Parity Bit: none
Data Bit: 8 bits
Stop Bit: 1 stop bit
Data flow control: none
I have set up a DCB (Platform SDK) structure in code and am able to actually
communicate with the power supply and it carries out the action I ask it to,
but it is painfully slow (on the order of 2-3 seconds per command). The
following is what I have set up in code (as far as serial parameters are
concerned):
DCB Parms;
Parms.BaudRate = CBR_9600;
Parms.ByteSize = 8;
Parms.Parity = NOPARITY;
Parms.StopBits = ONESTOPBIT;
and again, this works, but it is running way too slow for the current
purposes. I have carried out the same actions through MATLAB's serial
interface and also just through HyperTerminal (Start
Menu-->Accessories-->Communications) and the power supply responds
instantaneously to inputs through those interfaces.
Can anybody provide any guidance as to what I can do to achieve
instantaneous responses through Visual Studio? Thanks in advance.
-Ryan