DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting issue with RS232 input & output modules in the same interface

Hello

I'm running Dasylab 2016, using the RS232 input and output modules connected in the same interface (COM1). The problem is that while I'm reading values from the input module everything works fine (I'm reading 12 channels with the measurement request: $020\r for channel 0, $021\r for channel 1, etc with a sampling rate of 0.2s). The format read is a\r. Then, when I send a command #010+00.000\r on the output module (the output format [a]\r), I notice problems with synchronization of the values read by the input module. The external device that I'm using sends/receives the data using the rs485 protocol but I have a RS485-USB converter to get a emulated COM port. Concluding, I think there is data collision between the input/output modules.

Any help to solve this issue is well appreciated.

Many thanks

Miguel

 

0 Kudos
Message 1 of 2
(2,987 Views)

Does the device respond to the output? 

If so, you need to account for all characters, otherwise it does confuse the input. 

So, if the response is "ok<CR>", then skip three characters. 

 

#010+00.000\r\#3

 

Waiting for device response     \# m 1<m<999
m = number of characters to skip
Waits after sending for the response sign of the external device. During the waiting period no other measurement device can access the serial interface. As soon as the response arrives, DASYLab enables the interface.
The m parameter specifies the number of characters that DASYLab skips at the beginning of a response string.
Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 2 of 2
(2,979 Views)