![National Instruments NI PXIe-5450 User Manual Download Page 130](http://html2.mh-extra.com/html/national-instruments/ni-pxie-5450/ni-pxie-5450_user-manual_3486740130.webp)
Chapter 4
Programming
©
National Instruments Corporation
4-11
NI PXIe-5450 User Manual
•
The
resetDevice
parameter allows you to reset the signal generator
during initialization.
•
The
vi
parameter returns a handle that, when passed to subsequent
functions, allows you to communicate with the signal generator
throughout your session.
Configuration
Once you have opened a session to your signal generator, you need to
configure the session to generate the signals you desire for your
application. If you are using a multichannel device, you must configure
channels immediately after initializing and before configuring any other
feature of the device. When configuring the output mode of your device,
you can choose to generate a standard waveform, an arbitrary waveform,
an arbitrary sequence, a frequency list, or a script. Refer to the Features
Supported topic for your device for more information about the type of
output modes it supports.
Note
If your application requires triggers, clocking, or exported signals, you must
configure them before waveform generation begins. Refer to the Features section for more
information on configuring your signal generator.
Configure Channels
If you want to configure a multichannel signal generator to generate data
on more than one channel, you must configure the channels to be used.
Note
If you are not using a multichannel signal generator or if you are only concerned
with data generated on one channel of a multichannel signal generator, you do not need to
perform this step.
LabVIEW Example
Call the niFgen Configure Channels VI with
Channels
set to the channel
or channels you want to configure. Valid values are non-negative integers.
For example, 0 is the only valid value on devices with one channel, while
devices with two channels support values of 0 and 1. You can specify more
than one channel by inserting commas between values (for example,
“0,1”).