Problème inactivité VISA GPIB

Bonjour,
Je travail sous LB8.5
J'utilise une centrale d'acquisition AGILENT 34980A pour switcher sur 32 pièces dans un banc de mesure.
Mon programme est du type séquentiel dans une boucle infinie ( je fait un tas de mesure, j'enregistre, je switch sur la pièce suivante et rebelote tant que je donne pas un ordre pour passer dans un sous-programme.)
Le switch est donc réalisé par cette centrale GPIB et j'utilise les commandes VISA.
Dans une certaine configuration, la centrale est inutilisée pendant 10h ( dans ma boucle infinie ) puis je passe dans un sous-programme2 qui lui la ré-utilise. La centrale se " fige " dans le sous-programme2 . On dirait qu'elle ne répond plus et je dois la rebooter ou lancer un autre programme pour qu'elle réagisse.
Voila sur l'image les conditions de ma liasion VISA pendant 10h. Je suis en " attente " entre 2 " registre à décalage ". Est ce que je dois mettre un flush ou autre chose pour pas avoir ce probleme ?
Merci.
Résolu !
Accéder à la solution.
Pièces jointes :
problème.JPG ‏24 KB

Merci pour votre réponse.
Ci-joint mon projet complet. Le programme se déroule de la manière suivante :
(1) " check modif "  ====> (2) " Switch&mesure ====> (3) " Switch& get data.
(1) " check modif " me permet de remplir des tableaux avec toutes les informations que j'ai besoin ( numéro de série, statut en fonction de la consomation...)
(2) " Switch&mesure " a deux fonctions :
- sur des pièces en calibration, il ne fait rien ( il ne switch pas dessus dons il n'utilise pas la centrale avec les fonctions GPIB VISA.
- sur les autres pièces ( dérive ), il switch dessus pour réalisé une mesure de fréquence ( utilisation de la centrale).
(3) "Switch&get data permet de récuperer les fichier TXT de calibration des pièces en calibration quand elle est terminée ( au bout de 10h ).
Quand j'ai au moins une pièce qui n'est pas en calibration, j'ai aucun problème car la centrale switch constament sur la pièce en dérive pendant le cycle de calibration. Dans sous-VI (3), la centrale switch sur toutes les positions ou il y avait des pièces en calibration pour récupérer les valeurs.
Quand toutes les pièces sont en calibration, la centrale ne fait rien ( la liaison GPIB VISA est entre les registres à décalage dans la boucle While pendant 10h). Quand le cycle est fini, on passe dans le sous-VI (3) "Switch&get data" qui lui à besoin de la centrale pour switcher sur les position. Après 10h d'inactivité, la centrale ne répond pas aux commandes VISA du sous-programme (3).
Est-ce que c'est plus claire comme ça ?
Pièces jointes :
banc.zip ‏436 KB

Similar Messages

  • Controlling Agilent E4438C ESG using NI-VISA GPIB

    Hii all,
    I am controlling Agilent E4438C ESG using NI VISA GPIB...Whenever i want to set the amplitude and frequency, i will send it the commands....but when i want to capture the information i am unable to do it....
    I gone through the VISA GPIB user and programing manual ..there is various functions such as ibwrt etc..How can i use those commands in the LabVIEW...
    One thing more ..i wanna to know, the commands vary according to the instrument type..
    If yes from where i can get those commands for Agilent E4438C ESG....
    Puneet
    CLA 2014
    CCVID 2014

    You should download the driver. The main search page is at http://sine.ni.com/idnetwork/. Just enter 4438 into the search field and you will find the driver.
    Your comment about capturing the information is not clear. What exactly do you want to read back from the instrument? You should spend some time reading the programming manual for the instrument. When you find the query (a command terminated with a '?") you want to issue, you would see if it exists in the driver. If it does, just execute the driver function. If it doesn't, then you do a VISA write of that command and then do a VISA Read.
    p.s. The programming manual is available from the vendor.
    Message Edited by Dennis Knutson on 02-13-2008 09:18 PM

  • Has anyone had troubles with VISA(GPIB) control and using USB?

    I am having trouble controlling a GPIB machine using VISA controls. I am using a USB GPIB cable and the software. But I get errors when I try to use the Intstrument drivers (ex HP4194A) VISA control. If I change to GPIB commands it works fine. Am I calling the unit wrong? Not sure how to get it to work.

    I tried that and I get the following error
    in NI spy Status 0xBFFF00A6
    error out -1073807194
    with IDN? I don't get the equipment info, but get some hex code.
    Attachments:
    visa_test.vi ‏20 KB

  • Problème lecture visa RS 232

    Bonjour,
    Dans le cadre d'un projet, je dois récupérer diverses mesures de pression, débit ou températures. Pour la mesure de pression, j'utilise une connexion série via un RS 232.
    Après avoir configuré le port série (Baud, nombre de bits...) j'ai effectué une lecture sans problème. Sauf que je ne récupére pas les mesures de la bonne voie. Pour ceci, j'essaye d'écrire la commande avec l'aide de la documentation du capteur. Je n'obtiens d'ailleurs pas d'erreurs dans l'écriture, ni en lecture seulement un warning 1073676294 et surtout je n'arrive plus à obtenir la moindre mesure.
    D'avance merci
    Thibaut Delepierre
    Pièces jointes :
    visa.vi ‏15 KB

    Essai ça.
    bon courage
    Philippe B.
    Certified Associate Developer / Dépt Moyens d'essais
    www.ingenia-system.com
    Pièces jointes :
    visa_modif.vi ‏17 KB

  • VISA GPIB problem after switchig from NT- W2000

    application was written in LV 5.0.1 and run under NT for several years without problem. After installation of Win2000 the VI's communicating with instrr (GPIB) via VISA are not working.

    Hello marekf,
    Thank you for contacting National Instruments.
    If you are using an older version if NI-VISA, the NI-VISA library
    (visa32.dll) will fail to load when guests and non-administrators are
    logged onto Windows 2000. Guests and non-administrators do not have
    read/write access to the registry key that VISA is trying to access.
    The symptom may be a warning dialog box from the OS or an error, (such
    as -1073807360), in viOpenDefaultRM.
    To avoid this problem, upgrade to the latest version of VISA or follow
    the procedure below:
    1. Log onto the computer as the administrator and open
    the registry editor (regedt32.exe).
    2. Explicitly grant the guest account write access
    under HKEY_LOCAL_MACHINE\Software\National
    Instruments\NI-VISA for Windows 9
    5/NT. Choose
    the Security>>Permissions menu item.
    If "Everyone" is present, double-click it and
    modify the permissions to "Full Control". If not,
    click "Add", choose "Everyone", and give
    them "Full Control".
    The latest version of VISA can be obtained using the following link:
    http://digital.ni.com/softlib.nsf/webcategories/85256410006C055586256BBB002C0E91?opendocument&node=132060_US
    I hope this helps! If this does not solve your problem, let me know.
    Matthew C
    Applications Engineer
    National Instruments

  • DIsplay Agilent E4438C ESG using NI-VISA GPIB

    Hi,
    I am currenty using labview to control Agilent E4438C to do a frequecny list sweep but how do I display the current frequecny the signal generator is at? I look through the VI in the instrument driver but I can't seem to find it. 

    Pete@Intel wrote:
    xsychox and others,
    The fundamental problem is that the Agilent SCPI command set doesn't provide a way to get the value of the current step state (frequency or amplitude) in a free-running/triggered list sweep.
    I understand the issue because I'm polling the actual injected power (which is not the same as the generator power) using an RF power meter and need to know the corresponding frequency.
    (I'm polling the ESG about once every 500ms during an extended, like 20 minutes, BER test - the ESG just happens to be the instrument that I'm using for an impariment source).
    The only solution that I have right now is to poll the ESG at the same rate as the dwell time per step and get a coarse approximation of the frequency based on time after the sweep is initiated.
    It's not as accurate as I'd like, but without a supported command it's a bit difficult.
    The other solution that I've considered is to emulate the list sweep by keeping my sweep list table in LabVIEW and then writing a loop to force each value using standard frequency and amplitude commands.
    When you are in the normal CW mode, the ESG driver frequency query works fine.
    I haven't implemented this because it's a bit of a change to some legacy code and I haven't had time to experiment with the implementation.
    I hope this is helpful.
    I think the second solution is the best option.  I think the reason why you can't get query the instrument during a sweep is because that sweep is a single command.  The next command cannot start until the last one completes.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Can labview control all device besides VISA/GPIB/​VXI???

    If it can, what is the procedure I need to do?
    I am trying to use Labview for programming my PCI control card, but the
    mamufacture only provide me a Vxd file, so i am wondering whether Labview
    help me.
    Thanks for ur attention, hope u can help me.

    National Instruments can't help you here. Only the manufacturer can.
    A VxD file is just a virtual device driver for the card. You will
    need some sort of DLL or ActiveX server from the mfg. to be able to
    send commands to the card. Otherwise you will at least need a
    register map from the mfg. and instructions on register programming
    the card from them. If you do register programming then you will need
    to do it in Win98 or WinME, etc. NOT WinNT or Win2000 as you can't get
    access to real memory from those O/S's.
    (Well actually you can if you hunt around enough on the internet to
    find somebody with a DLL to sell you that lets you write to real
    memory.)
    Douglas De Clue
    LabVIEW developer
    [email protected]
    "MM" wrote in message news:
    hjk59$[email protected]>...
    > If it can, what is the procedure I need to do?
    > I am trying t...

  • Traditional GPIB for SRQ instead of VISA

    Hello,
    I have a Program using the VISA GPIB for the SRQ to tell me when an instrument has completed a task. It is one VI used multiple times and the wait time varies. It works wothout any problems with VISA. When I tried to do it with Tradition GPIB it was a 50/50 shot of it working.
    If I were to rewrite it for Traditional GPIB how would I read it? Currently I use the VISA Read STB, is there an equivalent in the traditional GPIB?
    Jeff D.
    OS: Win 7 Ultimate
    LabVIEW Version: 2011,2010,2009 installed
    Certified LabVIEW Architect

    By "traditional GPIB" I assume you mean 488.1. There is a good tutorial on this site that might lead you in the right direction to answer your question. It is titled "Using Service Requests in your GPIB application" Hope this helps.
    Using LabVIEW 2010SP1 and TestStand 4.5

  • Choice between VISA and GPIB drivers

    I have a waveform generator with a GPIB port. I would like to build my own VIs. Can someone suggest which driver (VISA or GPIB or IVI) would be preferable and what are the differences in terms of ease among these drivers?

    Hello Craig,
    I have an Agilent 33220A frequency generator for which I have already found drivers from the Instrument Driver Network. I am a beginner in LABVIEW and am in the process of improving my skills in communicating with instruments. So far, I have been communicating with other instruments using VISA and a serial port.
    While going through LABVIEW HELP, I realized that VISA, GPIB and IVI drivers can be used for communicating with a GPIB instrument port. This being the case, I would like to know which of the above-mentioned drivers is preferable?
    Thanks
    Ram

  • Exemple Vi GPIB

    Bonjour, 
    Je dois automatiser un flash tester 5300 de chez ESi en tant que petit projet. L'equipement a une trentaine d'année donc il ne reconnait pas les commandes spécifiques Labview tel que *IDN? etc mais j'ai trouvé les commandes propre à l'appareil qu'il faut lui envoyer. Je tourne sous Labview 8 et j'utilise une communication GPIB/USB de chez Agilent. Pour faciliter le travail j'ai ouvert un exemple GPIB mais quand je configure la face avant avec l'adresse de mon équipement et la commande à envoyé, j'obtient l'erreur 0 comme quoi il y a une erreur de connexion mais que le VISA marche parfaitement. J'aimerais savoir pourquoi ? 
    PS : J'ai fais quelques tests en ouvrant un assitant d'instrument E/S au quel j'ai mis en place des requetes avec mes lignes de commandes trouvées dans la doc et ça marche.
    Cordialement.
    Résolu !
    Accéder à la solution.

    Bonjour, 
    Depuis j'ai fais autre chose. Vous verrez ci-joint le programme que j'ai fais.
    Sur MAX il n'y a aucun problème, j'ai tout installé, le périphérique est détecté etc.
    Mais au lieu d'utiliser l'exemple GPIB étant donné que je suis sur un adaptateur USB/GPIB de chez Agilent j'ai préféré utilisé la communication avec les VISA (voir ci-joint). J'aimerais savoir s'il y a moyen de garder en mémoire mes lignes de codes afin de juste modifier les valeurs numériques ? Car cela m'oblige a rentrer pour chaque configuration la ligne complète ca en devient vite agaçant. 
    Je vous remercie d'avance. 
    Pièces jointes :
    VISA GPIB FASH-TESTER fonctionnel.vi ‏41 KB

  • Labview Executable with VISA functions in Run Time Engine

    Hi Everybody
    I designed a gui to communicate using VISA GPIB. I created an executable for the gui. I also installed LabView Run Time Engine on the desired machine. I recieved couple of errors, for which I copied the files visa32.dll, NIVISV32.dll and serpdrv to the folder with the executable.
    I recieved the following error, ' Initialization of NIVISV32.dll failed. The process interminating abnormally.'
    Are there any drivers I should install in addition to the Run Time Engine? If so, where can I find these drivers?
    Thank you
    Jackie

    I installed NI-VISA with similar version as my development installation, and LV runtime engine. Labview still crashed.
    I noticed certain library functions in full labview that is not present in the NI-VISA + LV run time directory, such as _visa.llb etc.
    Do I need to copy these additional library functions too? Will Run Time Engine read these library functions?

  • Ways to configure VISA properties associated with the EOS character in LabVIEW

    I am having a great deal of trouble reading consistently from an instrument (HP5328A Universal Counter) and am investigating the EOS character. In ibic, there are 6 properties of interest accessed through the ibconfig command. The following are the properties and their default settings:
    Board level
    - IbcEOSchar EOS character is 0 (zero)
    - IbcEOSrd EOS is ignored during read operations
    - IbcEOSwrt EOI not asserted when EOS sent
    Device level
    - IbcEOSchar EOS character is 0x0A (set in ibdev)
    - IbcEOSrd EOS ignored during read operations
    - IbcEOSwrt EOS not asserted when EOS sent
    I would like to be able to programmatically set these at the beginning of my LabVIEW
    program. The only relevant VISA properties in the INSTR or GPIB BoardInterface classes I can find are:
    - Send End Enable
    - Suppress End Enable
    - Termination Character
    - Termination Character Enable
    The defaults in my LabVIEW program for both VISA classes mentioned are: Send End Enable is true; Suppress End Enable is false; Termination Character is \10 (Line Feed); and Termination Character Enable is false.
    The only property I change is setting the Termination Character Enable to true for both classes. Is there anything else I can do with properties associated with the EOS char? Is there a property like the IbcEOSwrt that may have a part in generating a service request?
    Just to confirm, the last two bytes of the instrument's ouput are \CR and \LF. I am using \LF as the EOS. Is this correct or should I be incorporating the \CR in the EOS somehow?
    ANY input is appreciated,
    Chris

    Chris:
    VISA "Termination Character" = NI-488 "IbcEOSchar"
    VISA "Termination Character Enable" = NI-488 "IbcEOSrd"
    VISA "Instr" or "GPIB Instr" = NI-488 "Device level"
    VISA "GPIB BoardInterface" = NI-488 "Board level"
    VISA cannot automatically add the termchar to the end of the written data (like IbcEOSwrt).
    Unless you specifically need to do board-level communication, which is considered advanced, I suggest ignoring that, and sticking to the device-level calls.
    If the instrument's ASCII data responses always end in \LF, then yes, just using \LF as the termchar is the correct thing. In fact, with most 488.2 devices you don't need to worry about the termchar, because the final byte of a response also contains EOI. EOI causes the driver to s
    top reading from the instrument because it knows that is the end of the response.
    You say you're having trouble, but you don't say what the symptom is. Is the read timing out? You might also want to use NI Spy to get a snapshot of what is going wrong.
    I hope this helps some.
    Dan Mondrik
    Senior Software Engineer, NI-VISA
    National Instruments

  • Multiple LABVIEW GPIB Commanding alternating Write followed by read many times

    Hi,
    I am trying to convert my labwindows C program over to Labview.  This is a VISA GPIB application.  I have seen how you can send multiple
    commands in Labview by sending the commands separated by semicolons.  However with my instrument.  I need to write one command
    then immediately read the command. and report the results to a text window for user visual verification.
    In C is sent around 47 or so commands to the instrument just to be sure all of these parameters have the correct configuation.  I did this with a
    Array of strings with each element a string command.  then simply used a for loop in C to send to visa ViPrintf function.  Always one write and one read followed by displaying the command string and the response to the instrument.
    I would like to do the same thing in Labview. 
    Thank You for your help,
     Gary
    Message Edited by golson on 07-14-2009 04:02 PM

    OK. So what's your question? LabVIEW has VISA functions as well. VISA Write and VISA Read. LabVIEW has loops. LabVIEW has arrays. Thus, you can create an array the same way you did in LabWindows, and drive a loop with that array, and send a write followed a read.
    Perhaps you can clarify what you're asking for. 
    Have you looked at/gone through the tutorials? To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

  • NI-VISA Library and C program functions PLEASE HELP

    I'm currently coding in "C" and using VISA.h. I wrote a program that will talk to a spectrum analyzer, determine certian spurious frequencies, and record those frequencies to a plain text file, which is all performed over a GPIB bus. I'm now trying to clean up some of the code and am having a problem with putting sections of the code into function calls. I was wondering if someone can show me what a simple funtion prototype would look like in C using the visa.h style of coding. In other words, what parameters do I need to pass to a function that would allow me to talk to the GPIB connected device while inside that function? For example, if I had spectrum analyzer connected via GPIB, and I wanted to make a function call
    in my code that would set the center frequency to 3 MHz, other then the 3 MHz, what additional parameters do I need to pass to the function to allow it to send the command "ENS:FREQ:CENT 3 MHz" over the GPIB bus. This function would return VOID.
    Thanks for any help with this
    Mike

    Hey Mike,
    First of all I wouldn't recommend returning VOID for your function. All of the VISA/GPIB functions return a status that lets you know whether or not the function completed. Therefore, I would suggest that your function return the status of the VISA commands so your main application knows if your function worked.
    I would suggest creating functions that require you to pass the instrument handle (Object Handle) that is returned from viOpen and then any other information needed to modify an attribute or send a value. There are thousands of examples on our website. Check out www.ni.com/idnet.
    This link has all of the instrument drivers that we have created. I would suggest looking at the instrument drivers made for CVI.
    I hope this helps out.
    JoshuaP
    National Instruments

  • Go To Local in VISA

    Hi all,
    I noticed the VISA library does not have Go To Local function for
    GPIB. How do I this with the VISA library ?
    Makoto

    Makoto wrote:
    > Hi all,
    >
    > I noticed the VISA library does not have Go To Local function for
    > GPIB. How do I this with the VISA library ?
    >
    > Makoto
    Is the function "VISA GPIB Control REN" what you want ?
    It looks like it will send a go to local to a device.
    (found in the interface specific palette)
    If this will not work then sending the local command to
    the GPIB device using VISA will work.
    Kevin Kent
    Attachments:
    Kevin.Kent.vcf ‏1 KB

Maybe you are looking for

  • What does a reset actually do-

    I used to have a Palm 650 that I had to re-set from time to time, it do not affect any calendars, contacts etc-. Is it recommended to re-set the IPhone from time to time Thanks

  • FlexGrocer

    Hi, while i was trying to develop the flexgrocer from Training from the Source i encountered a problem with importing the utils.Util class and dont have the cd sources. Did someone know if this class must be found on the cd or if i can find it annywh

  • WebLogic6.1 SP3/Solaris5.7: "HotSpot Virtual Machine Error, Internal Error"

    Hello, I get the following error when I try to start up the BEA Weblogic (6.1+SP3) server, running the petstore demo... # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # Error

  • How to add an data in an existing file

    Hi, I have the following problem: I  am implementing a data logger using the RS232 port and Labview, I have not problems with data capture my problem occurs when I store the data in a file, I need that every time the data is registered this data must

  • Code Review

    Hi folks, need your assistance here; an example, I gave you a sql statement of almost 20 lines, with so many joins/hint and a lot of other activities too. And you've been asked to review that code and provide your input/thoughts/suggestion/advises ab