Using the Rulbus LabVIEW Library
[User Manual]

Structure

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.

user-daccontentsd.png

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.

Usage Pattern

Rulbus modules are used according to the pattern: open -- use -- close, for example:

user-simpled.png

The name used to open the DAC corresponds to a name in the Rulbus configuration file. See section Defining the Modules

Error Handling

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.

user-errormsg.png

Only the first sentence of the error message is important, you may ignore the rest of the message.

Complete Example

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].

user-dacd.png

previous top next


Generated on Wed Oct 13 09:23:13 2004 for Rulbus LabVIEW Library for Microsoft Windows by doxygen 1.3.4