Hello everyone,
I'm new to your community, so firstly I'd like to say hello to everyone
I guess the topic was repeated several times and I have read many examples, but most of them were concentrated on auto fill of array with random values. I however need to set values into array manually, memorize them, and if possible to go back and make changes in case of a mistake. These values are given from Tasti WB630 keyboard and determine line feed for each of electrical linear drive. In my vision UP / DOWN keys set index number which corresponds to a subsequent piston, LEFT / RIGHT keys set value of feed for currently indexed piston. After setting a correct value for desired piston I hit OK and the value is stored into array. But here my vision ends, because LabVIEW somehow doesn't want to memorize all of the input data except the last one given index and value.The code for now works like this:
Array:
set + OK [0] 280 [1] 0 [2] 0 [3] 0 [4] 0
set + OK [0] 0 [1] 50 [2] 0 [3] 0 [4] 0
set + OK [0] 0 [1] 0 [2] 135 [3] 0 [4] 0
etc.
I'd like to make it work like this:
Array:
set + OK
[0] 280 [1] 0 [2] 0 [3] 0 [4] 0
set + OK [0] 280 [1] 50 [2] 0 [3] 0 [4] 0
set + OK [0] 280 [1] 50 [2] 135 [3] 0 [4] 0
etc.
So, can anyone help me out?
EDIT: I've added my source files with code needed for the emulation of Tasti keyboard and my work so far.
Main VI: tasti_emul.vi, SubVI's: Tasti_LR.viTasti_OK2.viTasti_UD.vi