LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How insert string into double array???

Hello,
I would like to know how I can insert a string (date and time) into a double array???
Is it possible???
Thanks for you help!
 
Cordially!
0 Kudos
Message 1 of 5
(4,083 Views)
Hi carlito,

you cannot insert a string in a DBL array...

But you can:
1) convert the time value given by 'Get Date/Time in seconds' to a DBL value and insert this value in your array.
2) convert the DBL array to a string array and insert your date/time string here

There are probably other options, it all depends on your goal!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(4,079 Views)
Hi GerdW,
 
Thanks for you help. I don't understand your answer. Could you send me a quick example, please???
Cordially,
0 Kudos
Message 3 of 5
(4,074 Views)

What you could do is convert the read timestamp to dbl >>insert it to the 2D array, later index that entry and convert it back to Time stamp

Look at attached vi

Regards,

Dev

0 Kudos
Message 4 of 5
(4,070 Views)
Hi karlito,

here is the example you requested. It's in LV7.1.
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(4,067 Views)