Save only certain amount of data

Post your LabVIEW discussions here
Post Reply
Alex_Coleman
Newbie
Posts: 0
Joined: Tue Jul 22, 2014 2:07 pm

Save only certain amount of data

Post by Alex_Coleman »

Hi all, beginner here.

I've purchased a picoscope 5242A and I'm working on a project using LabVIEW, which I don't have much experience with.
Anyway, I have a system outputting analogue signals at a fixed frequency and I'd like to record the digitized version of the signals in a binary file and then display them afterwards. I need the picoscope to operate in streaming mode, as my system runs in real-time. I've managed to do all of the above. Now the question is:
- How can I cut some of the digitized signals that I'm not interested? As in, the LabVIEW application reads the signals from picoscope but then it doesnt display everything once I read the binary file. Please have a look at the attached screenshots for more clarification. I have also attached both VIs I'm working on.

Thanks very much in advance.
Alex.
Attachments
Read Binary File.vi
(18.58 KiB) Downloaded 528 times
PicoScope5000aExampleStreaming.vi
(35.13 KiB) Downloaded 491 times
Area that I want to capture (picoscope)
Area that I want to capture (picoscope)
Area that I want to capture (LabVIEW)
Area that I want to capture (LabVIEW)

Martyn
Site Admin
Site Admin
Posts: 4499
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Save only certain amount of data

Post by Martyn »

Do you mean that the "area of interest" is the area you wish to cut ?
Martyn
Technical Support Manager

Alex_Coleman
Newbie
Posts: 0
Joined: Tue Jul 22, 2014 2:07 pm

Re: Save only certain amount of data

Post by Alex_Coleman »

Hi Martyn
Yes please. Any ideas?
Thanks

Martyn
Site Admin
Site Admin
Posts: 4499
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Save only certain amount of data

Post by Martyn »

You would need to do some array copying, and copy the data up to the point you wish to cut, and then again from the end of the cut.
Martyn
Technical Support Manager

Alex_Coleman
Newbie
Posts: 0
Joined: Tue Jul 22, 2014 2:07 pm

Re: Save only certain amount of data

Post by Alex_Coleman »

Would you be able to show me an example of how to do that? Or point me to the right direction. I'm a LabVIEW beginner :) Thank you.

Martyn
Site Admin
Site Admin
Posts: 4499
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Save only certain amount of data

Post by Martyn »

I would suggest looking at http://www.ni.com/white-paper/7571/en/
Martyn
Technical Support Manager

Post Reply