LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help: How to key in input array, save in a buffer, and extract them later?

Hi, I need help. I have several groups of data for input, and need to use them later in the same or different code. When I key in the input data, the code will ask the number of data group first, then in each group, there will be 6 data to key in, each has a specific variable name. The number of group and the data for each group will vary at each time running the code. The data group needs to be numbered sequently. After having all groups of data, these data will be sent to another sub VI to read. This sub VI needs to know each group number and each data of a group.
 
I think I should create a 2-D array to read these data in a do loop, but I can't let my do loop read data in each time. Then when I sent the data out, the next sub VI was confused by the sequence of the data group and the sequence of data in each group. Can someone help me or give me some example how to do it? Thank you very much for your help.

Message Edited by ccyang on 06-06-2006 10:37 AM

0 Kudos
Message 1 of 2
(2,560 Views)
From what I understand of your explanation, an event structure might be the way to go (LV 6+ I think).  Events could be based off of keypresses in a particular control (a 2D array like you mentioned), and once input in that particular field is complete, the user presses say the 'enter' key, and you can use the "VKey" of the event data node to determine which key is pressed (i.e. VKey = enter?).  From there, you would continue to the next portion of data entry or processing of entered information.

Hope this helps.
Message 2 of 2
(2,550 Views)