Measurement Studio for VC++

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 3
(4,895 Views)
Writing a driver that uses RS232 port in vc++ will be very tedious.A quick alternaive for you would be to use labview programming to assist you as driver on serial communication is readily available under function -> communication.All u need to do is to declare your stop bits,parity bit,daud rate and etc.Take note of the size of the buffer for read to take place.Subsequently u can compile the entire labview code into a dll where u can import into your vc++.This will mae your visual c++ merely a input and output only function.
0 Kudos
Message 2 of 3
(4,895 Views)
I was drawn to this becuase the orginal question was

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

I am using Mesurement Studio w C++ because I may need to launch multiple threads and CVI (which I normally use) will not do that. I have used MS with C++ only one other time, and that was because I also needed threads.
Anyway, I installed the IVI driver, set it up per the help file on IVI drivers. But now I have no idea how to get started actually using it to talk to my power supply using C++. Can anybody get me started?
0 Kudos
Message 3 of 3
(4,895 Views)