RS-232 with NI-700 ?
bob
Posts: 296
Hi there
The RS-232 ports of the NI-700 are software programmable and each time the master is rebooted their setup get lost, so I have put the command
SEND_STRING dvSerialDevice1, "'SET BAUD 9600,N,8,1 485 DISABLE'"
in my STARTUP section of the program but it does nothing! When I telnet to the NI-700 and execute
send_string [dvSerialDevice1, 'SET BAUD 9600,N,8,1 485 DISABLE']
then everything is fine and the serial device can be controlled fine.
Do anyone know what I am doing wrong and how can I setup these ports permanently?
Many thanks!
The RS-232 ports of the NI-700 are software programmable and each time the master is rebooted their setup get lost, so I have put the command
SEND_STRING dvSerialDevice1, "'SET BAUD 9600,N,8,1 485 DISABLE'"
in my STARTUP section of the program but it does nothing! When I telnet to the NI-700 and execute
send_string [dvSerialDevice1, 'SET BAUD 9600,N,8,1 485 DISABLE']
then everything is fine and the serial device can be controlled fine.
Do anyone know what I am doing wrong and how can I setup these ports permanently?
Many thanks!
0
Comments
Generally I put the baud rate setting in the online event of the device as well, just keeps everything a bit neater, also if you are using an external serial box it will ensure everything will always play nice.
Edit: now it works as it should!