ARI Safety 8200 series OMNIA 2 IVI Driver Getting Started User Guide
- September 3, 2024
- ARI Safety
Table of Contents
- 8200 series OMNIA 2 IVI Driver Getting Started
- Specifications:
- Product Usage Instructions:
- 1. IVI Driver Setup:
- 2. Getting Started with C#:
- Q: Where can I find more information about the IVI
- Q: What should I do if the IVI Shared Components installation
- Q: Can I use the IVI driver with languages other than C#?
- include “stdafx.h” #include #include #import
- Import the IVI-COM DLL cc.GetModule(‘ARI82XX_64.dll’) from comtypes.gen
- Create file try:
- Add ACW test item by AddACWTest()
- Total Current High Limit
- Total Current Low Limit
- Dewll time in seconds
- RampDownTime in seconds
- ArcSense level
- Real Current High Limit
- Real Current Low Limit
- Offset Current
- Scanner
- Add an ACW step and then edit parameters
- This
- Start test driver.Execution.Execute()
- Measure lastOpcStatus = False while(True):
- Reset test and close connection driver.Execution.Abort() driver.Close()
- References
- Read User Manual Online (PDF format)
- Download This Manual (PDF format)
8200 series OMNIA 2 IVI Driver Getting Started
“`html
Specifications:
- Product: OMNIA 2 series (8200 series)
- Manufacturer: IKONIX Group
- Driver Type: IVI Instrument Driver
- Supported Programming Languages: C#, C++, Python, LabVIEW
Product Usage Instructions:
1. IVI Driver Setup:
Follow these steps to set up the IVI Driver:
-
Download the IVI Driver from the manufacturer’s website.
-
Run the self-extracting setup file and follow the installation
wizard. -
If prompted to download IVI Shared Components, visit the IVI
Foundation Website and download the latest version. -
Install the shared components and continue with the IVI Driver
installation. -
Optionally install the source code of the IVI Driver if
required. -
The IVI driver will be installed under the path IVI
FoundationIVI, with *.dll files in the Bin folder and help
documents in the ..DriversARI82XX folder.
2. Getting Started with C#:
Follow these steps to get started with C# programming:
- Ensure you have the following requirements:
-
OMNIA 2 IVI Driver
-
IVI Shared Components
-
VISA driver
-
Microsoft Visual Studio or other IDEs
-
An OMNIA 2 series safety tester (8204, 8206, 8207, 8254, 8256,
or 8257) -
Import the IVI-COM driver and create a program to control the
device step-by-step. -
We recommend using an IVI-COM interop for easier program
development.
Frequently Asked Questions (FAQ):
Q: Where can I find more information about the IVI
drivers?
A: For more details about IVI drivers, please refer to the IVI
Foundation website.
Q: What should I do if the IVI Shared Components installation
fails?
A: If the installation of IVI Shared Components fails, ensure
you have downloaded the correct version compatible with your system
and try reinstalling.
Q: Can I use the IVI driver with languages other than C#?
A: Yes, in addition to C#, the IVI driver supports C++, Python,
and LabVIEW for establishing communication with the instrument.
“`
Document Version 1.1
IVI Driver Getting Started Guide
For OMNIA 2 series(8200 series),
Overview
This application note will describe the installing instructions and several
programming examples for IVI Instrument Driver of OMNIA 2 series. To
understand more about the IVI drivers, please refer to the website of IVI
Foundation. For more detail of the OMNIA 2 IVI driver, please check the help
document, ARI82XX.chm, located at the path of
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-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-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 “
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-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
OMNIA 2 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 OMNIA 2 series safety tester,
including 8204, 8206, 8207, 8254, 8256 or 8257
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 OMNIA 2 IVI Driver. A help file, ARI82XX.chm, would be
located at the path of
There are four types of sample code for your reference which are located at
the path of
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-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
“
2.3 Declare to use the name spaces for the interop assemblies that are
specified to reference in the previous section.
using AssociatedResearch.ARI82XX.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 ARI82XX(); string resourceName =
“ASRL3::INSTR”; string optionString = “DriverSetup=BaudRate=9600”;
driver.Initialize(resourceName, true, false, optionString);
For more detail for the parameters of the Initialize() method, please refer to
the help document, ARI82XX.chm, which is located at “
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-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=9600”, to setup the baud rate. There are other parameters for the option of the Initialize() method, please refer to the ARI82XX.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 ACW test item by AddACWTest()
driver.Steps.AddACWTest(
1240, //AC Voltage
5,
//Total Current High Limit
0,
//Total Current Low Limit
0.1, //Ramp up time in seconds
2,
//Dewll time in seconds
0,
//RampDownTime in seconds
5,
//ArcSense level
5,
//Real Current High Limit
0,
//Real Current Low Limit
0,
//Offset Current
ARI82XXFrequencyEnum.ARI82XXFrequency60Hz, //Frequency
true, //Arc detection
false, //Continuity test
ARI82XXDUTOutputEnum.ARI82XXDUTOutputHighVoltage, //DUT Output
“”);
//Scanner
//Add an ACW step and then edit parameters driver.Steps.AddACWTestWithDefaults(); driver.Parameters.Voltage = 1500; driver.Parameters.HighLimitTotal = 5; driver.Parameters.LowLimitTotal = 0; driver.Parameters.RampUp = 0.5; driver.Parameters.Dwell = 3; driver.Parameters.RampDown = 1; driver.Parameters.ArcSense = 3; driver.Parameters.HighLimitReal = 3; driver.Parameters.LowLimitReal = 1; driver.Parameters.Offset = 0; driver.Parameters.Frequency = ARI82XXFrequencyEnum.ARI82XXFrequency50Hz; driver.Parameters.ArcDetectEnabled = true; driver.Parameters.ContinuityEnabled = false; //driver.Parameters.DUTOutput = ARI82XXDUTOutputEnum.ARI82XXDUTOutputOpen; configuration is available while DUT-HV Setup is turned ON.
//This
driver.Files.FailStopEnabled = false; driver.Files.Save();
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-8378 US/Canada Phone:
1-847-367-4077 | Fax:
1-847-367-4080 | www.arisafety.com
For the OMNIA 2, 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 AddACWTest(),
AddDCWTest() and AddIRTest(). Therefore, we could add the steps with default
values using the AddACWTestWithDeafults(), AddDCWTestWithDeafults() and
AddIRTestWithDeafults(), 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) {
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 found at the path of
“
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-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
OMNIA 2 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 OMNIA 2 series power supply,
including 8204, 8206, 8207, 8254, 8256 or 8257
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 OMNIA 2 IVI Driver. A help file, ARI82XX.chm, would be
located at the path of
There are three types of sample code for your reference which are located at
the path of
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-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.
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-8378 US/Canada Phone:
1-847-367-4077 | Fax:
1-847-367-4080 | www.arisafety.com
include “stdafx.h” #include #include #import
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 ACW test item by AddACWTest()
driver->Steps->AddACWTest(
1240, //AC Voltage
5, //Current High Limit
0,
//Current Low Limit
0.1, //Ramp up time in seconds
2, //Dewll time in seconds
0,
//RampDownTime in seconds
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-8378 US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com
5,
//ArcSense level
5,
//Real Current High Limit
0,
//Real Current Low Limit
0,
//Offset Current
ARI82XXFrequencyEnum::ARI82XXFrequency60Hz, //Frequency
true, //Arc detection
false, //Continuity test
ARI82XXDUTOutputEnum::ARI82XXDUTOutputHighVoltage, //DUT Output
“”);
//Scanner
//Add ACW step and then edit parameters driver->Steps->AddACWTestWithDefaults(); driver->Parameters->Voltage = 1500; driver->Parameters->HighLimitTotal = 5; driver->Parameters->LowLimitTotal = 0; driver->Parameters->RampUp = 0.5; driver->Parameters->Dwell = 3; driver->Parameters->RampDown = 1; driver->Parameters->ArcSense = 3; driver->Parameters->HighLimitReal = 3; driver->Parameters->LowLimitReal = 1; driver->Parameters->Offset = 0; driver->Parameters->Frequency = ARI82XXFrequencyEnum::ARI82XXFrequency50Hz; driver->Parameters->ArcDetectEnabled = true; driver->Parameters->ContinuityEnabled = false; //driver->Parameters->DUTOutput = ARI82XXDUTOutputEnum::ARI82XXDUTOutputOpen; configuration is available while DUT-HV Setup is turned ON.
//This
driver->Files->FailStopEnabled = false; driver->Files->Save();
For the OMNIA 2, 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
some previous firmware versions, it does not support the methods of
AddACWTest(), AddDCWTest() and AddIRTest(). Therefore, we could add the steps
with default values using the AddACWTestWithDeafults(),
AddDCWTestWithDeafults() and AddIRTestWithDeafults() 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); }
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-8378 US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com
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(); 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 “
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-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
ARI82XX 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 comtypes) An OMNIA 2 series safety tester,
including 8204, 8206, 8207, 8254, 8256 or 8257
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 OMNIA 2 IVI Driver. A help file, ARI82XX.chm, would be
located at the path of
There are three types of sample code for your reference which are located at
the path of
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-8378 US/Canada Phone:
1-847-367-4077 | Fax:
1-847-367-4080 | www.arisafety.com
Development
1 Install the Comtypes library pip install comtypes
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 ARI82XX_64.dll
import time import comtypes import comtypes.client as cc
Import the IVI-COM DLL cc.GetModule(‘ARI82XX_64.dll’) from comtypes.gen
import ARI82XXLib
4 Start programming 4.1 Create an object of the driver and use the initialize
method to build up the connection.
driver = cc.CreateObject(‘ARI82XX.ARI82XX’, interface=ARI82XXLib.IARI82XX) #
Initialize Driver and make connection driver.Initialize(‘ASRL3::INSTR’, True,
False, ‘DriverSetup=BaudRate=9600’)
For more detail for the parameters of the Initialize() method, please refer to
the help document, ARI82XX.chm located at “
4.2 Create file and setup test
Create file try:
driver.Files.Create(1, “IviTest”) except:
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’) 28105 N. Keith Drive Lake Forest, IL 60045
USA Toll Free: 1-800-858-8378 US/Canada
Phone: 1-847-367-4077 | Fax:
1-847-367-4080 | www.arisafety.com
break
Add ACW test item by AddACWTest()
driver.Steps.AddACWTest(
1240, #AC Voltage
5,
Total Current High Limit
0,
Total Current Low Limit
0.1, #Ramp up time in seconds
2,
Dewll time in seconds
0,
RampDownTime in seconds
5,
ArcSense level
5,
Real Current High Limit
0,
Real Current Low Limit
0,
Offset Current
ARI82XXLib.ARI82XXFrequency60Hz, #Frequency
True, #Arc detection
False, #Continuity test
ARI82XXLib.ARI82XXDUTOutputHighVoltage, #DUT Output
“”)
Scanner
Add an ACW step and then edit parameters
driver.Steps.AddACWTestWithDefaults() driver.Parameters.Voltage = 1500 driver.Parameters.HighLimitTotal = 5 driver.Parameters.LowLimitTotal = 0 driver.Parameters.RampUp = 0.5 driver.Parameters.Dwell = 3 driver.Parameters.RampDown = 1 driver.Parameters.ArcSense = 3 driver.Parameters.HighLimitReal = 3 driver.Parameters.LowLimitReal = 1 driver.Parameters.Offset = 0 driver.Parameters.Frequency = ARI82XXLib.ARI82XXFrequency50Hz driver.Parameters.ArcDetectEnabled = True driver.Parameters.ContinuityEnabled = False #driver.Parameters.DUTOutput = ARI82XXDUTOutputEnum.ARI82XXDUTOutputOpen; configuration is available while DUT-HV Setup is turned ON.
This
driver.Files.FailStopEnabled = False
driver.Files.Save()
For the OMNIA 2, 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 AddACWTest(), AddDCWTest() and AddIRTest(). Therefore, we have to add the steps with default values using the AddACWTestWithDeafults(), AddDCWTestWithDeafults() and AddIRTestWithDeafults() 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.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free: 1-800-858-8378 US/Canada Phone: 1-847-367-4077 | Fax: 1-847-367-4080 | www.arisafety.com
4.4 Measure during test
Measure lastOpcStatus = False while(True):
print(driver.Execution.ReadTestDisplayRaw())
driver.System.WriteString(“*OPC?n”) 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 “
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-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
OMNIA 2 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 OMNIA 2
series safety tester, including 8204, 8206, 8207, 8254, 8256 or 8257
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 OMNIA 2 IVI Driver. A help file, ARI82XX.chm, would be
located at the path of
There are three types of sample code for your reference which are located at
the path of
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-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 ARI82XX_64.dll located at
The Labview will automatically generate an Automation refnum of
ARI82XXLib.IOMNIA 2 control and connect to the Automation Open function.
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-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, ARI82XX.chm located at “
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-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 IARI82XX class.
For example, Files is one of the sub-class of IARI82XX, and then we could use
the Create method under Files to create a file in the device. For the OMNIA 2,
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
AddACWTest, AddDCWTest and AddIRTest are 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-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 IARI82XX class. This for loop would run with polling the
state and meters. Using the methods of ReadTestDispalyRaw could let you read
the immediate readings. ReadTestDispalyRaw is one method of
IARI82XX.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-8378 US/Canada Phone:
1-847-367-4077 | Fax:
1-847-367-4080 | www.arisafety.com
6.3 Close the session
Close method in IARI82XX 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
28105 N. Keith Drive Lake Forest, IL 60045 USA Toll Free:
1-800-858-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) >>