LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving strings on the front panel

Hello,
I am new user and I'm still learning making simply apps. Can you tell me how to solve my problem? I have two strings in my program, first one is the message from plc and the second one is a response from host. They're appearing in different times and every time these messages are different. I want to display them on the front panel (array or table or whatever), but it's very important, that I need to display 10 last values of these strings. Every way I tried, I can display only once a message and then it is replaced with the new one text. Please, give me some advice!

0 Kudos
Message 1 of 3
(2,137 Views)

Hi anna,

 

use an array of strings when you want to store an array of 10 "last" strings…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,126 Views)

Treat the two values as two separate things.

 

When a value comes in, add it (concatenate) it to an array of strings.

Delete the 10 last elements from the array (don't wire the index) and use the deleted part.

Put the array in a shift register.

 

Alternatively, make a functional global to add\get the values.

 

Post some code to get detailed help.

Message 3 of 3
(2,124 Views)