12-07-2007 11:41 AM
12-07-2007 03:24 PM
12-10-2007 01:15 PM
12-10-2007
02:11 PM
- last edited on
02-26-2025
04:16 PM
by
Content Cleaner
Hello dmertz,
I would like to add some more specifics to what Sima said in the previous post. The 6703 is one of our Static Output Analog Output cards, which means that there is no onboard timing oscillator to control output. This means that the computer must tell the card when to output a sample (which is "On Demand" timing), hence the software timing. The way your program is currently set up, the DAQmx Timing VI is trying to configure the onboard timing and can't find it so it throws the error. The triggering VI will throw an error as well since your card does not support that either.
The most accurate way to control software timing is to use a timed loop. You could also use a for loop or while loop with a wait function. In the example finder (Help»Find Examples...), there should be an example that does what you are looking to do (with a while loop). It is called Gen Mult Volt Updates-SW Timed.vi (under Hardware Input and Output»DAQmx»Analog Generation»Voltage).
If you do need hardware timing and triggering, NI has many cards which do support both. If you let us know your requirements, we can make some suggestions or you can contact your Technical Representative who can help you find what you need.
10-27-2008 03:41 AM
Hi,
I have a similar problem. I'm using a cDAQ-9172 chasis with a NI 9229 module. I'm trying to do single ponit continuous measurements with the DAQ assistant. I looked at the example Cont Acq&Graph Voltage-Single Point Optimization.vi for help, but the problem is that I cannot select the On Demand Acquisition mode, it's giving me the -200077 error
Property: SampTimingType
You Have Requested: On Demand
You Can Select: Sample Clock
Device: cDAQ1
The thing is, when I do a measurement, it's always measuring with a 1.6kHz rate, regardless what I put in the rate window. I can only change the number of points, but this only changes the duration of the measurement.
I'm trying to do voltage measurements about a minute long and I need about 10Hz sampling rate. The thing is I'd like to see what's going on during a measurement and stop it when I like, without having to set the appropriate number of points beforehand. Also, I'd like to use the data in external applications and with 1.6Khz sampling rate the large data files are a bit difficult to manage.
I hope you understand my problem and can suggest a solution. As you probably understood from my post, I'm a beginner.
Thanks!
10-27-2008 07:15 PM
Hi Tomaz,
The NI 9229 uses a Delta-Sigma ADC that utilized oversampling to achieve better accuracy. Therefore, the device is designed to be used with a specific hardware-timed sampling rate. This is why the 9229 doesn't support on-demand sampling. It only supports the use of finite or continuous sampling methods.
I hope this helps,
Paul C.
10-28-2008 04:40 AM
Hi Paul,
Thanks for your answer. So it's not possible to go around the 1.6kHz sampling rate? I can only define the duration of a measurement by setting the appropriate number of points at 1.6kHz? Is it possible to later discard unneeded data to write a measurement file with only 10 points per second?
Thanks!
10-28-2008
09:37 AM
- last edited on
02-26-2025
04:17 PM
by
Content Cleaner
Hi Tomaz,
In the specifications document here, you can see the minimum sampling rate is 1.6KS/s. If you try to select something lower, it will coerce you to use the 1.6KS/s. Yes, you can definately discard unwanted samples. I've included some pictures of how to do this below. I used a divide by 200 to break a 2000 point array down to 10 samples. In the DAQ assistant, I had it configured to acquire 2000 samples at 2KS/s.
I hope this helps,
Paul C.
10-31-2008 06:57 AM