UI CWSerial component for NI-VISA is missing from MS Studio

Updated Dec 28, 2023

Reported In

Software

  • Measurement Studio
  • Microsoft Visual Studio

Driver

  • NI-DAQmx
  • NI-VISA

Operating System

  • Windows

Issue Details

I have Visual Studio Professional 2019 and Measurement Studio 2019 on my laptop with Windows OS.

When I start a new Project in Visual Studio and want to use the UI CWSerial component for NI-VISA on the Form of VS, the CWSerial is not shown in the Toolbox of VS and there is no possibility to get it from Choose Toolbox Items.
Where from can I get it?

Solution

The CWSerial.ocx ActiveX control is a legacy component that no longer is distributed by NI and as you have noticed is not bundled with new versions of Measurement Studio. The recommended solution would be to migrate from using the CWSerial.ocx control to using NI-VISA for serial communication.

Please be sure that all the installation was done correctly: 

  1. Install Visual Studio
  2. Install Measurement Studio
  3. Install NI-DAQmx
  4. Install NI-VISA

This means that your installation is completed and you have access to all tools needed, also have access to the examples.
They include examples for NI-VISA: 


Please check those and review the code. From looking into, you will see that none are using the CWVISA control anymore. They use standard text boxes which are filled with according NI-VISA FindResource results.