07-30-2018 05:57 AM
I am sending a number as a character to a remote device once at a particular time stamp but it is sending twice and that also in parts. I am sending 29, and it sends as 29 and 9. If I send 34, it sends 34 and 4. How can I deal with this situation? Program attached as below.
Solved! Go to Solution.
07-30-2018 06:51 AM
You are actually sending 2 characters, '2' and '9'. If you want the quantity to be a single byte, then change that control to be a numeric (U8). You can then use Type Cast to change it into a string to write to the VISA Write.
07-30-2018 07:46 AM
Hi,
It is sending wierd characters, that again in 2 different writes. can you pls suggest?
07-30-2018 08:10 AM
You are sending a termination character because you turned on a switch that runs a property node that tells it to send a termination character after a send.
07-30-2018 08:30 AM - edited 07-30-2018 08:32 AM
Sir, how to send without the termination character? Uncheck "End write on termination character" ?
07-30-2018 09:36 AM
Yes. Make that boolean switch false. Or better yet, just delete that whole section of code.
07-30-2018 09:40 AM
And is that also the reason that on sending 29, it sends 29 in one line and then 9 (unwanted) in another line?
07-30-2018 10:12 AM - edited 07-30-2018 10:13 AM
There is no logical reason for it to resend the 2nd character.
How do you know it is sending 29 followed by a 9?
Your subject is "sending character" which implies you only want to send 1 character. But are you sure that is what you want to do? You haven't provided any information about this device or a link to its manual. Have you read the manual to know exactly what it is expecting in the message?
PS: You don't need any of those constants wired as indices for the Index Array function. You'll get index 0, 1, 2, .... automatically without wiring them.
07-30-2018 10:18 AM
I am sending 29 from ESP8266 module (Arduino) to an Ameba RTL8195 module on which there is a PI algorithm for temperature control. The number 29 sent as a character is a set point for temperature.
While sending the set point from ESP8266 serial monitor (as a char array), there is no problem on the AmebaRTL8195, 29 is received as 29 and algorithm starts to adjust temperature. However, when the same is sent from LabVIEW, the receiver first shows 29 and then 9. The last number 9 overwrites and corrupts the algorithm.
There are 6 measurements being sent by the ameba to esp module which displays accurately on LabVIEW.
07-30-2018 11:00 AM
A byte of 9 is a tab character.
I don't see anything in the LabVIEW code that would indicate a tab is being sent.