Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Finite samples vs. Hardware timed single point: Different acquisiton speed?

Solved!
Go to solution

Hi Dan,

 

Thanks for this. It runs; however for some reason very unpredictable and I have seen several error messages (f.e.. E-200673) showing up now.

Haven't really had time to figure out where the problem comes from. Is there a way to route the counter input to PFI0?, as I do have a BNC running from my switch it would make life easier than having to go to the terminal block.

 

Most importantly, this idea makes perfect sense and it is spot on to what I want to achieve. I will do some more testing later this week.

Will update you if I make progress and have any more questions,

 

Thanks again,

Mark

 

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

Mark,

 

Yes, you should be able to use PFI0.  To do this, add the DAQmx Channel property node between create channel and start on the counter task.  From this node, select the Counter Input->Count Edges->Input Terminal property.  Set this to PFI 0 for your device.

 

For error -200673, it sounds to me like somehow the waveforms you are writing to your analog output channels contain more than a single sample (ie, the waveform's Y component is an array with more than one data point).  I would validate two things:

1) The output of the zero value waveform I construct for the case where the counter's count > 0.  I've mucked around with the VI enough that it's possible I may have messed this up at some point.

2) That the waveforms coming from your feedback subVI are valid.  As a debugging step, I would add code to your feedback generation to throw an error if any of the waveforms it generates have a Y component with a size greater than 1.  If you've been using the counter, I would also validate that the the 'zero' output waveforms I construct are correct.

 

Hope that helps,
Dan

 

0 Kudos
Message 12 of 13
(1,098 Views)

Dan,

 

Thanks a lot for all the help, everything is up and running without any problems now. The latest problems described didn''t get back since the initial test so I guess something else was going on at the time.

 

Regards,

Mark

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