MTI Instruments Accumeasure Digital Series LabVIEW Owner's manual

Type
Owner's manual
Digital
Accumeasure
LabVIEW
Interface
7001-0058
Revision 1.12
12 Dec 2014
MTI Instruments Inc
325 Washington Avenue Ext
Albany New York 12055
Digital Accumeasure LabVIEW Interface 7001-0058 Revision 1.12
ii
Table of Contents
Page
Digital Accumeasure LabVIEW Interface .........................................................1
Digital Accumeasure LabVIEW Functions .......................................................2
Digital Accumeasure LabVIEW Examples .......................................................3
Digital Accumeasure LabVIEW Application Template......................................5
Appendix
Page
Digital Accumeasure LabVIEW Interface 7001-0058 Revision 1.12
1
Digital Accumeasure LabVIEW Interface
The Digital Accumeasure LabVIEW interface is built upon the Digital
Accumeasure DLL interface package (DACDLL32.DLL). A set of LabVIEW VIs
have been implemented that use the LabVIEW CallLibrary function to access the
appropriate DACDLL32 function. As an example, an illustration of the
ConnectToCommandChannel VI is presented below.
Each VI needs to reference the DACDLL32.dll file and must use the Windows
stdcall calling convention. DLL function arguments must be defined. Refer to the
Digital Accumeasure Communications Interface DLL manual (MTI 7001-0054) for
details of each DLL function.
Digital Accumeasure LabVIEW Interface 7001-0058 Revision 1.12
2
Digital Accumeasure LabVIEW VI functions
The screen shots below identifies the names of the various Vis supplied with the
Digital Accumeasure.
Digital Accumeasure LabVIEW Interface 7001-0058 Revision 1.12
3
Digital Accumeasure LabVIEW Examples
Several LabVIEW examples have been implemented to illustrate the use of some
of the supplied VI functions. Examples provided include:
Example Name
Description
AccumeasureExample.vi
This example combines many of the
aspects of the other examples into an
integrated framework. It illustrates
how to respond to button clicks to
scan the network and connect to a
Digital Accumeasure unit. Once
connected, data points are constantly
acquired and displayed while
monitoring for settings changes.
AccumeasureExampleExpandedwUSB.vi
This example combines many of the
aspects of the other examples into an
integrated framework. It illustrates
how to respond to button clicks to
scan the Ethernet and USB networks
and connect to a Digital
Accumeasure unit. Once connected,
data points are constantly acquired
and displayed while monitoring for
settings changes.
GetFunctionTestingExample.vi
This example illustrates the use of all
VI functions that can be called to get
configuration information from a
Digital Accumeasure unit.
GetStreamingDataRecordTest.vi
This example illustrates a method for
recovering streaming data records
from the Digital Accumeasure.
ScanForUnitsExample.vi
This example shows how to use the
ScanForUnits VI which will scan the
Ethernet interface and search for all
connected Digital Accumeasure units
and load a user interface combobox
control with a list of those units found.
ScanForUSBUnitsExample.vi
This example shows how to use the
ScanUSBForUnits VI which will scan
thesystem and search for all USB
connected Digital Accumeasure units
and load a user interface combobox
control with a list of those units found.
Digital Accumeasure LabVIEW Interface 7001-0058 Revision 1.12
4
SimpleDataCollectionExample.vi
This example illustrates the use of the
ReadAllValues VI. It also shows how
to convert displacement values from
nm to mm for display.
StreamingTest.vi
This example illustrates a high level,
file based method for recovering
streaming data from the Digital
Accumeasure.
UserSettingsExample.vi
This example illustrates the use of the
Vis that support the reading and
writing of most Digital Accumeasure
operational control parameters.
Digital Accumeasure LabVIEW Interface 7001-0058 Revision 1.12
5
Digital Accumeasure LabVIEW Application Template
In order to effectively use the Digital Accumeasure LabVIEW Vis, a specific
sequence of function calls must be followed. The diagram below illustrates the
required sequence.
1. OpenInterface The very first function call must be to OpenInterface.
This function prepares the underlying DLL and returns
an interface handle that must be used for most other
function calls.
2. Connect Provided that a valid handle has been obtained, the
second step is to call the Connect function. A
communications address must be provided.
3. User Application The user application makes calls to other DLL
functions to perform its function using the interface
handle for the open connection to a Digital
Accumeasure unit..
4. Disconnect After the user application completes, the Disconnect
function must be called to release the Digital
Accumeasure. Failure to disconnect can cause the
Digital Accumeasure to reject all future connection
requests until it is powered off and then powered on.
5. CloseInterface The very last function call must be to CloseInterface.
This function releases the underlying DLL.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7

MTI Instruments Accumeasure Digital Series LabVIEW Owner's manual

Type
Owner's manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI