Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Help using GPIB-RS232 with LabVIEW

I am using the NI GPIB-RS232, I set it up per the instructions with which it came, but I can't figure out how to use it in LabVIEW, I am trying to communicate with an Agilent 4156-C which uses a GPIB (so I have that connected to the converter), which has a lot of subvis, is there any way to use these sub vis? Or am I supposed to go through all of them and replace any serial write with the convbox write?

 

If someone could tell me how to use the subvis that came with the hardware that'd be ideal

 

I am very confused.

 

Thank you so much!

0 Kudos
Message 1 of 5
(4,107 Views)

Basically, is there some sort of simple way to have labview recognize the converter and then allow me to run the program through it without having to change everything manually?

0 Kudos
Message 2 of 5
(4,103 Views)

Why are you using a GPIB-RS232 converter when your instrument is capable of GPIB?

0 Kudos
Message 3 of 5
(4,083 Views)

@nyc_(is_out_of_here) wrote:

Why are you using a GPIB-RS232 converter when your instrument is capable of GPIB?


I think the OP is using the RS232 on their computer to send GPIB commands to the instrument.  Personally, I would either use the GPIB-USB-HS or the LAN connection on the instrument.

 

I am not familiar with the GPIB-RS232 converter drivers.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(4,079 Views)

It has been a long time and I never used it much but I think you can use most of the driver unchanged. In the init function, you would have to set the VISA property to append the termination character and after configuring the serial port, do a VISA Write of 'wrt primary address'. This tells the converter to send any following commands to the instrument at primary address.

 

It is a huge pain to use this. Much simpler to use the USB-GPIB. Same price.

0 Kudos
Message 5 of 5
(4,068 Views)