LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can CVI expose a callback function to C++?

I want to create my own personal callback function in CVI that will be triggered as certain logic occurs. But, I actually want a C++ app to register with my CVI callback, and essentially 'push' data from CVI to the C++ app through callback parameters.

This might be easy in a Measurement Studio version, which I don't have, but can it be done in CVI 7? How so?
0 Kudos
Message 1 of 2
(3,014 Views)
Hi,

You can create a DLL with your C++ code and put it in a C wrapper to be called from CVI. Here's a link that may help: Link. All you would have to do is modify your c++ code to take in the parameters so your CVI application can pass the data along.

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 2 of 2
(3,014 Views)