Test and Measurement Forum

Save only certain amount of data

Post your LabVIEW discussions here

Save only certain amount of data

Postby Alex_Coleman » Fri Aug 01, 2014 3:08 pm

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 110 times
PicoScope5000aExampleStreaming.vi
(35.13 KiB) Downloaded 98 times
screenshot4.jpg
Area that I want to capture (picoscope)
screenshot3.jpg
Area that I want to capture (LabVIEW)
Alex_Coleman
Newbie
 
Posts: 0
Joined: Tue Jul 22, 2014 2:07 pm

Re: Save only certain amount of data

Postby Martyn » Thu Aug 07, 2014 6:17 am

Do you mean that the "area of interest" is the area you wish to cut ?
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2339
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Save only certain amount of data

Postby Alex_Coleman » Mon Aug 11, 2014 9:14 am

Hi Martyn
Yes please. Any ideas?
Thanks
Alex_Coleman
Newbie
 
Posts: 0
Joined: Tue Jul 22, 2014 2:07 pm

Re: Save only certain amount of data

Postby Martyn » Mon Aug 11, 2014 12:28 pm

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 Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2339
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Save only certain amount of data

Postby Alex_Coleman » Mon Aug 11, 2014 1:39 pm

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.
Alex_Coleman
Newbie
 
Posts: 0
Joined: Tue Jul 22, 2014 2:07 pm

Re: Save only certain amount of data

Postby Martyn » Wed Aug 20, 2014 8:49 am

I would suggest looking at http://www.ni.com/white-paper/7571/en/
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2339
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to LabVIEW

Who is online

Users browsing this forum: No registered users and 1 guest