LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get status of daqmx input inside dynamic event

Hello:
I have a pci 6221 card that is controlling some IO. I have a producer consumer model vi template that I started with and I wanted to setup a dynamic event for on particular input state.

I've been able to configure the DAQ event but it seems as though when the event structure sees the change in state it will not allow me to get the current state of the digial input.

I'm a tradtional DAQ guy at heart and just now starting to develop with DAQMx so that could be my confusion here. I've attached the zip of the entire vi here, the top level vi is fixturecontrol.vi

 

Thanks,

Mike

0 Kudos
Message 1 of 2
(2,248 Views)

A few things:

1) Make sure you can actually use your chosen line for change detection. Look this up online or in the manual for your 6221. I think several lines are unavailable for change detection. For example, on my simulated system, port0/line0 (as you had it set) did not work, but line 3 did work.

 

2) You are trying to start your Digital In task twice, and one channel is an empty constant. You probably know this. I had to disable that before I could run your VI.

 

 

p.s. It looks like you got some of the help you needed on this same project here.

Richard






0 Kudos
Message 2 of 2
(2,235 Views)