Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

"How can i control the instrument with SCPI command by Borland C++ v3.1 using RS232 port"

"hi....
I've ever controlled some instrument by GPIB interface using Labview 6.0...it's really easy to implement .....but the problem is that i hvae to control those instrument under the pure DOS environment now ..so i have to abandon the using of GPIB interface and Labview ....then i choose the RS232 interface with programing the Borland C++ v3.1 and sending the SCPI command by bioscom()....but it got no response at all......so i am wonder if i can control those instrument by using RS232 interface and Borland C++ v3.1 to implement a pure Dos program????if yse,how can i do and is there any sample can be refer to ????

thank you for you help"
0 Kudos
Message 1 of 3
(4,316 Views)

Hello Alvin-

We do not have any sample code for programming RS 232 in C on our website. However, you may want to looks at these links for general troubleshooting tips for serial:
Serial Communication Starting Point 
How to Do a Serial Loopback Test

Regards,

Ray Kong
NI Applications Engineer

0 Kudos
Message 2 of 3
(4,316 Views)
Try this link. It has a good example in turbo c
on how to contol the com port

http://www.ontrak.net/Programming.htm

Curt
0 Kudos
Message 3 of 3
(4,316 Views)