DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

DASYLab RS232 Input Module Configuration

I'm trying to set up a DASYLab application. I have continuous RS-232 data strings that look like this:

 

I 00255 -027.7 -00.1 003.9 +0.00 +0.45 -0.88 +0.00 -0.03 -1.00 -41.4 +00.2 +00.2 -000.0
I 00255 -031.3 -00.1 003.9 +0.00 +0.50 -0.85 +0.00 -0.02 -0.99 -23.3 +00.3 +00.1 -000.0
I 00255 -033.8 -00.1 003.9 +0.00 +0.55 -0.83 +0.00 -0.01 -0.99 -05.6 -00.0 -00.1 -000.0
I 00256 -034.9 -00.1 003.9 +0.00 +0.58 -0.81 +0.00 +0.01 -1.00 -00.7 +00.0 +00.1 -000.0
I 00256 -035.1 -00.1 003.9 -0.00 +0.58 -0.82 +0.00 -0.01 -1.01 -11.7 +00.1 -00.1 -000.0
I 00256 -035.7 -00.1 003.9 +0.00 +0.59 -0.80 +0.00 +0.03 -0.99 +23.9 -00.1 +00.1 -000.0

 

I'd like to use a single RS232 input module, and have each channel (0-13) represent one of the 14 values in the string. My question is -- In the properties dialog box for the RS232 input module, what should be in the "measurement data format" field for each channel?

 

Thanks in advance.

 

Mike

0 Kudos
Message 1 of 5
(9,286 Views)

Hey Mike,

 

What is the RS232 input module that you are using?

Justin E
National Instruments R&D
0 Kudos
Message 2 of 5
(9,258 Views)
Hello Mike,

I'm unsafe if you can general task / thread safe solve this application with the standard RS232 input module. You wrote that you have a continuous RS232 data strings stream - this means that you don't need any start command for the device and the device is always sending the stream? If my supposition is correct than you have the first "job" to synchronize into the string stream and figure out the identification symbol "I". If you have found than you can convert the following strings, separation with " " or "  " or "   " ? into the 14 channel values. Then you can synchronize into the stream and looking for the next "I". I'm affraid this is only task / thread safe to solve with an specific C/C++ algorithm included into an Extension Toolkit module from DASYLab.

Best regards,
MHa
0 Kudos
Message 3 of 5
(9,252 Views)

This is an example of my string "x" means skip a character "a" reads a character the Data Request Command: A/r waits for the "A" at the start of the string to begin reading.

 

A +014.49 +018.93 +0000.0 +0000.0 0000.0 C2H4<CR>

 

Channel 0

 

Data Request Command: A/r

 

Data Format: "A " 1x 8a

 

 

Channel 1

 

Data Request Command: blank

 

Data Format: 8a

 

 

Channel 2

 

Data Request Command: blank

 

Data Format: 8a

 

 

Channel 3

 

Data Request Command: blank

 

Data Format: 8a

 

 

 

Channel 4

 

Data Request Command: blank

 

Data Format: a/r

Message 4 of 5
(9,249 Views)

Chorlton1,

 

Thanks very much - it works perfectly as you describe. Nice, simple solution!

 

Regards,

 

Mike

0 Kudos
Message 5 of 5
(9,239 Views)