Interfacing DataRay To LabVIEW PDF
Interfacing DataRay To LabVIEW PDF
As Administrator, install the DataRay software which came with your product.
Open and close the software to install the drivers.
Attach the profiler product. Allow the drivers to install.
Open the DataRay software and select your profiler in the Device pull-down menu.
Learn to use your product in the DataRay software. Then close the software.
Add LabVIEW: We do not claim to be LabVIEW experts. [ we dont know what we dont know]. Install LabVIEW Ver. 8.5 or
higher on your computer (earlier versions are not supported). Download the appropriate LabVIEW example from the
DataRay website:
Run LabVIEW: To start the LabVIEW example, open LabView. Open the appropriate DataRay LabVIEW example. Click on
the Ready button. Running? great. The buttons which you see work just as they do within the normal DataRay GUI.
Not running? Check the earlier steps.
Camera example:
DataRay OCX: LabVIEW communicates with DataRay products through the DataRay OCX. The OCX is automatically generated and registered with the Windows operating system upon installing the DataRay software. Once initialized in a VI,
the OCX is always running. This means that the camera is still running, even while editing the VI. Do not be alarmed if
DataRay OCX GUI elements are active while your VI is not running. This is the expected behavior.
To add results in LabVIEW: To add results not in the LabView example:
Close the LabVIEW example. Open the DataRay software.
Right click on any result, to see the dialog right:
Note current Name and ID# for this result at the top of the dialog.
Repeat for all the results of interest. Close the DataRay software.
Open example VIs Block Diagram. Right-click on an existing GetData
Method or Property. From the pull-down menu select
Create-> Method for ->GetOCXResult. The floating box shown below will appear.
You will need to connect this where you want it in the block
diagram, either serially or in parallel. Create an integer constant,
give it the ID# value noted earlier, and connect it to the left side
of IndexToValue.
A complete list of indexes can be found here:
http://www.dataray.com/assets/pdf/IndexToTestParametersEnum.pdf