09-27-2004 02:58 AM
09-27-2004
06:28 PM
- last edited on
09-28-2026
08:58 AM
by
Content Cleaner
Hello there,
If you are using the LabVIEW Real-time module, then the real-time portion of your code will run on a separate system running a Non-Windows Based Real-time Operating System. Obviously, the Visual C++ code cannot be run on that system.
What you can do, however, is create a LabVIEW VI that runs on a Windows host PC and interfaces with Visual C++. Then, this host VI can communicate parameters to the Real-time system. These can be the parameters that were generated by your Visual C++ code.
If you are not using the LabVIEW Real-time module, the problem becomes simpler. You will just need to build your Visual C++ code into a .dll that can then be called from LabVIEW. After that, you would use the "call library" function to make calls to the .dll. There is a great example that ships with LabVIEW 7.X called "call DLL.vi". This example is a comprehensive look at calling .dll files from LabVIEW, and it think that it will point you in the right direction.
I hope that this helps.
Regards,
P.J.
National Instruments
09-29-2004 12:57 AM
10-01-2004
08:53 AM
- last edited on
09-28-2026
08:58 AM
by
Content Cleaner
There is an example frogram that deals with MFC calls to LabVIEW VIs. [link removed; example no longer available] I hope that this helps.
P.J.
National Instruments