Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA viOpen cause an interrupt to other instrument (GPIB Chip NI-9914) when running multiple instruments with Fast PC (P4 > 2.8GHz) using NI-PCI GPIB card.

Hi GPIB Guru,

Thank you very much for your help.  The problem is gone.Smiley Very HappySmiley Very Happy

I only follow your step 1 and step 4.  Do I still need Step 3?

But step 2 you suggest will not have viAddress reuse, unless I put the another while loop outside the viOpen and viClose. I rewrote my program to reproduce the viAddress recycle from other instrument for the test.

Loop

        For i = 1 to 3 //(3 instruments)

             viOpen(Res(i), &viAddress(i)

      

Until Error

 

Thanks again

0 Kudos
Message 11 of 15
(1,849 Views)

Hi GPIB Guru,

Thank you very much for your help.  The problem is gone.Smiley Very HappySmiley Very Happy

I only follow your step 1 and step 4.  Do I still need Step 3?

But step 2 you suggest will not have viAddress reuse, unless I put the another while loop outside the viOpen and viClose. I rewrote my program to reproduce the viAddress recycle from other instrument for the test.

Loop

        For i = 1 to 3 //(3 instruments)

             viOpen(Res(i), &viAddress(i)

       

Until Error

 

Thanks again

0 Kudos
Message 12 of 15
(1,850 Views)

Sorry, I press something on my key board, and it submitted the message when I did not complete yet.  Here it is..

Loop

        For i = 1 to 3 //(3 instruments)

             viOpen(Res(i), &viAddress(i))

       Next i

       For j = 1 to 1000   // Test Read/Write 1000 times

              For i = 1 to 3 //(3 instruments)

                      viWrite(viAddress(i), "CLOSE 1")

                       viWrite(viAddress(i), "OPC?")

                       viRead(viAddress(i), &Buffer)

               Next i

       Next j

        For i = 1 to 3 //(3 instruments)

             viClose(viAddress(i))

       Next i

Until Error

 

0 Kudos
Message 13 of 15
(1,848 Views)
I probably should have made myself clearer. Each of the 4 solutions will work for you independently. That is, you can use any 1 of those solutions to solve your problem. Doing multiple of the solutions will be fine as well (just potentially redundant).

Glad that my hypothesis was correct. Good luck!
0 Kudos
Message 14 of 15
(1,841 Views)

Thanks GPIB Guru,

I have tested, and step 4 is a must.  If the key DisableIbListen=0, the problem still exists.

0 Kudos
Message 15 of 15
(1,831 Views)