LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering Events

Dear Group,

I have a numeric on a front panel that triggers an event (through an event
structure) if the value contained within the numeric is changed by the user.
I also change the value of the numeric within the code, I would like to the
same event that is triggered by the user changing the value to trigger by
the value being changed by the code.

Does anybody know how to achieve this without creating a copy of the code
contained within the event structure for the numeric?

Thank you,

Luca
0 Kudos
Message 1 of 7
(4,176 Views)
Luca

when you change thge value programatically use the Value (signaling) property. it will trigger the Value change event just as if you changed it from the front panel.

good luck

Dan
0 Kudos
Message 2 of 7
(4,176 Views)
Use the Value(Signaling) property, different from the Value property. When you wire a value to this property, the event for Value Change is triggered. Value(Signaling) is only available in LV 6 or later. There was a recent posting here made by Altenbach that gave an example of how to do the same without using Value(Signaling) for users of earlier LV versions.

Question: Can someone show me how to include a hyperlink in this response area? I would liked to have made a hyperlink connection to Altenbach's answer as described above, but I don't know how to do it.
- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 7
(4,176 Views)
> Value(Signaling) is only available in LV 6 or later.

Signaling properties are only available in LabVIEW 7 and higher. From earlier posts, it seems that Luca is using LabVIEW 6.1, thus this solution will not work.
0 Kudos
Message 4 of 7
(4,176 Views)
I use Labview 6.1.


Luca


"altenbach" wrote in message
news:50650000000500000064BC0100-1079395200000@exchange.ni.com...
> > Value(Signaling) is only available in LV 6 or later.
>
> Signaling properties are only available in LabVIEW 7 and higher. From
> earlier posts, it seems that Luca is using LabVIEW 6.1, thus this
> solution will not work.
0 Kudos
Message 5 of 7
(4,176 Views)
Seeing you are still looking for a solution that will work with LV 6.1 ....

I will strongly urge you to concider making the code that executes in your event structure a sub-VI.

Then use that sub-VI elsewhere in the code when you want to "trigger" the event functions.

This should work for LV 6.1.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 7
(4,176 Views)
Here's the link you may have been referring to.. Link.

In addition, to create hyperlinks, you just use html code within your response to post links. When you have the box to respond, there should be a small hyperlink below the text box that says 'You may use a limited set of HTML within your posting', with part of it a hyperlink. Click on that to see what you can do with HTML, as well as how to use the code in your response.

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 7 of 7
(4,176 Views)