From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add timestamp to multicolumn listbox

Solved!
Go to solution

Hi, I am using LabVIEW 2019. Is there a way to add the timestamp (as a string) in the first column of a multicolumn listbox?  (see the attached vi)

0 Kudos
Message 1 of 5
(1,061 Views)

Hi Vries,

 

in a MCL all items are strings, so you just need to set the first item with your timestamp string…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(1,041 Views)

I added the timestamp but I do not see what I did wrong. The timestamps are written down horizontally.

0 Kudos
Message 3 of 5
(1,023 Views)
Solution
Accepted by topic author Vries

You aren't building the array the correct way.

 

You are building times into a single row by storing them in a shift register.  Then Building the other data onto it.

 

Store the final string array in the shift register.  Build the new data on with the timestamp in the same row as the numeric data.

 

Message 4 of 5
(1,001 Views)

Thank you GerdW and RavensFan!🙌

0 Kudos
Message 5 of 5
(965 Views)