LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Internal and External Events

Hello,

Inside of the Event Loop Structure is there a way of telling if the event was triggered by a Front Panel change or by the Value Signaling property. I'm thinking I could use the value tabs to the left of the structure (maybe source or type), but I do not know exactly how these values are used. I could not find documentation on these tabs.

Thank You,
Glen
0 Kudos
Message 1 of 6
(3,694 Views)
I don't have LV in front of me at the moment, so this may not help.
One of those terminals should be Source, which is a numeric. One of its values should be UI. I'm not sure whether using the signaling property gives this or not.
If all else fails, you can always use a flag when you programatically set the value and check for that flag.

___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(3,685 Views)
While there may be a way using the event structure I was unable in a short look to find it. I created a VI with a numeric control and a value change event that had indicators on the "source" and "type" connectors on the left side of the event frame. I created a sub-vi with a control ref input that was tied to a property node, val(sgnl). This was in a for loop set to execute a few times. This vi was set to run in the "other1" thread rather in the "same as caller" which would have been the UI thread. When I run this
the "Source" indicator on the top level vi shows LabVIEW UI and the "Type" as Value Change the same as if the control is actuated in directly in the higher vi ...

Sorry,


Putnam Monroe
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 3 of 6
(3,674 Views)

Hi friends

I have a question about External I/O Events

As you now LabVIEW supports user interface and programmatically generated events but does not support external I/O events.

What should I do for working by external I/O events?

Best regards

Amin

0 Kudos
Message 4 of 6
(3,358 Views)

I'm not sure what you mean by "external I/O events". VISA seems to have a palette with some event nodes (which apparently does not work with the event structure) and if you wire a DAQmx task to a Register for Events node you get some events.

 

I haven't used either of them, so I can't comment on how they work, but I assume they work and that there probably other sources for events as well.


___________________
Try to take over the world!
0 Kudos
Message 5 of 6
(3,347 Views)

Thanks for your reply

but I written that from LabVIEW 8.5 Help (see link: http://zone.ni.com/reference/en-XX/help/371361D-01/lvconcepts/what_are_events/  )

 

According to  LabVIEW 8.5 Help: External I/O events include hardware timers or triggers that signal when data acquisition completes or when an error condition occurs and LabVIEW doesn't support it.

But I examine your suggestion.

If you have other suggestion please inform me.

Thank you

0 Kudos
Message 6 of 6
(3,326 Views)