ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
11-16-2011 09:19 AM
Hi there... been a while since I last posted. I will be taking the NI exam this week and this concept (or more like semantics of LabVIEW) is confusing me yet again. And it is as simple as addition, but my mind doesn't seem to wire up right.
I am still a little dazed by the method of obtaining analog inputs (Although I have it working in my application) and the various READ options available. Like 1 Channel 1 sample, 1 channel N sample, N channel N sample, N channel N sample Wfm etc. To add to the mix, what confuses me more is the number of samples to READ and buffer.
I am just not able to SEE how values are read and displayed on front panel and what values are replaced in the buffer etc. Are there any examples that show clearly the different READ options available? I would really appreciate it. I really want to see how data flows, so that in future for an application, I can process the requirement in my head and then program it.
I hope I have my question clear. PLease let me know. Thanks a ton!!
V
11-17-2011 11:46 AM
Hello VeeJay,
What exam are you taking? Good for you! So here is something that I think you might find helpful:
So depending on your acquisition, if it's continuous or finite samples. But let's say you have set your timing to finite samples.
The difference between waveform and 2D DBL is how you want to present the data on the front panel, if you select waveform you can set it to plot a chart or a graph.
The samples to read are stored in the buffer. Depending on your timing, if it's finite samples then the samples to read and the buffer are the same size, but if you have set it up to continuous sampling then the buffer auto sets to a different value.
In a way to explain to you how the data flows I could try to explain it to you this way:
The data is acquired from the DAQ, depending on your rate, then it's passed to the buffer of the DAQ, then it goes to the PC Buffer and finally to LanVIEW Buffer, at this moment the data is being presented on the front panel.
My suggestion would be for a better understanding on how the different options for reading work is to simulate a device on the Measurement & Automation Explorer, and afterwards program on LabVIEW a simple DAQmx acquisition task so you can see the different behaviors of this.
Best regards,
11-17-2011 12:34 PM
I hope you searched the forum before coming here.
Take a look at one my Previous post related same topic here....http://forums.ni.com/t5/LabVIEW/Samples-to-read-option-in-DAQ/m-p/1741230#M610093
11-22-2011 03:05 PM
Thank you both for your help. I guess I understand what gets done, but not how it gets done. Again, I get 1 channel 1 samples means as is and so is N channel 1 sample And transfer from DAQ to buffer etc.
My main concern is with respect to sample rate, number of samples on timing vi, number of samples to read on read vi, (#channel #sample) option on read vi and LOOP time.. THese are the variables that individually I understand, but put them together in a simple program, I am befuddled. I have posted this question before as well. Thanks!
11-23-2011 08:47 AM
VeeJay,
Have you checked the examples that come with LabVIEW? To be honest, running them and observing their behavior is the best way to understand this. If you know all these concepts individually then when you see a code running it's easier to get the idea of how it really works.
If you go to http://www.ni.com/code there are many other examples there that you can find useful.
Regards.