ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital input event handler

Solved!
Go to solution

Hi-

 

My labview code needs to execute only when a physical switch is pressed by the user.

 

Is it possible to generate a DAQmx event for a level change on a digital input line of the USB-6343?

 

I am using LV2010 on a windows 7 machine.

 

Best,

Dar Bahatt

 

 

 

 

 

0 Kudos
Message 1 of 6
(4,217 Views)

Hi,

 

Yes it is possible to rise an event for a level change. You can use value signal property node.

 

 

0 Kudos
Message 2 of 6
(4,210 Views)

Can you give more details?

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

Hi Dar,

  Please use Value(signalling) property of the indicator...Please see the screen shot.

Regards,
Srikrishna


0 Kudos
Message 4 of 6
(4,204 Views)

Thanks!

 

In your method do I need to constantly monitor (loop with digital input read) the value of the

digital input associated with the UI indicator? If so, that would use system resources.

 

If possible, I prefer using a DAQmx event with an event handelr within a while loop. Not sure if

DIO can be set to generate an event.

 

Dar

 

0 Kudos
Message 5 of 6
(4,191 Views)
Solution
Accepted by Dar_Bahatt

Hi Dar,

  If you want to use the daqmx  event for level change,then you have to register events..Please go through this program to begin with..http://zone.ni.com/devzone/cda/epd/p/id/317

 

Regards,

Srikrishna.

 

Regards,
Srikrishna


Message 6 of 6
(4,176 Views)