From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-08-2023 01:38 AM
I want to log strain data as 20 samples/sec.
but when I use tran - continuous input.vi" from example source of labview, can not find that how to set this.
I can not understand clearly about meaning of 'samples per loop', 'sample clock source', 'sample rate' in this VI
actural sample rate is fixing to 793.65 even I changed value of 'samples per loop', 'sample rate'
Please help me about this issue.
11-08-2023 02:02 AM
Hi Daniel,
@Daniel_Kil wrote:
actural sample rate is fixing to 793.65 even I changed value of 'samples per loop', 'sample rate'
Please help me about this issue.
Please tell us which DAQ hardware you use.
Did you read the manual/specs for your DAQ device? It surely mentions the supported range of samplerates…
(Educated guess: you use one of those NI modules where the samplerate usually ranges from ~1.6kS/s to 50kS/s.)
@Daniel_Kil wrote:
I can not understand clearly about meaning of 'samples per loop', 'sample clock source', 'sample rate' in this VI
There's a simple relation:
iteration_time [s] = samples_per_loop [S] / sample_rate [S/s]
The sampleclock source provides the trigger signal for the ADC (to read the next sample) and most often you will use the "onboard clock". You might use external clocks or other clocks provided by your DAQ device when there are reasons to do so…
11-08-2023 02:54 AM
I am using NI-9234 module with NI cDAQ-9178 chasis
Data rate range (fs) is Min. 794S/s, Max. 10kS/s
However, I want to save data only 20S/s for synchronizing with load(voltage) data.
How can set this?
11-08-2023 04:56 AM
Hi Daniel,
@Daniel_Kil wrote:
I am using NI-9234 module with NI cDAQ-9178 chasis
Data rate range (fs) is Min. 794S/s, Max. 10kS/s
However, I want to save data only 20S/s for synchronizing with load(voltage) data.
How can set this?
You cannot set a samplerate of 20S/s as the module doesn't support it.
But you can set 10 (or 5 or 2.5) kS/s and decimate down to 20S/s! When sampling at 10kS/s you read 500 samples and average them to yield just 20 samples from 10kS per second…
Btw. according to the specs the NI9234 only supports:
Data rate range (fs) | |||||||
---|---|---|---|---|---|---|---|
|
So you may set a samplerate of 2.56kS/s and decimate by a factor of 128…
11-09-2023 01:13 AM
Thanks for your kind support.
Can you help me know how to set sample rate to save data?
I can under stand about reading sample rate. so can read strain data in multiples of the voltage data.
so. hope to saving data after synchronize with other source after reducing sample rate.
Best regard.