09-01-2010 02:23 PM
Hi,
I am sampling from a load cell at 1000 Hz. I send the information to the "Write To Measurement File" VI. When I open the .tdms in excel, the time interval between samples is 0.00062 seconds instead of 0.001 seconds. Is there a way to change the time interval to .001 seconds?
Regards,
Johan Hendrikse
Solved! Go to Solution.
09-01-2010 09:10 PM
Could you please confirm the time interval is alright when reading in LV?
09-02-2010 01:02 AM
It is also possible that your loop does not run @ 1kHz and therefore the readings have another sample period.
Did you check/benchmark if your code actually can run @ 1kHz?
on what platform are you running the code?
best regards,
Stijn
09-02-2010 11:20 AM
Hi,
Even if I only have the Load cell running straight to the write VI inside of a while loop, the time interval is 0.00062. How would I go about checking if the code can run at 1000Hz? My computer runs on Windows 7, 64-bit (is this what you meant by platform?).
Johan
09-02-2010 11:26 AM
I checked at different sampling frequencies, and the output interval is still 0.00062 seconds.
09-02-2010 11:31 AM
You really need to provide some more information. Critical is which DAQ hardware you are using. Some devices have fixed sample rates and it is likely that you have one of those. You can use a DAQmx timing property node to get the exact sample rate the device is using. If Also, iou convert the evil dynamic data to a waveform data type, you can create an indicator for that and see the dt value.
09-02-2010 11:33 AM
Ah, I am using a USB 9237, which I thought had different sampling frequencies.
09-02-2010 11:42 AM
The information I am getting from the TEDS is that my wf_increment is 0.00062. Is that why I can't change it? The calibration of the load cell only allows for one frequency of sampling?
09-02-2010 11:42 AM
It DOES have different sample rates - it just does not have an infinite number of them. I should have been a bit clearer as to what I meant. Have you read the specs? The sample rates are defined as 50,000/n where n is an integer between 1 and 31. When you specify a rate, the driver will set it to the closest that the hardware supports. A little bit of arithmetic shows that 50000/31 is .00062. How are you specifying the rate? Is this done with a DAQ Assistant?
09-02-2010 11:56 AM
Great! Thank you very much, I skipped over the set sampling frequencies. Sampling at 2 kHz is fine, so I will work with that. Thanks again.