Skip to end of banner
Go to start of banner

cifX and netHOST integration in LabView [EN]

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

cifX

National Instruments is offering a way to integrate external DLLs and Shared Libraries into LabVIEW. 
The Hilscher CIFX driver for Windows contains such an external DLL by default, necessary for Windows applications to getting access to the CIFX hardware and the running
software. And this DLL can be integrated into LabVIEW making the generic CIFX-API available under NI LabVIEW.

A manual comming with the CIFX-API describes the functions and the handling, which must be implemented in the LabVIEW application.

The CIFX-API DLL (cifX32DLL.dll) itself is available in 32Bit and 64Bit version, installed during the installation of the CIFX driver for Windows
and depending of the version of the Windows operating system, the ciX32Dll.dll will be installed in different directories:

Installation path of the cifX32DLL.dll
Windows 32 BitWindows 64 Bit
32Bit only32Bit DLL64Bit DLL
.\Windows\System32.\Windows\SysWOW64.\Windows\System32

Necessary header files and the library files to the DLLs can be found under the driver installation directory (.\cifX Device Driver\SDK)
which also depends on the Windows operating system.

CIFX Driver installation directory: 'cifX Device Driver
Windows 32 BitWindows 64 Bit
.\Program Files\.\Program Files\


Additional Information:

How a DLL or Shared Libray is integrated in LabVIEW is described by National Instruments and not a part of the Hilscher driver.
Please consult the National Instruments Support on how to do this.

http://www.ni.com/tutorial/3009/en/

http://digital.ni.com/public.nsf/allkb/DCB90714981A1F148625731E00797C33

Driver Example CIFX

Please follow this link, to a Driver Example:

http://download.hilscher.com/?vid=V_5dc914db0c195


This zip file “LabVIEW-based Hilscher CIFX API V2.zip” is provided “AS IS” with No warranty or support from Hilscher.  It was developed by a third party and is being provided to you as an EXAMPLE for development of your own driver.  

Usage of this material is entirely at you own risk.


netHOST

To use the netHOST with LabView, the procedure is the same as with the cifx Card. But you also need to import the Connector dlls called "netXTransport.dll" and "TCPConnector.dll" with the proper header file "cifXUser.h"

To have acces to all the functions of the TCPConnector.dll you may have to add same functions manually via "Call Library Function". Choose the needed function and add the proper parameters by hand. The following screenshots shows an example for netXConSetConfig.

Picture 1: Enter the "Call Library Function" dialog.


Picture 2: Open the .dll file and choose the needed function.


Picture 3: Add all the proper parameters

  • No labels