DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

string

Solved!
Go to solution

Hi,

 

I'm trying to display the data that i'm getting trhough the serial port. The device is sending data continuously to the pc. So in DASYlab i have connected a RS232 module to a chart recorder module and then i've configured the RS232 interface. After that when i check the RS232 monitor i see that the data is effectively getting to DASYlab, but when i click on the start button i get no response in the chart recorder. Thanks

 

 

0 Kudos
Message 1 of 14
(7,725 Views)

Sorry got the title wrong, don't know how to change it yet.It should be How can i display data from serial port?

0 Kudos
Message 2 of 14
(7,719 Views)

That problem is typically associated with com port interface settings. Try each hardware handshake in turn, starting at the bottom of the list. One of them will work.

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 3 of 14
(7,713 Views)

Hello, thank you for responding so fast :D. I've just try them all and nothing, but when i put a "b" without the quotes in the "Measurement data format" box i'm getting the expected curve. But then again i don't know what the "b" stands for.

0 Kudos
Message 4 of 14
(7,711 Views)

Please look at the help to understand the different data formats available to you. "b" is a byte of binary data. "a" is ascii data that you can typically read in the RS232 Monitor. DASYLab also has formats for integer, floating point, and for manipulation of the data stream.

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 5 of 14
(7,708 Views)

Thanks a lot. I've got the curve that i want using the "b" in the "Measurement data format" box. Now im trying to parse the data, but all the examples that i found use the "a" for ascii data.

For example the device is sending an string like this: ABC1232123 (i can change it at will). So my question is how do i tell DASYlab to display 1232123 after detecting the ABC. Thanks again

0 Kudos
Message 6 of 14
(7,703 Views)

Use 3x a\r if the string is delimited by a return character.

 

Use 3x 6a if not

 

You can use "ABC" a\r to force it to anchor on the ABC before starting the parse

 

or, "ABC" 6a if you are not delimited by a return character.

 

Posting an image of the RS232 monitor might be helpful (use ALT-Print Screen to copy the window to the windows clipboard.)

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 7 of 14
(7,700 Views)

The string is not delimited by a return character so i used "ABC" 6a. It works on the RS232 monitor (see image attached). But then when i click on the start button i don't get the curve of the next 6 ascii characters (see image attached). Sorry for my english and thanks a lot for your time and patience.

Download All
0 Kudos
Message 8 of 14
(7,698 Views)

Here i attached an image of the curve that i get with a"b" on the "Measurement data format" box. Wich i don't get when i use the "a" for ascii and i found that extrange because the RS232 read is in ascii.

0 Kudos
Message 9 of 14
(7,694 Views)

I cannot tell what you're trying to do.

 

If the string is ABCDEFGHIJKLMNOPQRSTUVWZYZ

 

and "ABC" 6a gives you DEFGHI

 

That's not a number. DASYLab is looking for digits, like +1234.5

 

If you use the B to read, then each character will read the binary equivalent of that character, for example, A is encoded as decimal number 65, or binary 0100 0001

 

What are you trying to do? If you just want the letters then you can read them as individual binary channels using B, or you can extract them into a global string, but you must have a delimiter to do that.

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 10 of 14
(7,693 Views)