contact
support
Download
order
news
AGG Software Forums
November 10, 2024, 10:00:59 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Welcome on our forum!
Home
Help
Search
Login
Register
AGG Software Forums
>
Online Help Center
>
Data loggers and plug-ins
>
how do I append a <CR><LF> at the end of string in expressions plugin?
Pages: [
1
]
« previous
next »
Print
Author
Topic: how do I append a <CR><LF> at the end of string in expressions plugin? (Read 19789 times)
pierre2mars
Newbie
Karma: +0/-0
Posts: 2
how do I append a <CR><LF> at the end of string in expressions plugin?
«
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
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
Karma: +0/-0
Posts: 806
Re: how do I append a <CR><LF> at the end of string in expressions plugin?
«
Reply #1 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.
«
Last Edit: June 03, 2009, 04:26:24 PM by Arthur Grasin
»
Logged
pierre2mars
Newbie
Karma: +0/-0
Posts: 2
Re: how do I append a <CR><LF> at the end of string in expressions plugin?
«
Reply #2 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
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
News & Feedbacks
-----------------------------
=> News and Updates
=> Site Comments
-----------------------------
Online Help Center
-----------------------------
=> Advanced Serial Port Monitor
=> Data loggers and plug-ins
=> Data loggers ActiveX
=> Advanced USB Port Monitor
=> Virtual Null Modem
=> Software for DNC and CNC
=> Other questions
-----------------------------
Development
-----------------------------
=> Feature Requests
Loading...