LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call Keyboard on a Producer/Consumer Loop?

Hi.
I am using a Producer/Consumer Loop VI to Fetch a Data to an Array. This VI will do the following;
- Fetch a Data (X,Y) (this is a one touch button)
- Delete the last data I fetched
- Reset all Data gathered
 
1. I would like to add a keyboard as another option to input numeric data instead of the one touch button. I created a case for this but i can't figure out yet how to correctly transfer the keyboard data to the XY array.
 
2. I would like to add a button "Undo".  This will function in case i accidentally deleted a certain line, i can retrieve the previous data by pushing the Undo button.
 
Kindly see the attached sample VI.
Any advise i would greatly appreciate.
Thank you very much.
 
0 Kudos
Message 1 of 4
(2,915 Views)
the undo is simple: keep a shift register for the unchanged copy of your data.
the manual input is same as "fetchxy".
check out the vi and modify as needed. remark: i put the load and save file in a "disable" structure. enable it for operation in your system.
 
 
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Message 2 of 4
(2,889 Views)

Hi.

That was great. The Undo function works perfect. Thanks a lot.

For the manual inputting do you have idea on how can i input a data one one array at a time. What happens is if i will manually input a data using the keyboard the data that i inputted will go to Xn and Yn array simultaneously. What i wanted to do is for instance i inputted a data using a keyboard it will go to Xn array at first then hit Manual Inputting button again, input data and will go to Yn array.

Thank you very much.

0 Kudos
Message 3 of 4
(2,870 Views)

in the manual update state, i just duplicated the value to have it twice.

an easy solution for you would be to call again "manual input" state, to enter the second number as y. you might want also to write a message asking for the second number.

Message Edited by Gabi1 on 10-22-2007 11:01 AM

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 4 of 4
(2,854 Views)