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.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

iberr = 2[0x2] when using ibwrt() using NI GPIB-USB-HS

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

0 Kudos
Message 1 of 2
(2,239 Views)

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.

 

 

0 Kudos
Message 2 of 2
(2,199 Views)