ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

取消
显示结果 
搜索替代 
您的意思是: 

Add timestamp to multicolumn listbox

已解决!
转到解答

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 项奖励
1 条消息(共 5 条)
1,607 次查看

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
2 条消息(共 5 条)
1,587 次查看

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

0 项奖励
3 条消息(共 5 条)
1,569 次查看
解答
已被主题作者 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.

 

4 条消息(共 5 条)
1,547 次查看

Thank you GerdW and RavensFan!🙌

0 项奖励
5 条消息(共 5 条)
1,511 次查看