Instrument Control (GPIB, Serial, VISA, IVI)

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 5 条)
4,334 次查看

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 项奖励
2 条消息(共 5 条)
4,330 次查看

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

0 项奖励
3 条消息(共 5 条)
4,310 次查看

@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 项奖励
4 条消息(共 5 条)
4,306 次查看

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 项奖励
5 条消息(共 5 条)
4,295 次查看