LabVIEW Application typically communicates with instruments using instrument drivers.
These are collections of sub-VIs. For example driver for power supply could have |
Example: To set voltage to 3.3 V, the application calls
Instrument driver converts request to strings that are sent to (or read from) the instrument through GPIB controller driver.
This is also a collection of sub-VIs (|
Example: Instrument driver calls
|Operation is similar for application written in C++. Collection of VIs in LLB is replaced with collections of functions in header file.|
GPIB driver performs addressing and converts data to GPIB controller protocol and communicates to the controller
through either FTDI driver' API calls or virtual COM port (VCP) implemented with FTDI driver.
Although named the same, it is a different driver depending on FTDI interface.
The driver also waits for acknowledgements from the controller. More information on the protocol can be found in the manual.
In the first case data is sent to the controller using |
Example: First addressing is performed:
|FTDI driver passes data through Windows USB driver stack to the FTDI chip in the GPIB controller.|
Microcontroller reads data, formatted using controller protocol, from the FTDI FIFO chip.
The microcontroller executes received commands and passes data to the GPIB bus.