LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i receive "numbers" i.e. an integer using Visa Read ??

How can i receive "numbers" i.e. an integer using Visa Read .. i'm using visa write to send data from a numeric control to the micro-controller via serial interface by casting the "number" to "string" using Type Cast function .. now i want to receive data "numbers" from the micro-controller and display it at the numeric indicator but the buffer of the visa read receives "Strings" only .. any help with this please ??

Download All
0 Kudos
Message 1 of 5
(3,516 Views)
I have no idea why you would ask this question? You are already correctly using the type cast. Do you think it only works one way?
0 Kudos
Message 2 of 5
(3,505 Views)

Typecast can be used for both directions, but it has a middle terminal too. When that is not connected it will generate a string, but when you connect an integer to it it will produce an integer.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 5
(3,501 Views)

You also have to remember to set the representation of the constant connected to the middle terminal of the typecast.

=====================
LabVIEW 2012


0 Kudos
Message 4 of 5
(3,488 Views)
Please go to the help menu and turn on context help. All of the information in these answers is there.
0 Kudos
Message 5 of 5
(3,471 Views)