LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get out numbers from type casting

Solved!
Go to solution

Refer TCPIP simple data client.vi from Labview examples. I am trying to get numerical data display after type casting but cannot connect the function. I tried using unbundle, cant work.

 

I tapped the string connection hoping to see some numerical data in it, but I only see something like "@".

 

I am expecting some numbers from a simple data server.vi, how to display the numbers in numerical data display without going through the waveform chart?

 

Advance thanks

 

 

ScreenHunter_01 Nov. 07 10.56.jpg

 

 

 

 

0 Kudos
Message 1 of 2
(2,584 Views)
Solution
Accepted by topic author sunflower2772

You've typecasted your string to an array of doubles (or singles, I can't tell from the picture of the diagram), but are trying to wire it to a scalar indicator.  You either need to use an array indicator, or use Index array to get one particular element out of the array to send to the numeric scalar indicator.

 

As for your "@", I don't know about that.  It all depends on what data the other end of your TCP/IP communication is sending.  Put some probes on the string, and also on the number coming out of the typecasting to number of bytes.

Message 2 of 2
(2,580 Views)