05-12-2017 03:32 AM
Hi.
I want to convert a string into an array in my first loop and after the "Get Queue Status" function either in 1D or 2D, it does not matter.
I save data in a table to send them to a queue. The goal is to see this data displayed in real time in an array, the last 5 values only. That is to say that every second, a new value will be added in my array, but I want to see only the last 5 that were recorded. That's why I need to turn the string into a table.
If you know how to display a limited number of value, I am also taker of any ideas.
Solved! Go to Solution.
05-12-2017 03:36 AM
hi jeremie.d
i noticed, that you have a Boolean Wire between your two loops,
that is not what you want, bc of this your loops will not run in parallel,
but in sequence (first your producer, then your consumer).
remove the wire and handle the stopping of the loop in a different manner.
05-12-2017 03:48 AM
jwscs a écrit :
i noticed, that you have a Boolean Wire between your two loops,
remove the wire and handle the stopping of the loop in a different manner.
Ok thank you for your answer.
Did you have an idea for change string in array ?
05-12-2017 03:55 AM
yes
05-12-2017 05:35 AM
jwscs a écrit :
yes
Thank you jwscs.
05-12-2017 05:42 AM
two wait functions in one loop is overkill
you have to extend the 1D array in the consumer loop to 2D
05-30-2018 11:27 PM
Hi,
I have a questions about arrays.
As shown in "Save array.PNG",
1) I need to save the item name and value inside 1st row when "Save ASCII" button is pressed.
2) Save the item name and value inside 2nd row when "Save Hexadecimal" button is pressed. (hex input will be converted to ASCII format before saving in array).
Will keep continue to save into the array when new input is entered.
Then i need to make this array to become control so that i can choose it like in combo box as shown in "Combo box.PNG".
The VI is attached below.
Anyone can please help me to solve this? Thanks.
05-31-2018 03:42 AM
hi oliver,
please don't hijack old posts with new questions, open up a new thread instead.
to get the values into the Table (you have it as control, but it might be better to have it as indicator), either put it directly in the "Save ASCII" case and wire a 2D array to it (comprised of the values you want in it) or use a property node and it's Value property in the same fashion.
regards