04-01-2009 08:46 AM
Solved! Go to Solution.
04-01-2009 08:59 AM
04-01-2009 09:05 AM
04-01-2009 09:13 AM
04-01-2009 09:24 AM
04-01-2009 09:56 AM
I have no idea what happened to your switch, but it was definitely not behaving correctly. I replaced it with a new switch, set the latch to "Latch When Released", and it operated correctly. Very strange.
Note that if you bypass the execution of the prompt then it will return all zeros for the positions. You will want to have shift registers so that if you skip the execution of the prompt then you will use the previous values. I'm assuming this is the behavior that you will probably want.
04-01-2009 10:25 AM
04-01-2009 10:29 AM
04-01-2009 01:25 PM
Wolfson wrote:
Yes, thats what I want, to register the values and do not change then until press the buttom again. How do I save them?
As I indicated, you need to use a shift register. You can either use 1 shift register and bundle your values, or use 4 shift registers. Use a case structure driven by the Boolean control to determine whether to run the prompt VI, or to pass out the previous values. Shift registers are discussed in the LabVIEW manual and in the tutorials. You can look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
04-02-2009 07:19 AM