LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting a 1D-Array of Cluster (Time + Data) into 2D-Array of Time & Data. How?

Solved!
Go to solution

Hello,

 

is there a simple way to convert a large 1D-Array of Cluster (Containing one Timestamp and one Data) into a 2D-Array with Timestamp and Data?

 

I could index the array in a while loop, unbundle each element and put the timestamps and the data into a new array.

 

The format of the new array could be an array of double (then the timestamp needs to be converted to double) or an array of strings.

 

Could I do that without a loop?

 

Johannes

LabVIEW 7.1 (!)

Message Edited by johanneshoer on 10-15-2009 07:01 AM
Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 1 of 3
(2,978 Views)

Here is a VI. It works, but is there no easier way?

 

LabvIEW 7.1

Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 2 of 3
(2,974 Views)
Solution
Accepted by topic author johanneshoer

Hello Johannes,

 

if it's possible to handle your time stamps as dbl-floats, I would suggest to use a simple for loop and the cluster to array function (Cluster_to_Array_Mod1.vi).

If you want to stay with the time stamp data type, again use a for-loop, an unbundle cluster and build array function (cluster_to_array_Mod2.vi). 

 

Regards,

Thomas

Download All
Message 3 of 3
(2,969 Views)