Peter_B
2008-04-23 05:40:07 UTC
Hi folks,I am operating a control
loop in LabVIEW using a timed loop that is H/W triggered with the the ai (analog
input) sample clock on my NI PCI-6014 DAQ card.The loop works OK unless
I choose to case out the "DAQmx Read (Analog DBL 1Chan 1Samp).vi" for > 5
seconds. If I do that I receive error -200010. There are times when I don't
need to read the analog input (and I'd rather not read ai if I don't have in
order to improve loop efficiency). This error shouldn't occur because as per
the NI-DAQmx help file, "If you set sample mode to hardware
timed single point, NI-DAQmx does not create a buffer. ". I don't care if
samples are discarded, when I decide to perform a read I only ever want to read
the latest single point.You can repeat the error for yourself by
running the attached vi and holding down "Disable AI" for more than 5
seconds.My loop rate =100Hz.I have tried setting the following
properties to no avail:<img src="file:///C:/DOCUME%7E1/peterba/LOCALS%7E1/Temp/moz-screenshot-2.jpg" alt=""> DAQmxRead.RelativeTo=MostRecentSampleDAQmxRead.OverwriteMode=OverwiteUnreadSamplesI have utilised the method and code documented/suggested by NI <a href="http://zone.ni.com/devzone/cda/tut/p/id/3215#toc9" target="_blank">here</a> :<a href="http://zone.ni.com/devzone/cda/tut/p/id/3215#toc9" target="_blank">Application Case 6 -
Hardware-Timed Simultaneously Updated I/O Using the Timed Loop</a> This
method is also documented in the LV DAQmx help file under the topic <a href="C:%5CProgram%20Files%5CNational%20Instruments%5CNI-DAQ%5CDocs%5Cmxcncpts.chm::/hwtimedIOtimedLoop.html" target="_blank">"</a><a href="C:%5CProgram%20Files%5CNational%20Instruments%5CNI-DAQ%5CDocs%5Cmxcncpts.chm::/hwtimedIOtimedLoop.html" target="_blank">LabVIEW example for
hardware-timed simultaneously updated I/O using the Timed Loop</a><a href="C:%5CProgram%20Files%5CNational%20Instruments%5CNI-DAQ%5CDocs%5Cmxcncpts.chm::/hwtimedIOtimedLoop.html" target="_blank">".</a> Find
attached my vi (in LV v8.5)regardsPeterMessage Edited by Peter_B on 04-23-2008 12:22 AM
Hardware timed single point analog input.zip:
http://forums.ni.com/attachments/ni/170/318261/1/Hardware timed single point analog input.zip
loop in LabVIEW using a timed loop that is H/W triggered with the the ai (analog
input) sample clock on my NI PCI-6014 DAQ card.The loop works OK unless
I choose to case out the "DAQmx Read (Analog DBL 1Chan 1Samp).vi" for > 5
seconds. If I do that I receive error -200010. There are times when I don't
need to read the analog input (and I'd rather not read ai if I don't have in
order to improve loop efficiency). This error shouldn't occur because as per
the NI-DAQmx help file, "If you set sample mode to hardware
timed single point, NI-DAQmx does not create a buffer. ". I don't care if
samples are discarded, when I decide to perform a read I only ever want to read
the latest single point.You can repeat the error for yourself by
running the attached vi and holding down "Disable AI" for more than 5
seconds.My loop rate =100Hz.I have tried setting the following
properties to no avail:<img src="file:///C:/DOCUME%7E1/peterba/LOCALS%7E1/Temp/moz-screenshot-2.jpg" alt=""> DAQmxRead.RelativeTo=MostRecentSampleDAQmxRead.OverwriteMode=OverwiteUnreadSamplesI have utilised the method and code documented/suggested by NI <a href="http://zone.ni.com/devzone/cda/tut/p/id/3215#toc9" target="_blank">here</a> :<a href="http://zone.ni.com/devzone/cda/tut/p/id/3215#toc9" target="_blank">Application Case 6 -
Hardware-Timed Simultaneously Updated I/O Using the Timed Loop</a> This
method is also documented in the LV DAQmx help file under the topic <a href="C:%5CProgram%20Files%5CNational%20Instruments%5CNI-DAQ%5CDocs%5Cmxcncpts.chm::/hwtimedIOtimedLoop.html" target="_blank">"</a><a href="C:%5CProgram%20Files%5CNational%20Instruments%5CNI-DAQ%5CDocs%5Cmxcncpts.chm::/hwtimedIOtimedLoop.html" target="_blank">LabVIEW example for
hardware-timed simultaneously updated I/O using the Timed Loop</a><a href="C:%5CProgram%20Files%5CNational%20Instruments%5CNI-DAQ%5CDocs%5Cmxcncpts.chm::/hwtimedIOtimedLoop.html" target="_blank">".</a> Find
attached my vi (in LV v8.5)regardsPeterMessage Edited by Peter_B on 04-23-2008 12:22 AM
Hardware timed single point analog input.zip:
http://forums.ni.com/attachments/ni/170/318261/1/Hardware timed single point analog input.zip