Contactez-nous

Chat en direct avec un représentant Tek. Service disponible de 9 h 00 à 17 h 30, CET.

Téléphone

Appelez-nous au 1-800-833-9200

Disponible de 9 h 00 à 17 h 00 (CET) jours ouvrables

Télécharger

Télécharger des manuels, des fiches techniques, des logiciels, etc. :

TYPE DE TÉLÉCHARGEMENT
MODÈLE OU MOT CLÉ

Feedback

How do I check for errors when I program my oscilloscope?

Question :

How do I check for errors when I program my oscilloscope?

Réponses :

When done retrieving the data, check for errors. This will let you know if the acquisition actually worked.

Typical error handling involves testing the status registers. To do this, have your program send the scope an “*esr?” query. If the program returns a non-zero value, this indicates that an event of some sort occurred. Now you decide how your program should handle the event. A simple to implement way is to simply display a message that says an error occurred. Perhaps, it can also refer the user to an appropriate GPIB Programmer manual for more information on how to decode the error code. A more involved, but more helpful, message would tell the user exactly what message occurred. To do this, you can mask the error code through register templates to decode the specific event that occurred. You could then display the name of this specific event in a message to the user.


Cette FAQ concerne :

Aucune série du produit

Produit :

Numéro de la FAQ 52536

Afficher toutes les FAQ »