LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change a 2D time variant to a 2D string?

Solved!
Go to solution

Hi, I am new to LabVIEW.  Can someone help me with this question? 

 

How do I change a 2D time variant to a 2D string?

Please see attached.

 

mrgudwrnch

0 Kudos
Message 1 of 5
(2,723 Views)
Solution
Accepted by topic author mrgudwrnch
You have neither variants nor a 2D array. What you have coming out of the loop is a 1D array of timestamps. To convert a timestamp into a string you can use the Format Into String function or the Format Date/Time String. The Write to Spreadsheet File function has a 1D array input so you can use that instead of the 2D input.
0 Kudos
Message 2 of 5
(2,718 Views)
Thanks
0 Kudos
Message 3 of 5
(2,689 Views)

Thanks for your help.  Is this the best way to do this?

0 Kudos
Message 4 of 5
(2,677 Views)

That would do it. You can change the output string by editing the format string. The LabVIEW documentation provides the details on the various formatting options and codes.

 

Tip: The sequence frame in your case is not necessary. You only need to use sequence frames when dataflow does not allow you to explicitly set an execution order. 

0 Kudos
Message 5 of 5
(2,672 Views)