Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB

Operating System: Windows 2000 SP4
NI-488.2: 2.3
Controller: PCI-GPIB+
Symptom: NI SPY capture hang, when capture on. Write successful, can't Read.


Example:

 

     Description                                                          Status             Iberr                  ibcntl       

1.  ibfind(GPIB0)                                                       0x0100            0                       0x0000

2.  ibsic(GPIB0)                                                        0x1130            0                       0x0000

3.  ibsre(GPIB0,1)                                                     0x1130            0                       0x0000

4.  ibdev(0,1 (0x0), T10s (13) 0x0000)                     0x0100            0                       0x0000

5.  ibconfig(UD0, IbcUnAddr (0x001B), 1 (0x1)        0x0100            0                       0x0000

6.  ibconfig(UD0, IbcREADDR  (0x0006), 1 (0x1)    0x0100            0                       0x0000

7.  ibwrt(UD0, "LOTNAME:99052...", 38 (0x26 )       0x0100            0                       0x0026

8.  ibconfig(UD0, IbcUnAddr (0x001B), 1 (0x1)        0x0100            1                       0x0026

9.  ibconfig(UD0, IbcREADDR  (0x0006), 1 (0x1)    0x0100            1                       0x0026

10.ibrd(UD0, "SENDOK..", 512 (0x200))                  0x2100            0                       0x0008

11.ibconfig(UD0, IbcUnAddr (0x001B), 1 (0x1)        0x0100            1                       0x0008

After that, Hang at these.....

 

Please help.

0 Kudos
Message 1 of 4
(3,562 Views)

Hey Davor,

Thanks for posting the snippets from the NI-Spy. Would you mind posting the capture on the forum so I can take a look at it. As well please only capture where the problem is occuring. The easier it is to look through, the quicker I can get a response to you. Also, do you experience an error in your code? If possible, please take a screenshot of your code, or if it is possible to minimalize it to just where the error occurs, please load it on the forum as well. Lastly, can you check to make sure that you have allowed a large enough timeout value for your computer to perform the read. Often times, older instruments communicating with newer PC's causes a slower read then a write, which when combined with a low timeout value, causes an error.
Thanks again and have a great day!

Regards,

 

Nicholas K

National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,537 Views)

They not have any error code. The NI Spy software just hung at after that even i select capture on. For another PC i use PCI-GPIB, when i select capture on, they should be have command "ibwait...." right? ( correct me if I am wrong ). I don't have any experience on the command and error code. Attached the caputue file and setting for GPIB both PC.

Download All
0 Kudos
Message 3 of 4
(3,521 Views)

Hey Davor,

Thank you for the screen shots! What concerns me is that in your screen shots it states that "the device did not respond to a *IDN? ". Do you have communication within Measurement & Automation Explorer(MAX) to just query the device you are talking to? Also can you tell me a bit more about your application as in the programming language being used? What device you are communicating to? Any more information pertaining to your application will help me to identify the problem and get you up and running asap.

Thanks again and have a great day!

Regards,

 

Nicholas K

National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,481 Views)