03-18-2010 03:10 AM
Hi,
In my code , I need do something when I detect one digital line high. Because that I have other controll butons event response, I need use event structure.
now I code a sample example (labview 8.61) and use indicator "boolean 2" instead of digital input. please help me to come out the cause Thanks .
Sonic
Solved! Go to Solution.
03-18-2010 03:47 AM
Hi,
I think it is useful to u. Initially the control button should be zero. Otherwise when u run suddenly it goes to the event.
Thanks
Sivabalan.V
03-18-2010 03:51 AM
When the vi runs the event structure will wait for some user action to happen and that is the reason you wont be able to see anything when you click the "Boolean" control next time (i.e when the i=1).
So you create an event to handle this (the same way you have done for the Boolean2 indicator) and place the value signalling property iside this newly created event case of the event structure like shown below.
03-18-2010 08:38 PM
Thanks all.
time out frame is useful .
03-19-2010 06:48 AM
Sonic,
I see that you have an accepted solution. Since that works for you - great. I do want to point out a few things, especially for others that might read this thread.
1) Value Signaling property nodes can be slow (and maybe that's OK for your application)
2) There is a LabVIEW function designed for your requirement (User Events)
The main purpose for Value Signaling property nodes is to simulate a front panel action. They can be used (and used well) for other tasks, but it's good to be aware of their limitations (mainly speed).
The main purpose for "User Events" is to allow the programmer to create custom events. The advantages of User Events are speed and the abilty to return mixed (custom) data types.
This is just something to keep in mind when faced with this progamming requirement.
steve
03-21-2010 09:25 PM
Hi steve,
Thanks for you professional support. Now my procedure is ok for slow speed response,but your ponit is great.