09-11-2005 02:32 PM
09-11-2005 02:50 PM
You can invoke value change events (and only them) by using the Value (signaling) property.
Create a property node for the control you registered, select that property and wire the value into it.
09-11-2005 04:47 PM
Thanks for your help
Can you please explain that step by step?
Here what I did..
1. Opened a blank vi
2. Added button "Boo"
3. Created a even structure. Added "Value change event". Added message Box "Hello"
4. Outside event structure created property node for value. Wired button Boo control to this propery.
5. Ran the vi. Nothing happend till I pressed button Boo
Did I miss anything?
--trupti
09-11-2005
05:49 PM
- last edited on
11-27-2025
07:06 PM
by
Content Cleaner
@Trupti wrote:
4. Outside event structure created property node for value. Wired button Boo control to this propery.
Did I miss anything?
Yes. I didn't say you should use the value property but the Value (signaling) property. Also, you don't need to wire the button into the property. It's enough that you wire a T or F constant. You should note that if your button has a latched mechanical action, you will get an error if you try to write a value to it.
You should read on events before using them, because it's easy to make mistakes which will cause your VI to get stuck. You can find some stuff on this site.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
09-11-2005 06:13 PM
09-11-2005 06:51 PM - edited 09-11-2005 06:51 PM
Message Edited by altenbach on 09-11-2005 04:54 PM
09-11-2005 06:59 PM
Another good idea. But shouldn't you have named the VI: Boo Who Too.vi ![]()
Mike...
09-11-2005 08:04 PM
It's a bit early for a halloween themed VIs, but then we would also need a pumpkin colored FP. 😄
@mikeporter wrote:
Another good idea. But shouldn't you have named the VI: Boo Who Too.vi![]()