LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DataSocket: Variant to data incorrect type

Hi, I need some help on the Variant to Data conversion. 

 

I am using DataSocket to read some data from my device into Labview, and I want to extract some particular data in one attribute. 

 

I know the data is an array of float numbers. But it seems they are not the only things.

 

I tried to pull out a indicator to see what is the actual data when they are still in variant type, they looks like this:

[16]
[ 0] -> 0.000E+0
[ 1] -> 73.128E-3
[ 2] -> 2.418E-3
[ 3] -> 18.575E-3
[ 4] -> -20.083E-3
[ 5] -> -87.503E-3
[ 6] -> 24.491E-3
[ 7] -> -1.346E-3
[ 8] -> 906.567E-6
[ 9] -> -3.224E-3
[10] -> -2.894E-3
[11] -> 4.511E-3
[12] -> 336.445E-6
[13] -> 1.919E-3
[14] -> -2.065E-3
[15] -> -9.171E-3
 
 
What I want to get is the numbers after the arrows in an array form. But If I use array to display after the Variant to Data, it does not show anything. I also tried to convert to string by wiring string type after the Variant to Data, it does not work either. 
 
Can someone explain what is this data type? And how I can extract the values after the arrows? Thanks in advance!
 
0 Kudos
Message 1 of 2
(2,346 Views)

Btw, the error code I got is Code 91.

0 Kudos
Message 2 of 2
(2,345 Views)