Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 and IMAQ for MS 8.0 C#

Hi,
 
we have just moved from Labview to Measurement Studio 8.0.1.
Most of our NI projects are around IMAQ (of which we also purchased the newest developer version) and RS232.
Unfortunately however, i can't find how to operate both of these with MS C#.
Any help would be appriciated.
0 Kudos
Message 1 of 4
(3,540 Views)

You can use NI-VISA to do serial communication in C#.  Make sure you include .NET support when you install NI-VISA (3.6 is the latest version). 

 
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,528 Views)
If the customer is using VS 2005 and wants to do simple serial I/O, there is a new  .NET control that Microsoft ships for talking to the serail port that is part of the .NET 2.0 framework. Good for simple stuff and not as heavy as VISA (for deployment and stuff). VS 2003 did not have this control.

I don't know about the IMAQ stuff, but I would suspect that the IMAQ controls are COM controls which should just work via COM interop in C#.

Message Edited by bilalD on 07-21-2006 01:16 PM

Bilal Durrani
NI
0 Kudos
Message 3 of 4
(3,518 Views)

You can find documentation for all of the IMAQ COM objects by going to the NI Vision for Visual Basic Reference Help under Start >> Programs >> National Instruments >> Vision >> Documentation.  All of the COM objects begin with the prefix CW or CreateCW.  The CW stands for ComponentWorks, which was the old name for Measurement Studio.

Regards,

Mike T

National Instruments

0 Kudos
Message 4 of 4
(3,490 Views)