Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Nov 9, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

niScope Acquire Large Record, Fetch to Binary

0 ratings | 0.00 out of 5
Print

Overview

This VI acquires a large single record at a high sample rate, informs the user that the data has been acquired, fetches the data out in a loop and writes it to a binary file.

Downloads

Filename: acquire_lrge_binary.zip
Requirements: View

Example: Acquire Large Record, Fetch to Binary

 

Recommended Input Signal: 1MHz, 4 Vpp, sine wave

 

Devices Supported: NI 5620, NI 5621, NI 5122, NI 5124, NI 5114, NI 5142 (562x devices require configuration of a 2 V vertical range, 50 ohm input impedance and appropriate vertical coupling). If the NI 5102, NI 5112, NI 5922, NI 5911 are used, the fetch VI should be changed to match the size of the incoming sample (8 or 32 bits).

 

This VI acquires a large single record at a high sample rate, informs the user that the data has been acquired, fetches the data out in a loop and writes it to a binary file. This example differs from most other installed niScope examples (such as niScope EX Configured Acquisition, niScope EX Save to File, niScope EX Measurement Library) because it takes one large single record of several megabytes while most other examples acquire a single record of a few kilobytes, fetch from that record, and then fill it again in a loop repeatedly. The advantage of this example is that the single record is continuous in time, whereas other examples represent chunks of noncontiguous data. A common use case is to acquire an event at the maximum sample rate of the digitizer until the onboard memory is full and then fetch it out. If a high sample rate is not needed (< ~10MS/s) then the user should use the installed example, niScope EX Fetch Forever, which allows continuous streaming to disk at low sample rates. If the user prefers to let the NI SCOPE driver to perform a measurement (FFT, filtering, histogram, max/min, etc.) then please refer to the web example niScope Acquire Large Record, Fetch with Measurement to HWS.

 

Read Binary File with Filtering.vi can be used to read the resulting binary file. The filtering can be optionally applied.

 

Requirements


Filename: acquire_lrge_binary.zip

Software Requirements


Application Software: LabVIEW Full Development System 8.2
Language(s): LabVIEW

Hardware Requirements


Hardware Group: High-Speed Digitizers (Scopes)
Hardware Model: PCI-5102, PCI-5112, PCI-5114, PCI-5122, PCI-5124, PCI-5142, PXI-5142, PCI-5922, PXI-5102, PXI-5112, PXI-5114, PXI-5122, PXI-5124, PCI-5911
Driver: NI-SCOPE 3.2

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).