10-05-2009 02:04 PM
Hello. I am trying to control a MKS Instruments 651C Pressure Controller via RS-232. Right now, I am just trying to establish basic communication with the device over the serial port. I can connect to the device with windows hyperterminal using the following settings:
Bits per second: 9600
Data bits: 8
Parity: None
Stop bits: 1
Flow control: None
Once I connect, I go to File-->Properties, Settings tab,and click on ASCII Settings button. I must check the following boxes (not checked by default) for any communication to occur:
Send line ends with line feeds
Echo typed characters locally
Append line feeds to incoming line ends
Force incoming data to 7-bit ASCII
Once I have all that set, I can communicate with my device via hyperterminal. What I would like to do now is to use LabVIEW to control the device, so I need to be able to send/receive data over the RS-232 connection via LabVIEW. I have been using the Basic Serial Write and Read vi, but I am not getting any response from my device. Looking at the block diagram for the basic read/write, I saw that Enable Termination Char was hardwired to false, so I changed it to a control and set it to true. I also changed Termination Char to a control and set it to 0xD for CR. I still cannot get a response from the device.
I'm guessing that I am still not setting everything for the serial port setup correctly. Can anyone give me some suggestions on what else to modify to match my hyperterminal settings? Thanks!
Solved! Go to Solution.
10-05-2009 02:26 PM
10-05-2009 02:29 PM
10-05-2009 02:31 PM
10-05-2009 02:33 PM
10-05-2009 02:33 PM
10-05-2009 02:36 PM
10-05-2009 02:44 PM
10-05-2009 02:48 PM
10-05-2009 02:50 PM
Mark,
I realize this 7-bit ASCII thing may be the problem, but that is the only way hyperterminal will communicate with the device. How can I get LabVIEW to do this?