Affichage Nom d'utilisat​eur Teststand dans le Teststand Simple IO (codé en Labview)?

Bonjour
J'ai une question à propos de l'utilisation de Teststand via Labview:
Pourquoi dois-je ajouter une longue tempo après Start Application Manager pour afficher le nom d'utilisateur dans le Teststand Simple IO?
Je dois obligatoirement mettre une tempo supérieure à 7 seconde (j'ai mis 9s pour être large) pour que je puisse afficher le nom d'utilisateur loggé après le démarrage de teststand.
Sans cette tempo, le refnum entrant dans le get engine est vide et j'ai une erreur.
Je trouve cette tempo anormalement longue alors je me pause la question si mon code est bon...ou pas, si cela est normal, ou pas...?
Pourriez-vous m'expliquer quand doit-on fermer une référence : à chaque méthode et propriété utilisée?
Merci pour votre aide
Lacoule
Attachments:
Simple IO + login Name.PNG ‏101 KB

Bonjour,
Ce temps permet à Teststand de se lancer. Il est donc normal de ne pas récupérer la référence par le GetEngine s'il n'existe pas encore
A propos des fermetures de références : il faut les fermer une fois que vous n'en avez plus besoin. Ainsi, si vous avez créé une référence et que vous l'utilisez avec plusieurs noeuds de méthodes/propriétés, ne la fermez qu'à la fin.
Cordialement,
Mathieu P. | Certified LabVIEW Associate Developer
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...

Similar Messages

  • Teststand Simple User Interface in LabVIEW

    Hello Community,
    I am designing a user interface for Teststand by using the simple example vi provided. The name of the file is Top-Level VI.vi
    I am trying to understand how the vi works inorder to make changes and ran into a few questions that I was hoping someone could answer for me please.
    To start I add my sequence file and click "Test UUTs". Then a dialog box pops up asking to enter the serial number of the UUT, where and what causes that to happen in the code? After I enter my serial number it runs my sequence code and at the end another message box appears specifing in a green or red whether the UUT passed or failed. Where and what causes the Pass/Fail Boxes to happen in the code?
    Thank you
    Kevin
    Solved!
    Go to Solution.

    The S/N dialog is part of the process model.
    For the Sequential Model (SequentialModel.seq), the default S/N dialog in found in the 'PreUUT' sub-sequence and implemented as a DLL call.
    The PreUUT sub-sequence of the SequentialModel is a callback, so you can override it in your own test sequence.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • TestStand Simple OI does not close properly

    Hi there.
    We have build a test system that is running TestStand 4.2 and the code modules are created with LabVIEW 9.0. The SW is running on a PC with Windows XP.
    We are currently using TestStand Simple Operator Interface (LabVIEW version) to run the tests, and it is with the Operator Interface that we are having a problem.
    If we use the TestExec.exe file that came with the TestStand installation everything works fine. But we need to make some modifications to OI and if we open the project file and recompile the OI, then the OI will not close properly. It seems to shutdown the testengine and stop execution of the VI, but the window does not disappear until we move the mouse.
    When I open the project file LabVIEW informs me that the project was last saved in version 7.1.1 and we are now running 9.0.
    Can anyone tell me what is holding the window on the screen until there is activity on the mouse?
    Solved!
    Go to Solution.

    I was looking through TestStand 4.2 known issues, and I found this:
    ID# 148697
    LabVIEW User Interface might hang when using LabVIEW events
    A LabVIEW User Interface that registers ActiveX callbacks and uses an event structure might hang when the user interacts with a LabVIEW control or indicator. The hang is rare, but when it occurs, TestStand User Interface (UI) Controls remain responsive, but all LabVIEW User Interface elements appear frozen.
    Workaround: Activate another application and reactive the LabVIEW User Interface.
    Not exactly the same as I am experiencing but sounds similar - Does anyone know more about this issue?

  • Storing carriage return and other special characters in a TestStand variable and passing to LabVIEW

    I am using TestStand step to call a LabVIEW VI that writes commands to a serial device.  The device expects a carriage return at the end of the command.  I can create a constant string in TestStand with the carriage return, e.g., "ATA\x0D" and pass that to a LabVIEW string control which shows ATA\r and the VI works properly.
    To provide consistency and flexibility in my code, I want to store the terminator character(s) in a TestStand variable.  However, when I try to use an expression to create the command string, i.e. "ATA" + "Locals.Terminator", where Locals.Terminator is set to "\x0D", my LabVIEW VI string control shows "ATA\\x0D" which doesn't work.  And when I try Locals.Terminator set to "\r", the LabVIEW string control shows "ATA\\r" which doesn't work either.
    Is there a way to store special characters in a TestStand variable and pass them to LabVIEW as special characters?  I saw in another post that if you edit the TestStand variable by pressing Cntl-Enter, it will store  the newline \n properly and it can be sent to LabVIEW - that works for me as well for \n.  But  I need to send a carriage return.
    I've attached my test sequence and the corresponding LabVIEW VI with a string control.
    Hans
    Attachments:
    Special Chars.seq ‏27 KB
    String Passing.vi ‏13 KB

    Hi Hans, 
    Thanks for your detailed explanation and examples.  In TestStand, change the String parameter's String Type to Binary String instead of ASCII.  Then it will pass the desired value.
    Cheers,
    David Goldberg
    National Instruments
    Software R&D

  • TestStand Simple OI unload sequences?

    All,
    I'm trying to verify if the TestStand Simple OI (LabVIEW) unloads a sequence when a new sequence is selected to run, I'm fairly new to TestStand interfacing with LabVIEW and I just want to verify, somehow, that there are not multiples sequences loaded at the same time; would anyone be able to help me out?
    Thanks,
    -Bill
    John 3:16

    Bill,
    If it shows up in the drop down then it is open.  So just opening a new one does not close the previous one.  You have to explicitly click the Close Sequence File button.  Or you can change the simple OI to handle this when a new one is opened.
    However, opening a new sequence file does make the new one the "current" sequence file... i.e. it is selected.
    I did verify that they are both opened by putting a property node on the application manager and getting the sequence files reference then using another property node to get the count.  It returned that both sequence files were indeed open.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to Run teststand sequence file using the LabVIEW

    Hi
    I want the execute the Teststand Sequence file using the LabVIEW .Net containers.I didnt find out the Execution Parameter in the .Net Container.Do you any suggestion regarding this question.Please let me know.
    Jayavel

    TestStand comes with loads of Operator Interface examples some simple, some full fledged. You can find it in teststand public folder win7 path here:C:\Users\Public\Documents\National Instruments\TestStand 2010 SP1\UserInterfaces
    You can take these examples or use ideas from here, also read the teststand reference manual. It has a section about Operator Interfaces.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • I would like to build I data base in teststand which collect data from labview , if you have example (sequence) that give me some way to build sequence

    I would like to build a data base in teststand which collect data from labview program , if you have example (sequence) that give me some way to build sequence that have step of action for labview and step
    data base

    There is an example in the \TestStand\Examples\Database directory. Basically there are two ways to connect to your database.
    1. You can use the TestStand database step types. There are steps for opening/closing a database connection, opening/closing an SQL statement, and a step for performing a data operation.
    2. The other way is to use the TestStand database logging capability to write your results to the database. This is the way I would recommend. With database logging, you use the step results container to record all your results as the sequence runs. (This is done automatically by TestStand). When the sequence is complete, the process model calls a "Log to Database" sequence that will write the results to the database. You must define your datab
    ase schema using Configure->Database Options. There are some default (or example) schema definitions already defined. Refer to chapter 18 of your TestStand manual.
    Another way to log the data as the sequence is running is shown in the \TestStand\Examples\OnTheFlyReports. This has the advantage of recording data as it is obtained, but it is not as efficient in terms of using a database connection. I don't recommend using this method.
    Please post again if you have any more questions. If you are using stored procedures with your database, I can probably give you some tips.
    Mark

  • Affichage du numéro de page dans les résultats de la recherche

    Bonjour,
    Dans une précédente version d'Acrobat reader pour mac, lorsque j'effectuais une recherche, il y avait toujours dans la page de résultats une colonne contenant les numéros de page correspondant aux résultats. Dans la version PC que j'utilise, il faut que je passe la souris sur le résultat pour avoir le numéro de page, et cela me fait perdre beaucoup de temps. Quelqu'un saurait me dire comment obtenir les numéros de page dans une colonne séparée ?
    Merci à tous par avance !

    Dans une précédente version d'Acrobat reader pour mac
    Bonjour,
    1- Acrobat Reader n'existe plus depuis bientôt 10 ans : http://abracadabrapdf.net/articles.php?lng=fr&pg=8
    2- J'imagine qu'il est question de la version X (10) car c'est un de ses défauts fréquement souligné, auquel cas il vous faut la désinstaller, et réinstaller la version 9.5.
    En attendant que peut-être la version suivante (11) corrige ce désagrément quand elle sera disponible…

  • Programme dépendant de l'utilisat​eur

    bonjour je voudrai que lorsque que je lance mes programme que les différentes fonction que l'on retrouve dans la barre des menus s'affiche ou ne s'affiche pas suivant l'utilisateur, avec peut être un mot de passe. Quelqu'un aurait il des idées de programmes.

    Hi.
    To get an answer on this part of forum, you should post in English. Another solution is to post on the french forum here.
    I attach this screenshot. I hope it will be helpfull.
    Best Regards.
    Romain D.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    NIDays 2010 : Conférence mondiale de l'instrumentation virtuelle
    >>Détails et Inscription<<
    Attachments:
    cpt1.JPG ‏102 KB

  • Créer un vi qui demande à l'utilisat​eur d'entrée un nombre entre 0 et 9. Le vi affichera ce chiffre en lettre. Exemple si l'utilisat​eur encode un '0', le programme affichera « zéro

    bonjour
    je doit créer ce programme mais je sais pas comment le réaliser
    Créer un vi qui demande à l’utilisateur d’entrée un nombre entre 0 et 9.  Le vi affichera ce chiffre en lettre.  Exemple si l’utilisateur encode un ‘0’, le programme affichera « zéro 

    Salut,
    Ci joint un exemple...
    a+
    Reg
    Pièces jointes :
    Exp.vi ‏11 KB

  • Pulling in a variable into TestStand from an externally running LabView Vi ?

    Hello,
    My coworker has a problem and I'm tyring to help him.
    We have a functional test written by an outside company, using TestStand 4.1
    He has a LabView Vi with an Thermotron driver that monitors  a chamber temp and outputs an INTERVAL number ( 1 intervel every x minutes)
    That interval number is written to text file.
    We would like to loop the Main function of the TestStand sequence based on that Interval number, but I'm unsure how to read that variable from within Test Stand.
    I can either pull interval numbers from the text file, or set up logic in the VI to make a true / false flag based on interval numbers
    i.e. interval 30 - 60 run the test....61 to 75 pause (dont run test)....76 to 125 run test...etc
    Can you tell me how I might pull that interval into TestStand ?
    Is there a way without incorporating the stand alone VI in question into the Test Seq ?
    Thank you for any advice in advance !
    Solved!
    Go to Solution.

    Hi,
    Are you saying that you want to read this value stored in your text file and use this value to set the number if iteration of your test sequence loop.
    You will need a piece of software that will obtain the value from your file and then pass this back into TestStand to store in a teststand variable, probably a local. TestStand doesn't have the built in function to directly read the data from your file.
    Therefore you will need a code module attached to say an Action Step Type. The code module can be written in any one of the supported language, as you mentioned LabVIEW then maybe this is your perferred language. So your VI need to obtain the data from your file and return the value back to TestStand and you do this by sending your data out of your VI via its connector pane and then in teststand assigning a Teststand variable to your output connection of your VI.
    I am assuming you have the basic knowledge of setting up a Step in TestStand.
    Regards
    Ray Farmer

  • Calling 64-bit TestStand Engine from 32-bit LabVIEW

    I am creating my own TestStand user interface in 32-bit LabVIEW but I want to use the 64-bit TestStand Engine. I can't find a way to specify this. The read-only API property "Engine.Is64Bit" is coming back false when I run from my UI, but when I run from the Sequence editor, it comes back true.  How is this determined and set at startup???

    I dont think you can build a 64 bit TestStand interface using a 32 bit Labview.
    FYI the the 32 bit User interface code is stored at :
    C:\Users\Public\Documents\National Instruments\TestStand 2014 (32-bit)\UserInterfaces\Full-Featured\LabVIEW
    The 64 bit user interface code is stored at :
    C:\Users\Public\Documents\National Instruments\TestStand 2014 (64-bit)\UserInterfaces\Full-Featured\LabVIEW
    You have build a 32 bit TestStand user interface and the is64bit is properly showing as false.
    Try building the same project using 64 bit Labview (which should automatically pickup 64 bit TestStand components)
    When you say that you run from seqeunce editor - i think you mean 64 bit sequence editor.
    Ofcourse once you build your 64 bit user interface you can call a 32 bit vi (only in adapter mode set to dev and not run time).
    Hope this helps.
    Ravi

  • Show TestStand report in a custom LabVIEW OI

    Hello world!
    I'm a newbie who's trying to develope a custom LabVIEW OI which should allow user to fully interact with TestStand.
    After succeeding in allowing user to select a sequence and run it, i stopped the developement while trying to show the generated report in a TestStand ReportView control.
    Does anyone can tell me which TestStand API methods or properties i should use or can attach a working example?
    Tnks!

    aRCo,
    The EndExecution event that you are catching is really a UIMessage under the hood.  What I recommend you do is take a look at the UIMessageCodes page in the TestStand help.  This page lists all the events that the TestStand engine and built in process models fire during the course of their executions.
    Many of them have analogous Application, ExecutionView, or SequenceView Manager events.
    I think you'd be most interested in the following:
    UIMsg_DisplayReport–(Value: 29) Post this message when you want the user interface to display the current contents of the execution report.
    Which can be accessed by using the ApplicationManager's or ExecutionViewManager's DisplayReport event.
    Message Edited by Josh W. on 08-31-2009 03:54 PM
    Josh W.
    Certified TestStand Architect
    Formerly blue

  • Exchange value from a running sequence teststand and an independent vi LabView.

    I have a teststand sequence, which runs with a local variable.
    I want to read this local variable in a independent vi.
    Are you an Idea ?

    Sebus,
    I'm not sure what you mean by an "independent vi".
    If you have a VI that TestStand calls, the post entitled In TestStand, how to pass data to LabVIEW will probably be very helpful. In addition, there are Getting Started guides that explain this concept and with TestStand 3.0, there is a whole manual called "Using TestStand with LabVIEW" that walks you through step by step how to use TestStand and LabVIEW together.
    If you have a VI that executes your test, this VI would be considered an Operator Interface. For this situation, you can use the TestStand concept of UIMessages to pass data from your sequence to the operator interface. This is described in more detail in the TestStand help. UIMessages are a TestStand object that you can pass from your sequence to your operator interface. Since the engine actually executes the sequence, you do not have access to the internal sequence characteristics mid-execution. By using the UIMessages, you can have your sequence automatically send data, and then your Operator Interface will retrieve these messages.
    The third scenario is where your VI is not connected to TestStand at all. In this case, if you truly have no connection to TestStand, this is not possible. However, if there is a common shared application then you can use that to pass data. For instance, you could use Datasocket (see DataSocket Overview
    for a brief synopsis) and have TestStand pass the value of the local variable and have LabVIEW read from Datasocket. There is also an ActiveX server that TestStand has called the Synchronization server. This is used internally with the Synchronization step types. However, since it is based upon ActiveX you can use each of the methods and properties that are available; the functions just are not documented. You could use the queue synchronization type to pass data from TestStand to your independent LabVIEW VI.
    If this does not answer your question, please let us know and clarify what you mean by an independent VI. Also, the versions of TestStand and LabVIEW would be helpful.
    Regards,
    Shannon R
    Applications Engineer
    National Instruments

  • Creating TestStand GOTO step programatically using LabView. Problems.

    Hi
    I am trying to programatically create and configure a TestStand GOTO step, using LabView.  I can create the step fine, but I cannot work out how to specify the GOTO Destination.
    Has anybodt got any ideas?
    Regards
    Steve
    There are 10 types of people in the world that understand binary, those that do and those that don't.

    Managed to solve this one myself by setting the CustomActionExpr to 'True' and the CustomTrueActionTargetByExpr to the name of the step I wanted to jump to.
    Steve
    Message Edited by SercoSteve on 01-24-2006 02:13 AM
    There are 10 types of people in the world that understand binary, those that do and those that don't.

Maybe you are looking for

  • How do I use my iTunes on multiple devices?

    I have an old, nearly unusable laptop. This has most if my iTunes on it, those downloaded from cd and purchased, and all my playlists. I also have an ipad which has iTunes but not the cd ones or my playlists. Anything that I have purchased from my ip

  • Customer Ledger

    Hi Experts, I struck in one area while creating Customer ledger report on FIAR. The problem is,I have 'Debit' and 'Credit' amounts.Based on these two i want to generate "Balance" of Customer. In my cube i don't have Opening and Closing Amounts of cus

  • OpenHub Error (Urgent)

    ==== Output of System Commands: Repeat # 0 ==== mv: 0653-401 Cannot rename /interf/BWQ/539/Logility/zdpcdr_co.dat to /interf/BWQ/539/XI_Temp/zdpcdr_co.dat:           A file or directory in the path name does not exist. External program terminated wit

  • System error in program CL_RSD_Multiprov and form GET_PART_IOBJNM_CMP_01

    Hi Experts, iam executing a query on multiprovider, below is the errors im getting..   so my requirement is to save the query as local, in production system..... Error i gt:   1.  Infoprovider was changed or activated at runtime                   2. 

  • FB50 and FB60 posting BAPI

    Hello Experts, As per the GL posting and Vendor Invoice posting, I believe we can use BAPI_ACC_DOCUMENT_POST bapi. I have an input file in which some records need to be posted through FB50 (GL posting) and few others have to be posted through FB60 (V