AGG Software Forums

Online Help Center => Data loggers and plug-ins => Topic started by: pierre2mars on June 03, 2009, 04:14:52 PM



Title: how do I append a <CR><LF> at the end of string in expressions plugin?
Post by: pierre2mars on June 03, 2009, 04:14:52 PM
Hi,

I'd like to send a csv line with data gathered from different com connections.
ie data1, data2 come from COM1
data3 comes from COM2
I want to send these data from COM3 as: "$;data1;data2;data3<CR><LF>
I managed to get the different data in COM3 configuration, then I try to set the output string in expressions plugin, but I found no way to append the <CR><LF> chars.
Any idea?

regards,

Pierre


Title: Re: how do I append a <CR><LF> at the end of string in expressions plugin?
Post by: Arthur Grasin on June 03, 2009, 04:23:46 PM
Hello Pierre.

You may use expression like:

RESULT1 = 'Value' + #$0D + #$0A

At this way you may send characters with any code. The hexadecimal code is specified after the '$' sign.

Because <CR> (ASCII) = 0x0D (hex) and <LF> (ASCII) = 0x0A (hex), then the CR+LF combination looks as the example above.


Title: Re: how do I append a <CR><LF> at the end of string in expressions plugin?
Post by: pierre2mars on June 03, 2009, 05:11:06 PM
I tried every possible way to write it, but not that one!
it's OK now, thank you very much,


best regards,

Pierre