I'm using Arduino interface with Labview for acquiring signal. I use Analog Read N chan function. When I run the Labview. All signal display on a chart. I'd like to separate them to process later. How can I do that?
Solved! Go to Solution.
I'd like to separate them to process later. How can I do that?
You already "separate" those signals by using the ArrayToCluster function…
- Use shift registers to keep your own history of the measurement data.
- Use IndexArray function to get "signals" from your array - converting arrays to clusters is quite Rube-Goldberg!
Thank 2 bro 🙂 I did it.
I also want to ask a small question. Before, I used the LIFA (not LINX like now) to acquire the signal. In LIFA, It had a continuous acquisition sample function which I can set the number of samples and sampling rate. My question is: where I can set the number of samples and sampling rate with LINX.
Sorry for my silly ask again.
After I read out signal from Index Array VI, I want to see the its spectrum. When I wire it to Build Waveform VI, the signal in time domain looks fine but I didn't see its spectrum. Can you please help me to find out where is my problem?
so you create a waveform with exactly one sample in it.
From this single sample you try to calculate a spectrum - you know this is plain silly?
For a FFT calculation you need to collect some samples: the more samples the better the frequency resolution…
Thank for your quick answer.
I use Initialize Array VI to collect 100 samples but the spectrum isn't right. (I generate sin wave Vpp=3V and frequency = 10Hz from function generator.
I use Initialize Array VI to collect 100 samples but the spectrum isn't right.
You don't "collect" samples by creating an array of 100 identical elements!
Btw. the spectrum is completely correct for that type of array: just a DC components and some noise due to computational residues…
Collect those samples!
To collect data in an array you need a shift register and a BuildArray function!
(This is basic LabVIEW stuff so I recommend to take the FREE beginner tutorials offered by NI.)