LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication Série RS232

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

0 Kudos
Message 1 of 5
(2,579 Views)

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.

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
0 Kudos
Message 2 of 5
(2,549 Views)

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)

0 Kudos
Message 3 of 5
(2,528 Views)

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

0 Kudos
Message 4 of 5
(2,506 Views)

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.

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
0 Kudos
Message 5 of 5
(2,484 Views)