Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting start bit for RS-232 communication

We want to control the Pfeiffer make TPG 256A gauge controller through PC via RS-232 Port. We had written program in Visual Basic using NI component work CWSerial1,  through which we are able to send the command to the gauge controller i.e we are able to change the CONTRAST and make the sensor ON/OFF. But we are not able to receive data from the controller.We receive either '?' or '|' characher and <cr> from the controller when we try to read from the controller.
the format for data is given as follows:

1 Start bit, 8 data bits, 1 stop bit, no parity bit, no hardware handshake

where i am able to set the data bits , stop bit and other paramater but there is no way to set the start bit. i would like to know whether there is a way to set the start bit or it is not needed.
Also it would be helpful if u can send me some sample program if possible  in C or Visual Basic language to access  the  pfeiffer controller.
 
Thankx
regards
Ramchandra Chavan
 
 
0 Kudos
Message 1 of 3
(3,202 Views)
Hello RBCHAVAN,

There is no way to set the start bit.  The start bit is always the same.  You can look at this link for more information about it.

As for examples, are you using LabWindows/CVI or Visual Studio?


Message Edited by O_Proulx on 01-16-2008 09:29 AM
O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 3
(3,153 Views)
duplicate post, please stick to the original thread
greetings from the Netherlands
0 Kudos
Message 3 of 3
(3,139 Views)