Basic Operation - Ametek VTI Instruments EMX-75 Series User Manual

64-channel digital input / output
Table of Contents

Advertisement

Cache: Per the IVI specification, this option "specifies whether or not to cache the value of
attributes." Caching allows IVI drivers to maintain certain instrument settings to avoid
sending redundant commands. The standard allows for certain values to be cached always or
never. In VTI IVI-drivers, all values used are of one of these types. As such, any values
entered have no effect.
QueryInstrumentStatus: Queries the instrument for errors after each call is made. As
implemented in the VTI IVI drivers, instruments status is always queried regardless of the
value of this property.
DriverSetup: Must be last, and contains the following properties:
o
o
o
o
InterchangeCheck: Boolean option that enables/disables IVI Interchangeability checking. As
implemented in the VTI IVI drivers, values entered for this property have no effect.
RangeCheck: Boolean option that enables or disables driver validation of user-submitted
values. As implemented in the VTI IVI drivers, validation of user inputs is always performed
at the firmware level regardless of this property's value.
RecordCoercions: Boolean option that enables driver recording of coercions. As
implemented in the VTI IVI drivers, coercions are handled in the firmware and cannot be
recorded.
B
O
ASIC
PERATION
The EMX-75XX Series is a family of high-performance PXIe modules consisting of multiple I/O
configurations and logic levels. Dedicated input or output cards are available for high channel
count applications while other cards provide ultimate flexibility with eight, 8-bit ports (64
channels) that can be configured as an input or output under programmatic control
Voltage
This example covers the main functionality of the device: setting a voltage as an output in a port.
Note that the voltage should be set first, then enabled. This prevents enabling the port with the
default value enabled, which is the maximum value.
C++
//For Microsoft products
#import "IviDriverTypeLib.dll" no_namespace
#import "VTEXDio.dll" no_namespace
int main()
{
//Windows driver creation
::CoInitialize(NULL); //Start the COM layer
try
{
IVTEXDioPtr Dio(__uuidof(VTEXDio));
EMX-75XX Index
Logfile: Allows the user to specify a file to which the driver can log calls and other data.
Logmode: Specifies the mode in which the log file is opened. The allowed modes are:
w: truncate s the file to zero length or creates a text file for writing.
a: opens the file for adding information to the end of the file. The file is created if it
does not exist. The stream is positioned at the end of the file.
LogLevel: Allows the user to determine the severity of a log message by providing a
level-indicator to the log entry.
Slots: This is the most commonly used option and it allows for a slot number or a slot
number and a card model to be specified.
"Slots=(2)" - Just slot 2.
"Slots=(2=EMX_75XX)" - slot and card model
"Slots=(2,3)" - Multiple slots
www.vtiinstruments.com
41

Advertisement

Table of Contents
loading

Table of Contents