DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Ignore characters at rs232 input

Hi,

i'm using rs232 modules to communicate with an external controller. Reading values from this controller periodically is no problem. Also setting the controller with new values (from time to time). But after setting a new value, the controller confirms with <ACK> (x06 Hex) or <NAK> (x15 hex), witch disturbs the cyclic reading.

Is there a way to tell Dasylab V10 to ignore all \x06 or \x15 transmissions on rs232?
Or is there a possibility to evaluate only the incoming characters after the cyclic demand-string for new values?

Thank you for any help!

Marc
0 Kudos
Message 1 of 3
(7,408 Views)
Buried really deep in the help for the RS232 Output format:

If there is the need to wait for the Response String of the external device the following string has to be attached to the format string.

‘\#x' (x=1-999)

That ensures that no other module will address the interface. If the response is received the defined number (x) of characters will be skipped.

If the device consistently responds with two bytes, then use

\#2

after the output string.

For example,   [a]\r\#2


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 3
(7,404 Views)
Hi CJ,

thank You for Your help. It works, but I had to disable the data output option "without synchronisation" additionally.

Best reguards.

Marc
0 Kudos
Message 3 of 3
(7,396 Views)