From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-23-2015 10:21 AM
Hello,
This may be a silly question but I just want to be sure.
Say I have a PC running Win7 and LabView and an instrument is connected to it with both a GPIB cable and and RS232 in its serial port. Will I be able to use VISA functions to send and receive serial data to the instrument or would it be better to use an NI GPIB-RS232 Converter? In what situations would said converter be useful?
Thanks!
Solved! Go to Solution.
07-23-2015 10:35 AM - edited 07-23-2015 10:41 AM
I think the GPIB converter is useful if you have multiple multiple instruments - a GPIB bus can have multiple devices connected to it. If you just have a single instrument, you can just stick with Serial.
That particular NI Device is useful for either converting a serial instrument to GPIB and vice-versa. The datasheet gives details of the different modes you can use it in: http://www.ni.com/pdf/products/us/2006_8248_rs232.pdf
07-23-2015 10:35 AM
07-23-2015 10:36 AM
I'm confused about what connections you have on your computer. If you have a serial port and the instrument has a serial connection, just use that. Preferrably, if you have a PCI(e)-GPIB card or a USB-GPIB, use that to connect to your instrument.
07-23-2015 10:47 AM - edited 07-23-2015 10:48 AM
The computer has a serial port and a PCI GPIB card, so it would be connected to the instrument with two cables - GPIB and serial.
Thanks for the replies, it seems that the consensus is that the converter is uneccesary because I can just use the serial port on the computer.
07-23-2015 10:50 AM
The device is probably meant to work with either serial or GPIB - not both at the same time.
07-23-2015 10:53 AM
@imperial07 wrote:
The computer has a serial port and a PCI GPIB card, so it would be connected to the instrument with two cables - GPIB and serial.
NO. You use GPIB OR serial. In this case, use the GPIB.
07-23-2015 10:57 AM - edited 07-23-2015 10:59 AM
Hmm. I can only use one of them? The instrument I need to control needs to be sent commands with both GPIB and Serial. So would I need to use the converter then?
(I am building a LabVIEW program to replace the software that came with the instrument. Using GPIB and serial sniffers I can see that it uses both when it is running)
07-23-2015 11:03 AM
07-23-2015 11:17 AM
It is an old instrument: HL5500PC. However, now that I think about it, there are two parts that make up the instrument and the serial cable only connects to one of the parts. So technically it is two instruments. If I wanted to control both of these using one LabVIEW program would I use the converter?
Thank you guys for your patience with me.