LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB inconsistent behavior

A suggestion is to place some instruction complete? query instead of actual delay in ms.  😉  I forget the actual command for the HP SA..  I could look for it.

Glad it works 🙂  Continue to have fun with LV.

RayR

0 Kudos
Message 11 of 27
(1,827 Views)
How do I check wtether my command is executed in HP3562a? It would be nice for me to know that so I can abolish my static delays.
0 Kudos
Message 12 of 27
(1,809 Views)
I don't know what the command for this particular instrument is, but I would suggest just making your waits shorter and shorter until you start to get errors. That will accomplish the same goal, though it will take time to test.
-Marshall R
0 Kudos
Message 13 of 27
(1,786 Views)
Here is one instruction to query if the instrument is done taking a sweep.
 
TS; DONE?;

TS aka Take Sweep , DONE? returns a 1 when the preceding command (TS) has been completed.
0 Kudos
Message 14 of 27
(1,780 Views)
That is what I was doing. But this method is inefficient since different commands require different execution time. That is why I have to adjust the timer for  the worst case scenario.
0 Kudos
Message 15 of 27
(1,779 Views)
Were you  referring to Joe's response or mine?  As long as it would take, you could tailor mine for every command, you would just have to test every command w/ different waits. Can't replace testing, unless someone else has done it for you 😉
-Marshall R
0 Kudos
Message 16 of 27
(1,755 Views)
0 Kudos
Message 17 of 27
(1,734 Views)
0 Kudos
Message 18 of 27
(1,726 Views)
Multithreading forums is not as productive as Multithreaded processing! Smiley Tongue
-Marshall R
0 Kudos
Message 19 of 27
(1,705 Views)
So I am trying to come up with a code which dynamically checks whether the analyzer is done with the measurement.
I  have attached the simple example.  As you can see the the code querries  the hardware in the while loop up  (SMSD command) up untill it receives sign of completion "1". The code works fine for like 5 - 6  while iterations but then gives me the GPIB 6 mistake  (timeout) in the GPIB write  VI  inside the While loop. I  am confused because when I write  I don't read anything and the write GPIB works fine for 5-6 iterations but then stops working. Moreover I don't have timeout on it so the reason for timeout is strange too.  I have read the NI GPIB 6 error description and none of the cases seem to apply to my situation. Please help me out.




0 Kudos
Message 20 of 27
(1,649 Views)