05-13-2009 12:11 PM
Greetings,
I am trying to create a small DAQ system that digitalizes a analog signal and displays the waveform and spectral analysis. I know that the analog waveform component receives and array to plot the waveform. However I am having doubts about how many samples I need to collect to create the exact graphs that is annexed to this post.
Could anyone give me some help please?
Thanks
05-13-2009 01:41 PM
Borges,
Without a lot of detail on your problem, I would suggest you look at some topic on analog acquisition. It seems as though you would like to capture an accurate "shape" of your signal, and also to sample at a high enough rate to accuratly capture the component frequencies in your signal as well. I did a quick search on the NI site and found this intro: http://zone.ni.com/devzone/cda/tut/p/id/3016. You may want to do some more looking around to make sure you understand all of your options regarding digitization of your signals.
-cb
05-13-2009 02:29 PM - edited 05-13-2009 02:31 PM
Recently I tried to made this program to aquire the analog data from a serial port based device. I am trying to use the waveform graph from the right in my program instead of the graph from the left.
I do know that I need to create an array to store the aquired elements and connect to the wave form graph.
Question is: What is the correct way to program that?
My serial device is programmed to receive an character and return a 0-255 number that corresponds to the aquired value.
05-13-2009 03:19 PM
If you want to create an array and use a graph instead of the chart and it's history (an array), you can use a shift register with a build array function. The way you are creating an array now is not correct.
Please note that the above solution is only recomended for short acquisitions. The array can quickly become very large and your program will become sluggish.
05-14-2009 05:11 AM
How I should create a optimized way to make a good aquisition? In principle I should collect 2500 samples and store in array and after that the program should clean the array and collect 2500 samples again... Could you explain to me how to do that, please?
05-14-2009 09:25 AM
05-14-2009 11:40 PM
05-14-2009 11:44 PM
Right click on the border of the loop and select "Add Shift Register".
This is fundamental LabVIEW knowledge. If you weren't aware of it, then you should take some tutorials. I would recommend you learn more about LabVIEW from here. How to Learn LV
05-14-2009 11:58 PM
I was not aware about the location of the shift register. However, I already have the basics in the labview and I also made many instruments before. I just not 100% aware in how to build a waveform graph using an array since the LabVIEW is a little diferent from the writed languages.
05-15-2009 12:38 AM