Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I control instrument using its RS232 port in VB or VC++?

1)How can I control instrument using its RS232 port in VB or VC++?
2)What's the module or .h file need I add-in to VB or VC++?
3)Can you provide me some easy examples for that?

Thanks!
0 Kudos
Message 1 of 4
(3,787 Views)
Kevin,

I think you need to go to either a VB or C++ user group. This is not the right place to ask this question.

If you want to use Labview for serial control of instruments, its very easy. Pretty much initialize port, send commands using write vi (Visa or serial).

Jared
0 Kudos
Message 2 of 4
(3,786 Views)
Kevin,

I've used Measurement Studio - Tools for Visual Basic and Tools for Visual C++ (ActiveX component) for instrument control.

I've used both the VISA and non VISA versions and they are pretty straight forward to use for GPIB, Serial or VXI.

You might find the following page useful.
http://www.ni.com/mstudio/cworks.htm#ICC

Regards,
Kamran
An
0 Kudos
Message 3 of 4
(3,786 Views)
Here is an example program with a header and cpp file of basic serial com functions for use in Win32 systems. Enjoy!
0 Kudos
Message 4 of 4
(3,786 Views)