ASSOCIATED RESEARCH HYAMP 4 Series Ground Bond Testers User Guide

September 3, 2024
ASSOCIATED RESEARCH

HYAMP 4 Series Ground Bond Testers

“`html

Product Information

Specifications:

  • Product: HYAMP 4 series (3200 series)
  • Manufacturer: Ikonix Group
  • Driver Type: IVI Instrument Driver
  • Website: www.arisafety.com

Product Usage Instructions

1. IVI Driver Setup:

Follow these steps to set up the IVI driver:

  1. Download the IVI Driver from the website.

  2. Run the self-extracting setup file and follow the installation
    wizard.

  3. If prompted, download the IVI Shared Components from the IVI
    Foundation Website.

  4. Install the shared components and continue with the
    installation.

  5. Follow the instructions to complete the installation.

  6. Optionally install the source code of the IVI Driver if
    needed.

  7. The IVI driver will be installed under IVI FoundationIVI
    directory.

2. Getting Started with C#:

To use the IVI driver with C#, follow these steps:

  1. Import the driver into your C# program.
  2. Develop a program controlling the device step-by-step.
  3. Ensure you have the necessary requirements:
  • HYAMP 4 IVI Driver

  • IVI Shared Components – Download
    here

  • VISA driver –
    Download here

  • Microsoft Visual Studio or other IDEs

  • HYAMP 4 series ground bond tester, including model 3240

FAQ

Q: Where can I find more information about the IVI drivers for

HYAMP 4 series?

A: For more detailed information about the HYAMP 4 IVI driver,
please refer to the help document ARI32XX.chm located at IVI
FoundationIVIDriversARI32XX.

Q: How can I establish communication with the instrument using

different programming languages?

A: You can establish communication using C#, C++, Python, or
LabVIEW programming languages by following the provided tutorials
in the user manual.

“`

Document Version 1.1
IVI Driver Getting Started Guide
For HYAMP 4 series(3200 series),
Overview
This application note will describe the installing instructions and several programming examples for IVI Instrument Driver of HYAMP 4 series. To understand more about the IVI drivers, please refer to the website of IVI Foundation. For more detail of the HYAMP 4 IVI driver, please check the help document, ARI32XX.chm, located at the path of IVI FoundationIVIDriversARI32XX.
1. IVI Driver Setup
Instructions on downloading and Installing IVI Instrument Drivers from website. Download and install Shared Components from IVI Foundation Website.
2. Getting Started with C#
A tutorial using IVI driver establishes communication with the instrument by C# programming.
3. Getting Started with C++
A tutorial using IVI driver establishes communication with the instrument by C++ programming.
4. Getting Started with Python
A tutorial using IVI driver establishes communication with the instrument by Python programming.
5. Getting Started with LabVIEW
A tutorial using IVI driver establishes communication with the instrument by LabVIEW programming.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

1. IVI Driver Setup
After downloading the IVI Driver, run the self-extracting setup file and you will see the installation wizard to start setup. Please follow the below instruction to complete the installation.
The setup will detect if IVI Shared Components are installed. If prompted with the following screen, click on Download, The IVI Foundation Website will be opened.
Please download the latest IVI Shared Components either 32-bit or 64-bit version. After downloading, install the shared components and continue the installation.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

After the IVI Shared Components are installed, please follow the steps to complete installation.
There are options for installing the source code of the IVI Driver, if it is necessary.
The IVI driver would be installed under the path of “IVI FoundationIVI”. For the files with “*.dll” extension name would be located in the “Bin” folder. And the necessary help documents will be in the folder of “..DriversARI32XX”.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

2. Getting Started with C#
Introduction
This chapter describes the procedures of using the IVI-COM driver of Ikonix Group by C# programming language. In this exercise, the programmer could import the driver and complete a short program controlling the device step-by step.
The C# could use IVI-C driver, either. However, we suggest that an IVI-COM interop would be easier for you to develop the program.
Requirements
HYAMP 4 IVI Driver IVI Shared Components, https://www.ivifoundation.org/shared_components/Default.aspx VISA (Virtual Instrument Software Architecture) driver,
https://www.ni.com/en/support/downloads/drivers/download.ni-visa.html Microsoft Visual Studio or other IDEs A HYAMP 4 series ground bond tester, including 3240
Download the Drivers
Please go to the website of the Associated Research to download the latest version of IVI drivers or contact the vendors. Follow the steps and instructions in Chapter 1 to complete the installation.
References
On the website of IVI Foundation, there are documentations you might be interested while implementing controlling the devices. You could find the resources of developing with an IVI driver, https://www.ivifoundation.org/resources/default.aspx. The IVI Shared Components could be download from https://www.ivifoundation.org/shared_components/Default.aspx. There are several documents on the website for understanding the IVI.
In the installed directory, there are several documents for your reference understanding the HYAMP 4 IVI Driver. A help file, ARI32XX.chm, would be located at the path of IVI FoundationIVIDriversARI32XX. In this help file, you could find all of the provided functions and their hierarchy.
There are four types of sample code for your reference which are located at the path of IVI FoundationIVIDriversARI32XXExamples, including C#, C++, Python and LabVIEW as well.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

Development
1 Create a C# project 1.1 Open Visual Studio IDE and create a new C# console project.
2 Import Libraries 2.1 Right-click on the reference and select Add Reference in the solution explorer 2.2 Click on the Browse button and go to the path of “IVI FoundationIVIBinPrimary Interop Assemblies” and choose AssociatedResearch.ARI32XX.Interop.dll and Ivi.Driver.Interop.dll.
2.3 Declare to use the name spaces for the interop assemblies that are specified to reference in the previous section.
using AssociatedResearch.ARI32XX.Interop;
3 Start programming 3.1 Create an object of the driver and use the initialize method to build up the connection.
//Initialize var driver = new ARI32XX(); string resourceName = “ASRL9::INSTR”; string optionString = “DriverSetup=BaudRate=38400”; driver.Initialize(resourceName, true, false, optionString);
For more detail for the parameters of the Initialize() method, please refer to the help document, ARI32XX.chm, which is located at “IVI FoundationIVIDriversARI32XX”. The first parameter ResourceName is a string type and indicates the interfaces type and address of the connection. The resource name,”ASRL9::INSTR”, represents a serial port with address 9. For example, a GPIB connection could be “GPIB0::8::INSTR”. For TCP/IP connection, it will be in the format of “TCPIP0::192.168.0.1::10001::SOCKET”. The 10001 is the TCP/IP connection port of HYAMP 4.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

If you use serial port to connect to device, please follow the above example,
“DriverSetup=BaudRate=38400”, to setup the baud rate. There are other parameters for the
option of the Initialize() method, please refer to the ARI32XX.chm for more details.
3.2 Create file and setup test
//Create and edit test file try {
driver.Files.Create(1, “IviTest”); } catch {
int totalFiles = driver.Files.TotalFiles; for (int i = 0; i <= totalFiles; i++) {
if (driver.Files.QueryFileName(i).Contains(“IviTest”)) {
driver.Files.Delete(i); driver.Files.Create(i, “IviTest”); break; } } }
//Add ground bond test item by AddGNDTest() driver.Steps.AddGNDTest(
ARI32XXTestModeEnum.ARI32XXTestModeAC, //Output Mode 1, //Dwell Time 25, //Current 8, //Voltage 0, //Resistance High Limitation 0, //Resistance Low Limitation 0, //Voltage High Limitation 0, //Voltage Low Limitation 0, //Resistance offset 0, //Voltage Offset ARI32XXFrequencyEnum.ARI32XXFrequency60Hz //Frequency for AC ouput Mode );
//Add an GND step and then edit parameters driver.Steps.AddGNDTestWithDefaults(); driver.Parameters.OutputMode = ARI32XXTestModeEnum.ARI32XXTestModeDC; driver.Parameters.Dwell = 5; driver.Parameters.Current = 20; driver.Parameters.Voltage = 5; driver.Parameters.HighLimit = 200; driver.Parameters.LowLimit = 0; driver.Parameters.HighLimitVoltage = 6; driver.Parameters.LowLimitVoltage = 0; driver.Parameters.Offset = 10; driver.Parameters.OffsetVoltage = 0.2; //driver.Parameters.Frequency = ARI32XXFrequencyEnum.ARI32XXFrequency50Hz; //DC do not support frequency configuration
driver.Files.Save();
For the HYAMP 4, all of the test parameters would be within a file. Therefore, you need to
create a file first and then setup the parameters. For the previous firmware version, it might
not support the methods of AddGNDTest(). Therefore, we could add the steps with default
values using the AddGNDTestWithDeafults and then modify the parameters.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

At first, there is a try-catch process to handle creating files with the name might be existed.
3.3 Load file and start a test
//Output driver.Execution.Execute();
Before running output, you have to select a file to load using driver.files.Load(). And then invoke driver.Execution.Execute() method to start a test.
3.4 Measure during test
bool lastOpcStatus = false; while (true) {
Console.WriteLine(driver.Execution.ReadTestDisplayRaw()); driver.System.WriteString(“*OPC?n”); string opcStatus = driver.System.ReadString(); if (opcStatus.Contains(“1”) && lastOpcStatus)
break; lastOpcStatus = opcStatus.Contains(“1”); Thread.Sleep(100); }
This while loop would run with the condition of state is testing. Using the methods of Execution.ReadTestDisplayRaw() could let you read the immediate readings.
3.5 Close the session
driver.Execution.Abort(); driver.Close(); Console.WriteLine(“Done – Press Enter to Exit”); Console.ReadLine();
Close() would close the I/O session to the instrument.
4 Completed example The completed sample code could be find at the path of “IVI FoundationIVIDriversARI32XXExamples”.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

3. Getting Started with C++
Introduction
This chapter describes the procedures of using the IVI-COM driver of Ikonix Group by C++ programming language. In this exercise, the programmer could import the driver and complete a short program controlling the device step-by step.
Requirements
HYAMP 4 IVI Driver IVI Shared Components, https://www.ivifoundation.org/shared_components/Default.aspx VISA (Virtual Instrument Software Architecture) driver,
https://www.ni.com/en/support/downloads/drivers/download.ni-visa.html Microsoft Visual Studio or other IDEs An HYAMP 4 series ground bond tester, 3240
Download the Drivers
Please go to the website of the Associated Research to download the latest version of IVI drivers or contact the vendors. Follow the steps and instructions in Chapter 1 to complete the installation.
References
On the website of IVI Foundation, there are documentations you might be interested while implementing controlling the devices. You could find the resources of developing with an IVI driver, https://www.ivifoundation.org/resources/default.aspx. The IVI Shared Components could be download from https://www.ivifoundation.org/shared_components/Default.aspx. There are several documents on the website for understanding the IVI.
In the installed directory, there are several documents for your reference understanding the HYAMP 4 IVI Driver. A help file, ARI32XX.chm, would be located at the path of IVI FoundationIVIDriversARI32XX. In this help file, you could find all of the provided functions and their hierarchy.
There are three types of sample code for your reference which are located at the path of IVI FoundationIVIDriversARI32XXExamples, including C#, C++ and Python as well.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

Development
1 Create a C++ project 1.1 Open Visual Studio or any other IDEs and create a new C++ console project.
2 Include Directories 2.1 Right-click on the project and select properties. 2.2 Expand the Configuration Properties and select VC++ Directories on the left menu. 2.3 Click on the drop-down column of the Include Directories and select <Edit..> to open the edit window.
2.4 Select the New Line button to add an include directories. There will be two necessary paths need to be added. IVI FoundationIVIBin $(VXIPNPPATH)VisaCom
2.5 Click OK to complete including the directories. 2.6 Use the #import operator to import the necessary DLLs
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

include “stdafx.h” #include #include #import

no_namespace #import no_namespace #import no_namespace 3 Start programming 3.1 Create an instance of the driver by pointer and use the initialize method to build up the connection. HRESULT hr = ::CoInitialize(NULL); IARI32XXPtr driver(__uuidof(ARI32XX)); driver->Initialize(“ASRL9::INSTR”, true, false, “DriverSetup=BaudRate=38400”); For more detail for the parameters of the Initialize() method, please refer to the help document, ARI32XX.chm located at “IVI FoundationIVIDriversARI32XX”. The first parameter ResourceName is a string type and indicates the interfaces type and address of the connection. The resource name,”ASRL9::INSTR”, represents a serial port with address 9. For example, a GPIB connection could be “GPIB0::8::INSTR”. For TCP/IP connection, it will be in the format of “TCPIP0::192.168.0.1::10001::SOCKET”. The 10001 is the TCP/IP connection port of HYAMP 4. If you use serial port to connect to device, please follow the above example, “DriverSetup=BaudRate=38400”, to setup the baud rate. There are other parameters for the option of the Initialize() method, please refer to the ARI32XX.chm for more detail. 3.2 Create file and setup test //Create file and config the parameters try { driver->Files->Create(1, “IviTest”); } catch (…) { int totalFiles = driver->Files->GetTotalFiles(); for (int i = 1; i <= totalFiles; i++) { std::string fileName = driver->Files->QueryFileName(i); if (fileName == “IviTest”) { driver->Files->Delete(i); driver->Files->Create(i, “IviTest”); break; } } } //Add ground bond test item by AddGNDTest() driver->Steps->AddGNDTest( ARI32XXTestModeEnum::ARI32XXTestModeAC, //Output Mode 1, //Dwell Time 25, //Current 8, //Voltage 0, //Resistance High Limitation 0, //Resistance Low Limitation 0, //Voltage High Limitation 0, //Voltage Low Limitation 28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-[847-367-4077](https://phone.gd/phone/847-367-4077) | Fax: 1-[847-367-4080](https://phone.gd/phone/847-367-4080) | www.arisafety.com

0, //Resistance offset 0, //Voltage Offset ARI32XXFrequencyEnum::ARI32XXFrequency60Hz );

//Frequency for AC ouput Mode

//Add GND step and then edit parameters driver->Steps->AddGNDTestWithDefaults(); driver->Parameters->OutputMode = ARI32XXTestModeEnum::ARI32XXTestModeDC; driver->Parameters->Dwell = 5; driver->Parameters->Current = 20; driver->Parameters->Voltage = 5; driver->Parameters->HighLimit = 200; driver->Parameters->LowLimit = 0; driver->Parameters->HighLimitVoltage = 6; driver->Parameters->LowLimitVoltage = 0; driver->Parameters->Offset = 10; driver->Parameters->OffsetVoltage = 0.2; //driver->Parameters->Frequency = ARI32XXFrequencyEnum::ARI32XXFrequency50Hz; //DC do not support frequency configuration

driver->Files->Save();

For the HYAMP 4, all of the test parameters would be within a file. Therefore, you need to create a file first and then select a file to be edited. For the previous firmware version, it does not support the methods of AddGNDTest(). Therefore, we could add the steps with default values using the AddGNDTestWithDeafults() and then modify the parameters. At first, there is a try-catch process to handle creating files with the name might be existed.

3.3 Load file and start a test
//Output driver->Execution->Execute();
Before running output, you have to select a file to load using driver->files->Load(). And then invoke driver->Execution->Execute() method to start a test.

3.4 Measure during test
bool lastOpcStatus = false; while (true) {
std::cout << driver->Execution->ReadTestDisplayRaw() << std::endl; driver->System->WriteString(“*OPC?n”); std::string opcStatus = driver->System->ReadString(); if (opcStatus.find(“1”) != std::string::npos && lastOpcStatus)
break; lastOpcStatus = opcStatus.find(“1”) != std::string::npos; Sleep(100); }
This while loop would run with the condition of state is testing. Using the methods of
Execution.ReadTestDisplayRaw() could let you read the immediate readings.

28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

3.5 Close the session
driver->Close(); std::cout << “Done – Press Enter to Exit” << std::endl; std::cin.get();
Close() would close the I/O session to the instrument. 4 Completed example
The completed sample code could be found at the path of “IVI FoundationIVIDriversARI32XXExamples”.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

4. Getting Started with Python
Introduction
This chapter describes the procedures of using the IVI-COM driver of Ikonix Group by Python programming language. In this exercise, the programmer could import the driver and complete a short program controlling the device step-by step.
Requirements
ARI32XX IVI Driver IVI Shared Components, https://www.ivifoundation.org/shared_components/Default.aspx VISA (Virtual Instrument Software Architecture) driver,
https://www.ni.com/en/support/downloads/drivers/download.ni-visa.html Python IDE Cometypes Library ( pip install cometypes) An HYAMP 4 series ground bond tester, 3240
Download the Drivers
Please go to the website of the Associated Research to download the latest version of IVI drivers or contact the vendors. Follow the steps and instructions in Chapter 1 to complete the installation.
References
On the website of IVI Foundation, there are documentations you might be interested in while implementing controlling the devices. You could find the resources of developing with an IVI driver, https://www.ivifoundation.org/resources/default.aspx. The IVI Shared Components could be download from https://www.ivifoundation.org/shared_components/Default.aspx. There are several documents on the website for understanding the IVI.
In the installed directory, there are several documents for your reference understanding the HYAMP 4 IVI Driver. A help file, ARI32XX.chm, would be located at the path of IVI FoundationIVIDriversARI32XX. In this help file, you could find all of the provided functions and their hierarchy.
There are three types of sample code for your reference which are located at the path of IVI FoundationIVIDriversARI32XXExamples, including C#, C++ and Python as well.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

Development
1 Install the Comtypes library pip install cometypes
In order to call an external com DLL in Python, you will need comtypes library installed.
2 Create a Python file 2.1 Open any IDE of Python and create a new Python file.
3 Import Libraries 3.1 Import the cometypes library and ARI32XX_64.dll
import time import comtypes import comtypes.client as cc

Import the IVI-COM DLL cc.GetModule(‘ARI32XX_64.dll’) from comtypes.gen

import ARI32XXLib
4 Start programming 4.1 Create an object of the driver and use the initialize method to build up the connection.
driver = cc.CreateObject(‘ARI32XX.ARI32XX’, interface=ARI32XXLib.IARI32XX) # Initialize Driver and make connection driver.Initialize(‘ASRL7::INSTR’, True, False, ‘DriverSetup=BaudRate=38400’)
For more detail for the parameters of the Initialize() method, please refer to the help document, ARI32XX.chm located at “IVI FoundationIVIDriversARI32XX”. The first parameter ResourceName is a string type and indicates the interfaces type and address of the connection. The resource name,”ASRL7::INSTR”, represents a serial port with address 7. For example, a GPIB connection could be “GPIB0::8::INSTR”. For TCP/IP connection, it will be in the format of “TCPIP0::192.168.0.1::10001::SOCKET”. The 10001 is the TCP/IP connection port of HYAMP 4. The second argument should be set with false value for not identifying the model names. It is a known issue that the HYAMP 4 returns the incorrect format of string which cause the model could not be detected correctly. If you use serial port to connect to device, please follow the above example, “DriverSetup=BaudRate=38400”, to setup the baud rate. There are other parameters for the option of the Initialize() method, please refer to the ARI32XX.chm for more detail. For example, “QueryInstrStatus=true” makes the session automatically query the error status for each command was sent.
4.2 Create file and setup test

Create file try:

driver.Files.Create(1, “IviTest”) except:
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

files = driver.Files.TotalFiles; for i in range(1,files+1):
if ‘IviTest’ in driver.Files.QueryFileName(i): driver.Files.Delete(i) driver.Files.Create(i, ‘IviTest’) break

Add ground bond test item by AddGNDTest() driver.Steps.AddGNDTest(

ARI32XXLib.ARI32XXTestModeAC, #Output Mode 1, #Dwell Time 25, #Current 8,

Voltage 0, #Resistance High Limitation 0, #Resistance Low Limitation 0,

Voltage High Limitation 0, #Voltage Low Limitation 0, #Resistance offset 0,

Voltage Offset ARI32XXLib.ARI32XXFrequency60Hz #Frequency for AC ouput Mode

);

Add an GND step and then edit parameters

driver.Steps.AddGNDTestWithDefaults(); driver.Parameters.OutputMode = ARI32XXLib.ARI32XXTestModeDC; driver.Parameters.Dwell = 5; driver.Parameters.Current = 20; driver.Parameters.Voltage = 5; driver.Parameters.HighLimit = 200; driver.Parameters.LowLimit = 0; driver.Parameters.HighLimitVoltage = 6; driver.Parameters.LowLimitVoltage = 0; driver.Parameters.Offset = 10; driver.Parameters.OffsetVoltage = 0.2;

driver.Parameters.Frequency = ARI32XXLib.ARI32XXFrequency50Hz; #DC do not

support frequency configuration
driver.Files.Save();
For the HYAMP 4, all of the test parameters would be within a file. Therefore, you need to create a file first and then select a file to be edited. For the previous firmware version, it does not support the methods of AddGNDTest(). Therefore, we have to add the steps with default values using the AddGNDTestWithDeafults() and then modify the parameters. At first, there is a try-catch process to handle creating files with the name might be existed.
4.3 Load file and start a test

Start test driver.Execution.Execute()

Before running output, you have to select a file to load using driver->files->Load(). And then invoke driver->Execution->Execute() method to start a test.
4.4 Measure during test

Measure lastOpcStatus = False while(True):

print(driver.Execution.ReadTestDisplayRaw()) driver.System.WriteString(“*OPC?n”)
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

opcStatus = driver.System.ReadString() if (‘1’ in opcStatus and lastOpcStatus):
break lastOpcStatus = ‘1’ in opcStatus time.sleep(0.1)
This while loop would run with the condition of state is testing. Using the methods of Execution.ReadTestDisplayRaw() could let you read the immediate readings. 4.5 Close the session

Reset test and close connection driver.Execution.Abort() driver.Close()

print(“Done – Press Enter to Exit”)
Close() would close the I/O session to the instrument. 5 Completed example
The completed sample code could be find at the path of “IVI FoundationIVIDriversARI32XXExamples”.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

5. Getting Started with LabVIEW
Introduction
This chapter describes the procedures of using the IVI-COM driver of Ikonix Group by LabVIEW programming language. In this exercise, the programmer could learn how to import the driver and complete a short program controlling the device step-by step.
Even though the programmers could control the device by IVI Driver. For the LabVIEW programmer, we suggest that using LabVIEW plug & play driver would be easier for your programming and debugging. The LabVIEW driver from Ikonix Group are all made up with commands directly, so you could clearly check how the commands were sent to instruments.
Requirements
HYAMP 4 IVI Driver IVI Shared Components, https://www.ivifoundation.org/shared_components/Default.aspx VISA (Virtual Instrument Software Architecture) driver,
https://www.ni.com/en/support/downloads/drivers/download.ni-visa.html National Instruments LabVIEW (This example was written in LabVIEW 2014) An HYAMP 4 series ground bond tester, 3240
Download the Drivers
Please go to the website of the Associated Research to download the latest version of IVI drivers or contact the vendors. Follow the steps and instructions in Chapter 1 to complete the installation.
References
On the website of IVI Foundation, there are documentations you might be interested while implementing controlling the devices. You could find the resources of developing with an IVI driver, https://www.ivifoundation.org/resources/default.aspx. The IVI Shared Components could be download from https://www.ivifoundation.org/shared_components/Default.aspx. There are several documents on the website for understanding the IVI.
In the installed directory, there are several documents for your reference understanding the HYAMP 4 IVI Driver. A help file, ARI32XX.chm, would be located at the path of IVI FoundationIVIDriversARI32XX. In this help file, you could find all of the provided functions and their hierarchy.
There are three types of sample code for your reference which are located at the path of IVI FoundationIVIDriversARI32XXExamples, including C#, C++ and Python as well.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

1 Open a new vi. 2 Import the DLL component.

Development

Open the Function Palette by right-clicking on the block diagram. Then select Connectivity -> ActiveX. Select or drop the Automation Open function on the block diagram. 3 Right-clicking on the Automation Open and select Select ActiveX Class -> Browse will open a window for choosing the DLL. 4 Select the Browse button and select the file ARI32XX_64.dll located at IVI FoundationIVIBin. The IVI ARI32XX Type Library would be added into the Type Libraries drop down menu. 5 Select IARI32XX and then click OK to complete creating an object of HYAMP 4 driver instance.
The Labview will automatically generate an Automation refnum of ARI32XXLib.IARI32XX control and connect to the Automation Open function.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

6 Create an Invoke Node function and connect the reference to the output of Automation Refnum and then click on the Method and select Initialize to initialize the connection with device.
For more detail for the parameters of the Initialize() method, please refer to the help document, ARI32XX.chm located at “IVI FoundationIVIDriversHYAMP 4″. The first parameter ResourceName is a string type and indicates the interfaces type and address of the connection. The resource name,”ASRL9::INSTR”, represents a serial port with address 9. For example, a GPIB connection could be “GPIB0::8::INSTR”. For TCP/IP connection, it will be in the format of “TCPIP0::192.168.0.1::10001::SOCKET”. The 10001 is the TCP/IP connection port of HYAMP 4. If you use serial port to connect to device, please follow the above example, “DriverSetup=BaudRate=38400”, to setup the baud rate. There are other parameters for the option of the Initialize() method, please refer to the ARI32XX.chm for more detail.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

6.1 Create file and setup test
Use the Property Node to get reference of the sub-system of IARI32XX class. For example, Files is one of the sub class of IARI32XX, and then we could use the Create method under Files to create a file in the device. For the HYAMP 4, all of the test parameters would be within a file. Therefore, you need to create a file first and then select a file to be edited. The methods of AddGNDTest is unavailable for the previous firmware version. Therefore, we could add steps with default parameters first and then edit the parameters. Please be noted that the flow of error data could make sure that the procedure ran sequentially.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

6.2 Start a test and measure
Before running output, you have to select a file to load. And then invoke Execute method to start a test under Execution class. The Execution class is one property of the IARI32XX class. This for loop would run with polling the state and meters. Using the methods of ReadTestDiaplyRaw could let you read the immediate readings. ReadTestDiaplyRaw is one method of IARI32XX.Execution. There is another commands querying states of the device, polling “*OPC?” could get the running status. Please be noted that the status between step and step might be OFF for a shot moment. To avoid reading wrong status, we use shift register comparing the status.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

6.3 Close the session
Close() method in IARI32XX class would close the I/O session to the instrument. Also, all of the references should be closed using the Close Reference function. 7 Completed example
The completed example with the state machine design pattern for your reference which are located at the path of IVI FoundationIVIDriversARI32XXExamples, including C#, C++ and Python as well. However, we suggest that using LabVIEW plug & play driver would be easier for LabVIEW developers. If you need a LabVIEW driver, please download it from the website of Associated Research or contact the vendor.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-TEST (8378) US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com

References

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

Related Manuals