12-27-2007 11:28 AM
12-28-2007 02:19 PM
Hi Feilong,
I suggest using the available samples per channel property in order to accomplish this, one note is that if you are using a USB device, The property will return 0 until all of the data has been acquired, and then a non-zero value is returned. This is due to the firmware on USB M-series devices. I hope this helps!!
12-28-2007 03:54 PM
12-31-2007 03:42 PM
Hi Feilong,
My deepest apologies, I must have misread your previous post. You are correct that this property is not available in hardware-timed single point; due to the lack of a buffer for hardware timed single point you are not able to query to see if a sample is available. The hardware will take a sample on each sample clock edge and return this value, you should take this into consideration and verify that your read executes faster than the sample clock, otherwise you will receive a warning. Once again I do apologize for my earlier oversight and if I am misunderstanding your question please post back and I will re-evaluate my answer. As I see it now though there is not a way to gather this information due to the fact that there is not a buffer.
01-02-2008 09:11 PM
01-02-2008 09:25 PM - edited 01-02-2008 09:33 PM
feilong wrote:
Thanks JaceD for your reply,So what will happen if there's no data acquired at a specific time instant when a DAQmx Read.vi is called? Does my vi going to produce an error and stop? I don't want this to happen. I prefer to have a warning and my loop will continue to run. Is it viable?Feilong
01-02-2008 09:28 PM