ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB control Visual Basic 6 comunication error

Hi, I´m trying to communicate with my device by doing a VB 6 program.
I've added the .bas files needed, and instaled the drivers for device.
When I run Measurement  & Automation application I can find my device, and I can send messages to it, using Interactive control.
 
Ok, I took the example in VB (simple.zip) to try to comunicate the first time with the device, changing to the correct addresses, but I always get the following error when I send "ilclr %Dev" :
                              Unable to clear device
                              ibsta = &H8100
                              iberr = 4 <EARG>
 
The question is: How to know if I'm really comunicating with my device?? or What I'm doing wrong?
 
Thank you
 
0 Kudos
Message 1 of 2
(3,363 Views)
Hi Calimeru,
 
First of all, are you sure the reference "%Dev" is correct for your device? is this the alias name of your device in max?
To know if you are communicating with your device, you can send usual commands as *idn? to see if your device answer your request.
Then, could you try using this example : http://zone.ni.com/devzone/cda/epd/p/id/2258
 
Let me know,
 
Regards,

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 2 of 2
(3,325 Views)