LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Digital-Input in Event-Structure

Hello,

i created a GUI that is in the background currently only an event-structure that reacts on the button that is pressed.

Now i need to use als Digital-Inputs on the GUI.

What is better:

a) Put the Vi that reads the DI in the Timeout-part of the event or

b) Put a loop that runs parallel to the eventstructure that executes the DI-vi and writes to a indicator. This indicator could then be used in the event-structure.

 

I think it should be in an extra loop as it would not execute if there is a popup in the event-structureand then the timout is not executing...

 

Thx

0 Kudos
Message 1 of 3
(2,814 Views)

You can create a "Dynamic Event" triggered by status change of the Digital Input Line.

Refer to the following example program posted. 

 

http://www.ni.com/example/25317/en/

 

Hope it helps

0 Kudos
Message 2 of 3
(2,807 Views)

Hi Vijay_J,

 

The link you posted is broken.

 

Can you update it plea. I am interested to see your solution

 

Thank you

 

Andrei

0 Kudos
Message 3 of 3
(257 Views)