Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Need SerialSession Example for VC++ .NET

Can anyone help me setup a simple form application for VC++ .NET that reads the RS-232 serial port and displays the data on the form??

(I am using Win XP VC++ .NET and Measurement Studio )7.1
0 Kudos
Message 1 of 4
(3,765 Views)
John,

You may already have one for C#. If you have the NI VISA drivers installed, you should get examples in the ...\National Instruments\MeasurementStudioVS2003\DotNET\Examples folder. I went ahead and still attached a zip file with the VISA SimpleReadWrite example in C#. I would suggest trying to use the C# version, because you will be able to use the full .NET capabilites. Although Measurement Studio does support C++ in .NET, it only supports the MFC versions, meaning you will not have full access to the .NET framework. Hopefully this helps you out, but if you have more questions, feel free to repost. Thanks and have a great day.

Adam B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,767 Views)
That sounds a bit misleading.
You have full use of Measurement Studio in Mannged C++.
It is just the .net wizards that are missing.
So any thing you can program in C# can be done in managed C++.
0 Kudos
Message 3 of 4
(3,763 Views)
You are correct that the Measurement Studio .NET class libraries are usable with managed C++. Measurement Studio does not provide documentation, examples, wizards, or assistant support for managed C++.

Here is a thread that describes Measurement Studio support in depth; I know you've seen it, I'm posting the link for the benefit of anyone who might come across this thread.
Message 4 of 4
(3,747 Views)