Relevant Documents
Download article (2498KB)

In the previous tutorials, we have shown how to install all the necessary drivers and how to communicate with Tabor AWG using SCPI commands. Another way of using LabVIEW to control Tabor AWGs, is by using the Tabor IVI driver. This way, one can communicate with the Tabor AWG, using pre-defined functions. In this tutorial, we will give a quick start guide on how you can communicate with the Tabor AWG using the IVI driver.

For this tutorial, we will use LabVIEW 2015 32bit and a USB interface, together with the Tabor WX2184C and its latest version of the WX218x 32bit IVI driver. While there are differences when using other Tabor families of instruments the basics are the same. To ensure you successfully established all the necessary settings for remote control over the Tabor instrument using LAN/USB/GPIB, please go over our connectivity tutorials on Tabor’s website.

  • To connect and control the Tabor’s Instrument using the IVI driver

1. Set the USB/LAN/GPIB as the remote interface, using the Tabor’s front panel buttons. To do so, go to:

“Utility”->”Remote Interface”->”Select Interface”->”Control from Interface”. Press Enter to select the active Interface you need. Wait for the answer “Done”. We chose to demonstrate using USB.

20210124153401.556.jpg

2. Once the LabVIEW is up and running, go to Tools->>Instrumentation->>Find Instrument Drivers…

20210124153410.962.jpg

Expand the installed Instrument drivers to see what drivers are installed. Expand the Connected instruments to see if LabVIEW identifies the Tabor unit.

20210124153424.415.jpg

Double click on the ‘wx218x’ icon, it will open a new window.


NOTE
If the Tabor driver isn’t visible on the NI Instrument Driver Finder, please refer to the instructions in “How to Control Tabor AWGs with LabVIEW – Getting started” tutorial, regarding how to copy & paste the ‘wx218x’ folder into LabVIEW’s instr.lib folder.


 3. Click on the ‘Open Palette’:

20210124153616.922.jpg

It will open the Tabor wx218x VIs Palette, which you could use to drag & drop each VI found in the IVI driver’s wrapper, to your generated code:

20210124153636.534.jpg

4. Right click on the ‘wx218x VI tree’ & choose to ‘Open VI’:

20210124153642.892.jpg

It will show you all the available VIs in the Tabor VI tree:

20210124153822.036.jpg

5. You can reach the Tabor VI tree in a similar way:
    a. open a new VI:

20210124153833.068.jpg

    b. Go to Tools->>LLB manager…

20210124153842.425.jpg

    c. Select the path as seen below,then double click on the wx218x.llb file:

20210124153852.629.jpg

d. Double click on the ‘wx218x VI Tree.vi’:

20210124153907.941.jpg

    e. Once it will open, go to Window->>Show Block Diagram:

20210124153924.676.jpg

It will show you all the available VIs in the Tabor VI tree:

20210124153934.098.jpg

6. Here is a short basic example, to set a 50MHz 2Vp-p square waveform in standard mode, just to get a feel of how to communicate using the Tabor IVI driver VIs:

a. Drag & drop the ‘Initialize with Options.vi’ and the ‘close.vi’ to a new blank VI:

20210124153947.566.jpg

    b. Wire them as seen below:

20210124153958.676.jpg

    c. Create an Error-out indicator for the ‘Close.vi’ by right clicking on the VI and choosing to create all controls and indicators as can be seen below:

20210124154010.423.jpg

    d. In the same way, create all controls and indicators for the ‘Initialize with options.vi’:

20210124154020.127.jpg

    e. Delete the Optional string control, as it is not necessary at this point:

20210124154042.065.jpg

    f. Drag and drop the ‘wx218x Configure.vi’ found under Standard Waveform:

20210124154052.862.jpg

    g. Do the same for the ‘wx218x Configure Output Enabled.vi’:

20210124154107.301.jpg

    h. Wire them as with the initialize & close VIs in a row (handle and error wires). Right click on the ‘wx218x Configure.vi’ to create all controls and indicators:

20210124154121.536.jpg

    i. Do the same for the ‘wx218x Configure Output Enabled.vi’. Make sure you wire the VIs as can be seen below:

20210124154131.833.jpg

    j. Now that we are all set, please go to the VI’s front panel and choose the Tabor’s resource name. Set to ‘Waveform Square’, offset 0V, Amplitude 2Vp-p, Frequency 50MHz. Choose the active channel to be ‘Channel1’ and set the ‘channel enabled’ to ‘On’ as can be seen below:

20210124154143.376.jpg

Press the run button.

7. As can be seen on scope, a 50MHz 2Vp-p square waveform was created:

20210124154222.863.jpg

8. In order to save this process as LabVIEW code, go to File->>Save as…

 20210124154239.441.jpg

20210124154250.848.jpg

9. Go to the ‘wx218x VI Tree’ block diagram and double click on the ‘Function generator Example’ VI:

20210124154301.208.jpg

This example shows how to use standard mode. It also shows how you can change some of the parameters on the fly:

20210124154310.661.jpg

Use the ‘Update’ button to write the parameters you change or use the cursors to change them on the fly. Use the ‘Stop’ button to finish and close the operation of this example. If the ‘Abort Generation’ option is chosen, then after you will press the ‘Stop’ button, the unit will perform a reset.

10. For more information regarding the IVI driver functions:

    a. Go to: C:\Program Files (x86)\IVI Foundation\IVI\Drivers\wx218x & open the “WX218x” HTML file:

20210124154320.239.jpg

    b. Follow the path as shown below:

20210124154329.864.jpg

In the next tutorials of the series “How to Control Tabor AWGs with LabVIEW”, we will show a few practical LabVIEW coding examples.


For More Information

To learn more about how to remote control Tabor instruments using LabVIEW, visit our website Support & Tutorials zone. If you encounter difficulties with connecting to Tabor units using LabVIEW, please contact us at support@taborelec.com and our support team will gladly help. For more of Tabor’s solutions or to schedule a demo, please contact your local Tabor representative or email your request to info@tabor.co.il. More information can be found at our website at www.taborelec.com