Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

gpib?

I am using CWGPIB componnet, can I use it to work as NON CONTROLLER device ? What shoul I do?

Can I set, IBSTA word to end I/O (CMPL &H100) ?
I am sending ibwrt command to the device and the status word remain 144 hex, how can I set it to be 100 H again ?
I have a loop that check IBSTA :
while (ibsta% and LACS) {
ibrd(GPIB_BD%,buff)
Execute somthing (buff)
...
...
}
Thanks
0 Kudos
Message 1 of 4
(3,109 Views)
There are several documents and example programs on-line at National Instruments that show how to use a NI-GPIB as a non-controller. Here are a few documents and examples that I found by searching for "+gpib +non-controller".

Examples:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EF8D56A4E034080020E74861&p_node=DZ52353&p_source=External

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DD1B56A4E034080020E74861&p_node=DZ52353

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3D87556A4E034080020E74861&p_node=DZ52353

http://digital.ni.com/public.nsf/websearch/873BE8238AD6B0BA86256B1B004DC203?OpenDocument

I hope this helps out.

-Josh
0 Kudos
Message 2 of 4
(3,109 Views)
Thanks,

O.K, now I am using it as non-controller, manualy I can write and read to the GPIB bus, but how can I obtain a loop that monitor IBSTA? , in order to know who tallk and who is listen.
The situation is, evry time that, the controller write/read to the bus, I detect status word as talker/listener ,while finishing, performing some tasks my loop should be continue capture another event, but ibsta should be reset first (otherwise I will get into infinity loop) .
There is a command that I can reset ibsta to his defult value? , in order to notify again who's tallk or listen?
Be aware that I am a non controller, and I do have access only to the non-controller

Thanks Avi
0 Kudos
Message 3 of 4
(3,109 Views)
From your programming, it appears that you are using Visual Basic. Is this a requirement? National Instruments offers NI-Device, which is a C++ driver for programming a non-controller.

http://sine.ni.com/apps/we/nioc.vp?cid=13047〈=US
0 Kudos
Message 4 of 4
(3,109 Views)