cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

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
Mensagem 11 de 27
2.083Exibições
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
Mensagem 12 de 27
2.065Exibições
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
Mensagem 13 de 27
2.042Exibições
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
Mensagem 14 de 27
2.036Exibições
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
Mensagem 15 de 27
2.035Exibições
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
Mensagem 16 de 27
2.011Exibições
0 Kudos
Mensagem 17 de 27
1.990Exibições
0 Kudos
Mensagem 18 de 27
1.982Exibições
Multithreading forums is not as productive as Multithreaded processing! Língua do Smiley
-Marshall R
0 Kudos
Mensagem 19 de 27
1.961Exibições
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
Mensagem 20 de 27
1.905Exibições