11-12-2010 10:17 AM
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
11-12-2010 12:15 PM - edited 11-12-2010 12:19 PM
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.