Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Aug 2, 2007


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Calling LabVIEW from C++ Using ActiveX

13 ratings | 3.46 out of 5
Print

Downloads

Filename: 1643.zip
Requirements: View

This example passes data between LabVIEW and C++ using ActiveX. The C++ program calls LabVIEW as an ActiveX Server and data passes between C++ and LabVIEW. This program uses the Acquire 1 Point from 1 Channel VI, which is a DAQ example VI included with LabVIEW and NI-DAQ.

The type library for LabVIEW 5.x and 6.x are slightly different. Use Aquire5.cpp with LabVIEW 5.x and Aquire6.cpp with LabVIEW 6.x.

Requirements


Filename: 1643.zip

Software Requirements


Application Software: LabVIEW Full Development System 5.0
Language(s): C++, LabVIEW

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO)
Driver: Traditional NI-DAQ (Legacy)

 
13 ratings | 3.46 out of 5
Print

Reader Comments | Submit a comment »

Mod for LabVIEW 7
The document was very useful!! Please note that, in LabVIEW Version 7.0, the method 'GetVIReference' requires four arguments. Therefore, the line: pVI = pLV->GetVIReference(LPCTSTR(Path), LPCTSTR(Password), 0); Should be replaced with: pVI = pLV->GetVIReference(LPCTSTR(Path), LPCTSTR(Password), 0, 0);
- Mar 21, 2005

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).