The Rulbus LabVIEW Library contains several VIs for each Rulbus module, including a Contents VI. Here is the 12-bit DAC module's Contents page.
The Contents VIs of all Rulbus modules are collected in an overall library Contents VI. The latter is a good place to start exploring the Rulbus LabVIEW Library: With the context help on (Cntrl+H
), move the mouse pointer over the Contents VI for the Rulbus module(s) you are interested in.
Rulbus modules are used according to the pattern: open -- use -- close, for example:
The name used to open the DAC corresponds to a name in the Rulbus configuration file. See section Defining the Modules
All Rulbus VIs provide error handling. An incoming error is directly transfered to the error output and the VI does nothing else. If an error occurs within the VI, an error is generated with:
Connected to a LabVIEW simple or general error handler, this gives a rather ugly, but nevertheless useful message that indicates the source and the kind of the error.
Only the first sentence of the error message is important, you may ignore the rest of the message.
The following example program opens a DAC, generates a staircase voltage and closes the DAC again.
Note that the input voltage parameter of the RB8510 DAC12 Set Voltage
VI contains the voltage unit V. The loop count i
is mutiplied by 1V to convert it to voltage. Physical units are described on pages 9-25 to 9-32 in the G Programming Reference Manual [National Instruments, 1998].
previous | top | next |