LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PCIe-6321

The easiest way is probably to setup a timer that fires say 4 times/sec and check the state of the digital line in it using the example that you already found. An improvement to the example is to move task configuration and cleaning at the beginning and end of your application, leaving only reading part in the timer callback.

 

An alternative, more complex method is to setup a callback that fires on the hardware event, something on the line of the example ReadDigChan-ChangeDetectionEvent.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 11 of 12
(783 Views)

Hi,

 

I tried to use this function yesterday, its works  

 

but I want to switch on  iterative loop( while or do.....while) to make it work every time I click a push button (green)  to start the acquisition and we'll stop it with the red push button but when I tried with iterative loop it doesnt work & the program crashes

I send you an overview of  interface &  program I know it contains a lot of mistakes but I'm new to LabWindows

 

thx 

 

 

 

 

Download All
0 Kudos
Message 12 of 12
(779 Views)