Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 rating:
 1 out of 5     Rate this Document

"Device not found" or "Invalid Output Mode" Error When Using PXI-5402 in Arbitrary Waveform or Arbitrary Sequence Mode

Hardware: Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PXI-5402

Problem:
My PXI-5402 will not allow me to use the NIFGEN Arbitrary Function Generator Express VI in LabVIEW. It reports "Device not found". The card works fine with the FGEN SOFT FRONT PANEL and it also works fine in LabVIEW when using frequency lists for generating various waveforms. However, examples such as NiFGen_Sweep_Generator_Example.vi report the following error "Invalid Output Mode - NIFGEN_VAL_OUTPUT_ARB not supported on this Signal Generator." when I try to use the "Arbitrary Waveform" or "Arbitrary Sequence" mode.

Solution:
The PXI-5402 is an Arbitrary Function Generator which means it will only produce periodic waveforms in a mode called Direct Digital Synthesis (DDS). In DDS mode, a fixed size memory (called lookup memory) stores one cycle of a periodic waveform. This waveform must contain exactly the same number of samples as the lookup memory size (no more, no less).

A phase accumulator indexes into the lookup memory and for each cycle of the device sample clock, the sample of the waveform in lookup memory that is addressed by the phase accumulator is output. The accumulator is then incremented by the value in the frequency control word (FCW). By adjusting the Frequency property / attribute, NI-FGEN will calculate the corresponding FCW and you can vary the output frequency of the waveform in lookup memory. The phase accumulator increments in smaller steps for smaller FCWs.

Accordingly, you need more samples to output one cycle of the waveform, so the frequency is lower. A higher FCW results in a higher output frequency. In DDS mode, the sample clock does not vary with the frequency of the waveform generated. At higher frequencies, some waveform samples in lookup memory are skipped; at lower frequencies, some samples output multiple times in succession.

With this in mind you can see that this device will not support Arbitrary waveform or Arbitrary Sequence mode. You need to use it in DDS mode and download your user-defined waveform into lookup memory. It is well worth re-stating here that DDS based generators will not necessarily output all samples of the pattern in lookup memory depending on the output frequency. If you need to ensure that every sample is output you will need to use an Arbitrary Waveform Generator such as the PXI-5421.

Related Links:

Attachments:





Report Date: 01/10/2007
Last Updated: 01/19/2007
Document ID: 459I25DF

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit