From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-23-2017 03:15 AM
Hi everybody,
I need some ideas to work with sampling rate, here i have some doubts.
1. I was acquiring a voltage signal from daq device usb 6211 with rse configuration mode and i have added sapling clock to acquire a samples of 10 per second per channel but i don't think it was getting a 10 samples per second per channel, instead of that it takes 10 seconds to acquire next set of samples to acquire.
2. My questions is that sampling rate which denotes no. of rate of samples to acquire per second per channel or it will be used to set for time delay to acquire a samples.
as i am a new to this labview, need to know about this important thing,
Thank you in advance,
regards,
Dinesh
07-23-2017 04:00 AM
It would help us if you posted you code.
The Samples Per Second is the sample rate that the hardware will sample at. So with 10 S/sec, you will get a sample every 100ms. What you are probably seeing is you set the sample count to 100. With that setup, you are reading 100 samples every 10 seconds (100 S / 10 S/sec = 10 seconds).
07-23-2017 08:16 AM
hello,
i have created a vi to explain what i want? i need much more concept about sampling rate i need some idea to get started to work with sampling rate.
thanks in advance,
Regards,
Dinesh
07-23-2017 10:04 PM
The sample rate you give to the DAQmx Timing VI is in Samples/Second. It will take care of the "per channel" part. You do not have to worry about that. So if you want your channels to be samples at 10S/second, you just put in 10 for the rate. You will also want to set the Sample Mode to Continuous.
07-28-2017 05:07 AM
Hi crossrulz,
I have done using the sampling rate and when i was going to save it in a csv file, it was not working at all, could you give any suggestions for that? and also i need to display the channel values in the XY graph i mean channel 1 vs channel 2 but i would like to display the acquiring data with a time(sec) in a X-axis and i have done it using a multiple channel multiple samples mode when i tried to acquired it for multiple channel single sample, i little messing up the code any suggestions for that too?
07-28-2017 05:29 AM
Attach your code so we can figure out what you are doing wrong.
07-28-2017 07:08 AM
Hi,
I have attached a vi to this and i was using usb 6211 to acquire the voltage and daqmx clock vi has been put it in a continous mode and sampling rate set to 10 and the acquired data is saved in a spreadsheet file, and i run the program for 10 seconds and i stopped, it acquire the values and saved it in a file and when i analysed through the file it displays approximately 200 samples and i set the sampling rate to 10 as you said, am i missing any part here, do i need to add a timing function inside a while loop?.
Thanks in advance,
Regards,
Dinesh
07-28-2017 07:46 AM
It works fine for me. I edited your code to make the logging of the data more efficient (using the actual File IO functions and the Array To Spreadsheet String).
07-31-2017 12:58 AM
Hi,
First of all sorry for asking the same question i didn't get enough idea in this because actually if i enter Sampling rat of 10 and i start the vi at 0th sec and stops at 10th sec and i saved the values in csv file when i go through the file it shows 200 samples per 10 sec, i don't understand this concept explain me clearly.
Thank you in advance,
Regards,
Dinesh
07-31-2017 03:15 AM
I did not see that. I ran for 10 seconds and got 100 samples per channel.