NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
lyle
Posts: 13
0 Kudos

CNIVisaSession Distribution Files

I am using the Measurement Studio wizard to create a VC++ project. I'm using the CNIVisaSession class to do serial communication. What files do I need to include in a distribution package? The Measurement Studio Reference is listing only the following 3rd party files being required: mfc42.dll, msvcrt.dll, and msvcp60.dll. But the VISA session is not working after the installation. In previous applications, I have used the ActiveX control for serial communications and have included the cwvisa.ocx in the package. Is this file still being used with the new wrapper class?

Thanks,
Lyle
Active Participant
drohacek
Posts: 481
0 Kudos

Re: CNIVisaSession Distribution Files

CNiVisaSession does not require cwvisa.ocx. It does require that you install the NI-VISA run-time on the target system. This is outlined in a separate section of the redistribution instructions page in Measurement Studio Reference.

Note that NI-VISA is not freely distributable. The target system must have a license for it. Also, the NI-VISA installer is a stand-alone installer and cannot be incorporated into your application installer.

David Rohacek
National Instruments
Active Participant
Elton Wells
Posts: 857
0 Kudos

Re: CNIVisaSession Distribution Files

Look in the \Redist\NIInstallers\Visa directory of your Measurement Studio 6.0 CD. NIvisa252Runtime.msi will need to be installed on the machine along with your redistribution package. For more information, see the "National Instruments Installers" section in the "Distributing and Installing Measurement Studio Applications" topic of the Measurement Studio Reference. This topic can be found under Visual C++ Help>>Tutorials>>Distributing and Installing Measurement Studio Applications in the Measurment Studio Reference table of contents.

- Elton
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page