11-28-2019 04:15 AM
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!
11-28-2019 04:24 AM
11-28-2019 04:25 AM
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.