11-09-2011 05:50 AM
Bjr
J'ai un petit problème d'acquisition de température. J'utilise Labview 9.0 couplé à une centrale d'acquisition Agilent 34970A via une communication RS232.
J'ai teléchargé le driver de l'instrument, et J’ai créé un VI pour configurer la centrale, envoyer l'ordre de faire la mesure puis les récupérer. Le problème c’est que le programme ca va bien exécuter au début mais après quelques minutes il s’arrête (Erreur timeout), et je ne peux pas recommencer l’exécution de programme sans redémarrage de pc.
Je voudrais savoir comment éviter cette erreur.
Merci d'avance
11-11-2011 10:37 AM - edited 11-11-2011 10:38 AM
Hi Znagui,
I'm sorry but my French is not so good. If you don't mind I will give you the response in English. I understand that you are using the Agilent 34970A using serial RS232 communication, and are using LabVIEW 2009 (9.0). You've downloaded the instrument driver located here. You created a VI to configure it, but you get a timeout error.
Have you tried to open up an example VI that comes with the instrument drivers? There several examples in the Agilent 34970.lvproj. Please try the Agilent 34970 Multifunction.vi which seems simple. Do you get the same timeout error?
Please also reference this article we have for the Agilent 34970A Using the Agilent 34970A with LabVIEW.
11-15-2011 06:58 AM
I use an example that comes with the instrument drivers (HP34970A Example.vi EZScan), it is well run. I use a while loop and I make a simple modification to acquireseveral measures. The problem is that the program is executed at the beginning but it stops after a few iterations (timeout error). What if I want to rerun the VI, the instrument (Agilent 34970A) is not responding and you have to restart the PC. (withGPIB I do not have any problem)
11-17-2011 08:52 AM
I use an example that comes with the instrument drivers (HP34970A Example.vi EZScan), it is well run. I use a while loop and I make a simple modification to acquireseveral measures. The problem is that the program is executed at the beginning but it stops after a few iterations (timeout error). What if I want to rerun the VI, the instrument (Agilent 34970A) is not responding and you have to restart the PC. (withGPIB I do not have any problem
11-21-2011 11:47 AM
Have you tried to use a shorter Wait (ms) time? Try 50 instead of 2000. If that does not help, use Hightlight execution to see where the code is stuck at, so we have more information.