03-13-2023 09:13 AM
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!
Solved! Go to Solution.
03-13-2023 10:02 AM
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.
03-13-2023 10:12 AM
03-13-2023 10:45 AM - edited 03-13-2023 10:48 AM
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
03-13-2023 12:17 PM
Sorry, it should be
Ch 0: a\x2c
Ch 1: a xxx\r\n