LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

writing double and unsigned integer to serial port

Hi all
     I have a basic question.  I am trying to write a double or unsigned intger to serial port.  Is it possible to do so?  If it is he case, how do I do it?
Thank you very much.
Best
Hideya
 
 
   
0 Kudos
Message 1 of 3
(2,763 Views)
Hideya,

The serial port sends one text character at a time. So you must convert your numeric value to a text or string representation and then send the string.

LabVIEW has several functions on the String palette for numeric conversions. You must decide how to represent the number as text, floating point or exponential notation, number of significant digits, and other formatting issues. These may be dependent on what will be done with the data after being sent.

Lynn
0 Kudos
Message 2 of 3
(2,757 Views)
You can also convert it to a binary representation, although it's not often
done, and not recommended.

Regards,

Wiebe.


0 Kudos
Message 3 of 3
(2,751 Views)