11-28-2005 05:37 PM
Hi GPIB Guru,
Thank you very much for your help. The problem is gone.![]()
![]()
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
11-28-2005 05:38 PM
Hi GPIB Guru,
Thank you very much for your help. The problem is gone.![]()
![]()
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
11-28-2005 05:47 PM
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
11-28-2005 06:43 PM
11-29-2005 08:46 AM
Thanks GPIB Guru,
I have tested, and step 4 is a must. If the key DisableIbListen=0, the problem still exists.