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

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Generating Segments of Larger Waveforms with the NI 5411

1 ratings | 3.00 out of 5
Print

Downloads

Filename: samplcnt.zip
Requirements: View

This is a modified version of the niFgen Arb Sequence Example.vi that ships with niFgen. This example shows how to use the Sample Counts Control on the niFgen Create Advanced Arb Sequence.vi.

Access to the control is passed up to the top level VI in the Sequence cluster control along with the Index, Loops, and Marker controls.

To use the control, pass the array of sample counts you want to use to create a new arbitrary sequence. The array must have at least as many elements as the value you specify in the Sequence Length parameter. Each Sample Counts array element corresponds to a Waveform Handles array element and indicates how many samples of the given waveform to generate. Each element of the Sample Count array must be larger then the minimum waveform size and a multiple of the waveform quantum. You can obtain these values by calling niFgenQueryArbWfmCapabilities.

For the NI 5411, you can use a minimum of 256 Sample Counts, with a quantum of 8, which is the same as creating a waveform for the NI 5411. The other restriction is that you cannot use a number greater than the number of samples in the waveform.

In terms of use, the NI 5411 only generates the number of samples that are indicated by the Sample Count number regardless of how many actual samples are in the waveform array downloaded to the NI 5411.

To Use:
In the Sequence Array of Cluster Control on the Front Panel, there is a Samples Control. Each element of the array pertains to one waveform in the sequence you are going to generate. Choose a Sample Count number between 256 and the number of samples in this particular waveform (Set in the Waveform Data control). Remember that the number must also be divisible by 8.

Requirements


Filename: samplcnt.zip

Software Requirements


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

Hardware Requirements


Hardware Group: Signal Source (AWG/FG/AO)
Hardware Model: PXI-5411, PCI-5411
Driver: Traditional NI-DAQ (Legacy) 6.9.3, NI-FGEN 1.5.1

 
1 ratings | 3.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/).