DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

DASY LAB 2022, RS232

Solved!
Go to solution

Hi Everyone,

I have been working with RS 232 for a Fluke 8808A digital meter.  Everything works fine when I have one channel recording.  However, the fluke has an option for dual output.  I almost have it right... but am probably missing one important letter in my measurement format command.

 

The data comes out like this: +X.XXXXE+0 VDC, +X.XXXXE+0 ADC<CR><LF>

 

I was able to see both outputs in a Digital Meter via this format:

Ch 0: a\x2c

Ch 1: a\r

 

The digital meter shows both channels correctly, but I can't pass the first channel data anywhere else.  It says it is the wrong format (sending to either a write file or chart recorder).  When looking at the RS 232 monitor, it seems like some of my string is capturing the "F>" portion of the data (seen by color coding in attachment).

 

How do I format my string to pass through correctly?

 

Thanks!

0 Kudos
Message 1 of 5
(2,764 Views)

This forum is poorly monitored, so please use https://forum.digilent.com/forum/39-measurement-computing-mcc/ to post DASYLab questions. 

 

As for this question, I believe you need to add xxx to skip the AAC portion of the RS232 message. For example,

 

Ch 0: a\x2c

Ch 1: a xxx\r\l

 

use \r\l to terminate on CR-LF.

0 Kudos
Message 2 of 5
(2,744 Views)

another good resource of information is the German and French support forum at www.dasylab-forum.de

 

 

0 Kudos
Message 3 of 5
(2,738 Views)
Solution
Accepted by topic author ElementEng

Sorry, but the last part of your answer is not correct."\l" is not a defined control character in DASYLab.

If you want to wait for the line feed character (<LF>), then you should use \n.

I suggest this setting for the format strings:
Ch 0 : a\x2c
Ch 1 : a\n

 

Please refer to the DASYLab help, all predefined control characters are listed there.

If you still get the error message, please upload a screenshot of the error message and the worksheet.

 

Thanks

measX GmbH
www.measx.com
Message 4 of 5
(2,726 Views)

Sorry, it should be

Ch 0: a\x2c

Ch 1: a xxx\r\n

0 Kudos
Message 5 of 5
(2,708 Views)