06-12-2009 10:00 AM
06-12-2009 10:01 AM
I think there's an even better way than the "delay" method of Ray.R 🙂
I would check the status of the equipment.
I'm sure there's a status bit somewhere that tells you that your equipment is busy.
So make a loop that check the status bit every let say 0.1sec.
Once the status bit said that the measurement is ready ask for the data.
I used this way with a Keithley 2700 with GPIB interface once and it worked well.
Whatever time the equipment needs, you never have problems with time out or incomplete data or whatever.
06-12-2009 10:03 AM
Bonjour,
Juste une petite question la chaine de caractère que tu envois à ton appareil est une fonction qui attend une réponse ou pas ?
Donnes nous le descriptif de la fonction envoyé de la documentation de l'appareil et on pourra te dire ce qui ne vas pas. Les problèmes de timed out proviennent de diverses raison et pour les résoudre il faut connaitre toutes les étapes et explicatifs de ce que tu fais.
06-12-2009 10:04 AM
06-12-2009 10:07 AM
You have to make loop yourself.
Using commands from your instrument you can check the status, start a measurement, read data, ... ...
Maybe you can use the MAX to try several commands to your equipment.
Once you know the commands you need to send, make a sequence in LabView to send them in the correct way.
06-12-2009 10:08 AM
Gregory
Je te donne ma fonction complète. Je rappelle juste l'appareil est un stabilock 4015. Donc c'est assez ancien.
SETTX; TXFRE 83.4MHz;V_RMS;MENU_AF-PAR;selecmW/W;wrtvar mW/W,4 Ohm;soft_menu;soft_relays;selecRLY1;menu_;HARDCOPY;A=MPOWER;
06-12-2009 10:11 AM
06-12-2009 10:17 AM
Tu n'as aucune doc explicatives sur les fonctions que tu envois ?
Car là je vois des fonctions de configuration à mon avis. Après hardcopy et A=MPOWER je ne sais pas à quoi cela peut correspondre.
Quelle fonction doit permettre à l'appareil de renvoyer une réponse ? de quelle forme est la réponse etc... tu as la doc ?
06-12-2009 10:31 AM
06-12-2009 10:53 AM
Did you check the help?
I foud a vi called "Labview - GPIB.vi" that does exactly what you need
Step 1: Send a command
Step 2: Wait a certain amount of time, default is 200ms, make it whatever you think you need.
Step 3: Read some results back
This is of course pure pure basic!
You can use this vi to check all the functions you need.
In a final application I would use the status bit as described before. But that's for later 😉
Please let us know if you can find that vi.