Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

scxi-1600 counter/timer

I know this is a pretty old thread but this has worked brilliantly for me.  I'm hoping that those who have posted on this will get a notice of my reply. 

 

I tried adding a 2nd counter and they don't seem to want to work a the same time.  Does anyone know if this is possible?  I may be doing this wrong but I basically duplicated the code attached here so I am setting up one for ctr0 and PFI0 and the other one for ctr1 and PFI7.

 

Any thoughts on whether this is possible?

 

Thanks!

0 Kudos
Message 11 of 13
(1,613 Views)

Hi Dave,

 

Just recently we found a bug in DAQmx that I think you may be seeing.  Apparently the code was always referencing the ctr0 terminal names, even if you specified ctr1.  You could use ctr0 or ctr1 individually, since in both cases you were really just using ctr0... but using them together would error (are you seeing a resource reserved error?).

 

The good news is that we fixed this in DAQmx 9.1 (and later), so an upgrade is likely all you'll need to get it working.  Considering this is still officially an unsupported/untested feature (yes, I'm still sticking to that story), I'm surprised that we even found this!  Nevertheless, I'm glad you posted... I had forgotten about this thread and really should have updated it back when we released 9.1.  Sorry about that... I hope you didn't spend too much time troubleshooting before posting!


Thanks,

Justin M.

National Instruments

Message 12 of 13
(1,600 Views)

Justin

 

Awesome. 

 

No, I haven't beat my head against the wall on this yet.  I figured I'd throw a "hail mary" on this forum post first.  Fortunately you ran right past the defense, made an outstanding catch in the end zone, spiked the ball, and then pounded your chest in celebration as the team carried you off the field of victory!

 

I'll update Daq MX and give it a whirl.  Thanks so much!

0 Kudos
Message 13 of 13
(1,588 Views)