From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

(How) can I use the CVI-RS-232 functions like "InstallComCallback" in my vc++?

Because the vc-classes for rs-232 handling are very unuseable...
0 Kudos
Message 1 of 2
(2,763 Views)
There are two options for easier RS232 in VC++: CVI and the Measurement Studio C++ VISA interface. If you have Measurement Studio (or CVI 5.5 or later which came with Measurement Studio), you might want to have a look at the VISA examples under Program Files\National Instruments\MeasurementStudio\VC\Examples\IO\VISA and the help in Start>>Programs>>National Instruments>>Measurement Studio>>Help to see if that could work for you.

If you want to use the CVI libraries, you can do that too. There are two ways to do that. First, if you have Measurement Studio, the Application Wizard that comes with it allows you to create a new VC++ application that uses the CVI libraries. Second, since you already have an application started, you can just add the CVI libraries
and header files into your VC++ project. Running the Application Wizard and seeing what libraries and header files it sets up in the new application is a good way to find out what you need to add to your existing project to use CVI libraries. If you have more specific questions about compiling with CVI in VC++, please reply to this answer or post a question in the CVI forum.

Hope that helps.

Tony
Measurement Studio
0 Kudos
Message 2 of 2
(2,763 Views)