LABWINDOWS INSTRUMENT DRIVER
After the Resource Manager opens a session, communication with the device can usually begin using the default session settings. For example, you could use the following code to obtain the logical address of a VXI address: Performs an identification query on the instrument. To use your newly created task in a program, call the Run Task function declared in the header file as shown in the following code:. Returns an Instrument Handle which is used to differentiate between different sessions of this instrument driver.
|Date Added:||16 January 2010|
|File Size:||70.3 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
It is possible to have more than one session open for the same resource. Returns an Instrument Handle which is used to differentiate between different sessions of this imstrument driver.
However, before you use this call you need to know the exact location address of the resource you want to open. The presence of the. When referencing your instrument, you can use the canonical resource name that is assigned to your instrument or NI-VISA also supports unstrument use of aliases to make opening devices easier.
To use your newly created task in a program, call the Run Task function declared in the header file as shown in the following code:.
These services include, but are not limited to, assigning unique resource addresses and unique resource IDs, locating resources, and creating sessions. For example, the instrument module files for the Agilent HP A multimeter are hpa. Class This class of functions provides lower level functions to communicate with the instrument, and change instrument parameters. Using the above examples, the logical address is a bit value, whereas the baud rate is a bit value. Instrument Drivers You can find instrument drivers for more than 5, instruments on the Instrument Driver Network.
If you cannot find one, refer to the section on Creating an Instrument Driver.
How to Use an Instrument Driver in LabWindows/CVI Tutorial – National Instruments
Back to Top 4. Look here to find an instrument driver for your particular instrument.
To use an alias in your program, just call viOpen with the alias name instead of the canonical resource name.
If you find one, follow the procedure below to load it into CVI You can load and unload instrument drivers manually using the Instruments Folder in the Library Tree or using the Instrument menu. The following figure shows the function tree layout for the Agilent A driver.
How to Use an Instrument Driver in LabWindows/CVI Tutorial
Each session contains all the labeindows necessary to configure the ihstrument channel with a device, as well as information about the device itself. Back to Top 3. If you find one, follow the procedure below to load it into CVI. You can double-click on any of the functions to open that function and edit or run it. The Instrument Driver Development Wizard copies the template or existing driver files and replaces all instances of the original instrument prefix with the prefix you select for your new driver.
This information is encapsulated inside a generic structure called an attribute.
This function initializes the instrument and sets it to a default configuration.