12-06-2016 01:33 AM
Hi everyone,
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?
Thank you
Solved! Go to Solution.
12-06-2016 02:21 AM - edited 12-06-2016 02:22 AM
Hi holucbme,
I'd like to separate them to process later. How can I do that?
You already "separate" those signals by using the ArrayToCluster function…
General hints:
- 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!
12-06-2016 02:23 AM
Index the element you want from your output array.
12-06-2016 03:36 AM
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.
12-06-2016 03:43 AM
12-06-2016 03:47 AM
Many thanks!
12-08-2016 01:24 AM
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?
12-08-2016 01:41 AM
Hi holucbme,
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…
12-08-2016 02:08 AM
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.
12-08-2016 02:34 AM - edited 12-08-2016 02:35 AM
Hi holucbme,
I use Initialize Array VI to collect 100 samples but the spectrum isn't right.
Wrong!
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…
Solution:
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.)