04-10-2017 07:12 AM
I am trying to communicate with an instrument using the gpib library in CVI. I can see and communicate with this instrument in MAX without problems. The instrument is connected to a USB port of the PC using the NI GPIB-USB-HS. After I create the device using ibdev() when I try to write a command using ibwrt I obtain the following error: Function ibwrt(). iberr == 2[2x02]. Do I need to do something else to being able to communicate with the instrument? Has it something to do with the fact that I am using the NI GPIB-USB-HS adapter?
Thanks in advance,
Manuel
04-12-2017 09:34 AM
Hi Gonzalezmbrc,
What message are you trying to write to your gpib device? Also, what device are you trying to write to?
Generally you want to start with just a simple *idn command to verify that you are connected correctly.