Utilisation d'énumération sous TestStand 2013

Bonjour.
Je travaille sur un projet sous TestStand 2013 où je dois créer des Step Types à partir d'une dll en .NET.
Certaines fonctions de cette dll appellent des énumérations en entrée (exemple ci-dessous).
Je load ensuite ce Step dans un Type afin de créer un Step Type.
J'aurais aimé que ceux qui plus tard créeront des séquences à partir de mes Step Type accèdent directement à ces énumération dans leur séquence.
Cependant je n'arrive pas à créer de structures équivalentes à une énumération sous TestStand.
J'ai essayé avec des Containers et des Objects Reference mais impossible de faire apparaître un énumération dans le Step Type.
Du coup, j'ai crée une fonction par élément de la liste ("SetBayerPatternBGBG", "SetBayerPatternGRGR", ...) mais ça ne me plaît gère car multipie les Step Type similaires.
Exemple pour la fonction précédente avec le cas BGBG :
Y'a t'il un moyen de créer un paramètre équivalent à une énumération sous TestStand ou de récupérer celle de la dll.net pour la mettre en paramètre d'entrée de mon Step Type ??
Merci.

Bonjour.
Oui, j'avais déjà vu cette discution lors de mes recherches et vu que l'on pouvais utiliser des containers.
Du coup, c'est ce que je m'apprêter à faire
Ce qui m'ennuie un peu avec cette méthode, c'est que je suis obligé de re-créer toutes les énumérations de ma dll sous TestStand. Certaines de ces énumérations comme "Parity" ou "StopBits" proviennent du Framework 4 et j'aurais préféré les utiliser directement. Ainsi, les personnes qui feraient les séquences avec mes Step Type par la suite accederaient directement à l'énumération plutôt que d'utiliser mes containers.

Similar Messages

  • DAQ PXI 6527 sous Teststand

    Bonjour,
    Je travaille actuellement sur le développement d'un programme de test automatique sous Teststand v3.1. Pour cela, je dipose d'un châssis PXI 1045 ainsi que diverses cartes PXI programmables.
    Si je poste ce message sur le forum, c'est parce que j'ai des difficultés à accéder aux fonctionnalités de la carte PXI 6527. En effet, c'est la seule carte pour laquelle je ne dispose pas d'IVI (type Dmm) ou de DLL.
    Je n'arrive donc pas à communiquer avec la carte PXI 6527 sous Teststand.
    Mon objectif est de programmer la carte de façon à ce que je puisse la commander en Tout ou Rien (sortie à 0 ou 5V).
    Comment puis-je réaliser un tel programme sous Labwindows CVI v7.0? Disposez-vous d'exemples?
    Comment utiliser le programme CVI sous Teststand?
    Cordialement,
    Eric59

    Bonjour Eric59,
    Pour ce qui est de l'utilisation d'un code développé avec CVI sous Teststand, je vous conseille de consulter le manuel suivant : http://www.ni.com/pdf/manuals/375070c.pdf
    A partir du chapitre 11, ce document vous explique comment utiliser CVI avec Teststand.
    Concernant la carte PXI-6527, quelques exemples existent que vous trouverez au lien suivant : http://sine.ni.com/psp/app/doc/p/id/psp-152/lang/fr
    Cordialement,
    Celine
    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 LabVIEW
    Du 15 octobre au 7 novembre : Strasbourg - Lyon - Lille - Toulouse - Mar...

  • Dialoguer avec un instrument sous teststand en utilisant le driver.dll

    Bonjour à tous,
    Alors dans un précédent post j'ai essayé de récupérer le pas IVI SpecAn sous teststand----> Pas possible
    Donc nouvelle solution :
    Je veux dialoguer avec mon analyseur de spectre sous teststand
              - Configuer sous le MAX GPIB0::7::INSTR  OK
              - les commandes sous MAX passe bien et l'analyseur répond aux instruction basiques.
    Je passes sous teststand, utilise le driver aéroflex pour l'IFR2399C et le sélectionne.
    Je lances une commande INIT, visualise via NI spy qu'une commande passe via le port GPIB mais l'appareil ne la prends pas en compte.
    En fait commant Teststand peut il savoir vers quel instrument j'envoi ma commande ? A aucun moment je ne passes le paramétre d'adresse ou autre ??????
    Je penses que mon probléme vient de la mais ne sait pas déterminer comment passer le paramétre d'adresse.
    PS : J'ai mis en PJ une vue du driver sous teststand (Ne pas prendre en compte les paramétres inscrits)
    Merci d'avance pour votre aide
    Pièces jointes :
    Sans titre.JPG ‏115 KB

    Bonjour,
    Pour moi, il faut obtenir un "instrumentHandle" (du même nom que le dernier paramètres) avant de faire votre initialisation.
    En général c'est ce genre de fonction ou on passe l'adresse GPIB de l'instrument.
    Dans votre cas vous pointez vers l'adresse 19200 en mémoire qui doit contenir une certaine valeur qui ne correpond pas à une adresse d'un matériel branché sur le bus GPIB.
    Essayez de voir si une fonction de connection est disponible (Connect(), GetHandle(), etc).
    Cordialement,
    Da Helmut

  • DLL pour PXI 6527 (usage sous TestStand)

    Bonjour,
    Dans le cadre du développement d'un programme de test sous TestStand, je suis amené à utiliser une carte PXI 6527 me fournissant mes e/s numériques.
    Cependant, après usage, il s'est révélé m'être impossible de la piloter sans l'utilisation d'une dll, que je ne semble pas posséder et dont je n'arrive pas à trouver trace sur la page web support de la PXI 6527. Pourriez vous de ce fait m'indiquer où trouver cette dll, ou le cas échéant la marche à suivre pour permettre le pilotage de la carte PXI sans celle-ci ?
    Je vous en remercie d'avance, 
    Cordialement

    Si vous souhaitez accéder aux fonctionnalités de votre 6527 depuis Teststand, deux possibilités s'offrent à vous :
    1. Construire un code (Un VI LabVIEW paar exemple), qui sera appelé durant une de vos séquences de test.
    2. Appeler un Assistant DAQ directement depuis Teststand, qui sera appelé dans une séquence de test.
    Je vous invite également à télécharger la dernière version du driver NI DAQmx (dernière en date : 9.6)
    NI-DAQmx 9.6 - Windows 7 32-bit/Vista 32-bit/Server 2008 R2 64-bit/XP 32-bit/Server 2003 R2 32-bit/V...
    Cordialement,
    Vincent.O
    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;}
    Été de LabVIEW 2014
    12 présentations en ligne, du 30 juin au 18 juillet

  • Utilisatio​n d'un analyseur de spetre sous teststand 3.1

    Bonjour à tous,
    Alors voila mon probléme :
    Je travails actuellement sur une baie de test automatisée utilisant Teststant pour séquencer le test et dialoguer avec les différents appareils.
    Jusqu'ici tout va trés bien. Nous souhaitons intégrer un analyseur de spectre sur cette baie.
    Aussi nous décidons de réaliser sur un portable l'intégration de cet analyseur avant de l'intégrer sur la baie de test.
    Installation des drivers IVI Compliance package 4..2 et le nouveau MAX et Teststand 3.1.
    Je configures, me semble t'il, correctement l'analyseur (AEROFLEX IFR 2399C), il est vu par le MAX mais sous teststand, dans la partie IVI, je ne retrouves que les "vieux" driver IVI : DMM, POWER SUPPLY, FGEN.....mais pas de IVI SpecAn.
    Je suis plus qu'embéter car comment faire pour utiliser cet analyseur si je ne retrouves pas le  IVI SpecAN sous teststand ?
    Merci d'avance de votre aide
    ++

    Bonjour,
    En cherchant dans la doc, il semblerait que TestStand ne fournisse qu'un nombre limité de steps IVI, et ne soit pas directement impacté par 'installation de IVI Compliance Package.
    IVI Step Types for TestStand
    Ce qui expliquerait que vous ne trouvez pas la class SpecAn dans les steps proposés.
    En revanche, j'imagine qu'il est possible de créer ses propres steps IVI pour la classe qui vous intéresse, mais je ne saurais vous guider sur le comment.
    Bonne chance.
    Olivier L. | Certified LabVIEW Developer

  • Enregistrer dans un fichier excell les resultats de mesure sous teststand

    Bonjour à tous,
    Voila mon probléme semble trés simple (Et je penses que pour des experts il l'est).
    Je réalise avec un module PXI et teststand une mesure continue de courant en fonction de la température ( Mesure périodique définie par l'utilisateur).
    Le but est d'enregistrer dans un fichier excell les mesures réalisées.
    Y a t'il moyen sous teststand de réaliser cette fonction ?
    Merci d'avance pour votre aide

    Bonjour Gauthier,
    En effet il s'agit d'une question classique. il y a donc plusieures réponses.
    -Excel? Es ce qu'un csv suffirait? Si oui voici un lien ou tout est déjà fait: http://zone.ni.com/devzone/cda/epd/p/id/5854
    -Il est possible de customiser la séquence: reportgen_txt par exemple, et de rajouter des steps pour créer un rapport Excel à savoir: Créer un fichier Excel à partir d'un template, Rajouter les datas contenues dans les variables locales de la séquence (report header/footer/body), puis d'enregistrer le fichier là ou bon vous semble.
    Cordialement,
    Rodéric L
    Certified LabVIEW Architect

  • TestStand 2013 - Edit VI button disabled

    Hello to everyone,
    I am using TestStand 2013 development system, and I also have Labview 2009 SP1 Full development system.
    I introduce a step with a labview action in my sequence. The Edit VI button is disabled, with the message "Requires LabVIEW Development System"...
    Anyone can help me?
    Much thanks for your time and dedication!
    Solved!
    Go to Solution.

    What is your LabVIEW adapter set to?  Is it set to use the development enviornment or is it set to use the run time engine?
    You can check by going to Configure>>Adapters...
    Choose LabVIEW and select Configure
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to Install Inspection Step in Teststand 2013?

    Hello
    I try to install the NI Vision Builder Inspection Step to Teststand 2013. I Installed  NI Vision Builder Automated Inspection 3.6 and Ni Vision Acquisition Software 8.5.1 and I Installed from "ts_vbai_36_and_older_july10.zip" the inspection step to TS2013.(http://www.ni.com/white-paper/4007/en/)
    But when i try to run inspection step connect target i got an error message. (See screenshot)   I dont know what s wrong and how to solve!?

    The only way I can reproduce this error code is by specifying a different version than 3.6.0 in the "VBAI Version".  Tested in TestStand 2010 SP1 with VBAI 3.6.1.
    Attachments:
    VBAIConnect.png ‏21 KB

  • RunState.Caller.Locals.ReportOptions.Directory unknown in Teststand 2013

    Hello,
    I have a problem due to migration between TestStand 4.1.2 and TestStand 2013.
    In previous sequences I used the variables: RunState.Caller.Locals.ReportOptions.Directory, RunState.Caller.Locals.StartDate.Text, RunState.Caller.Locals.UUT.SerialNumber, RunState.Caller.Locals.ReportFilePath and others... without problem.
    Now in TestStand 2013, the variables cannot be evaluated , generates an Teststand error and thus I cannot personnalize my report name and directory.
    Hereafter the complete expression that cause problems:
    RunState.Caller.Locals.ReportOptions.Directory=FileGlobals.Report_Directory + "\\" + RunState.Caller.Locals.StartDate.Text + "\\" + RunState.Caller.Locals.UUT.SerialNumber ,
    RunState.Caller.Locals.ReportFilePath=FileGlobals.Report_Directory + "\\" + RunState.Caller.Locals.StartDate.Text + "\\" + RunState.Caller.Locals.UUT.SerialNumber + "\\" + "Report ["+ RunState.Caller.Locals.UUT.SerialNumber +"][" + Str(RunState.Caller.Locals.StartTime.Hours) +" "+ Str(RunState.Caller.Locals.StartTime.Minutes) +" "+ Str(RunState.Caller.Locals.StartTime.Seconds) + "]" + ".html",
    FileGlobals.UUT_Time = "[" + RunState.Caller.Locals.UUT.SerialNumber+"][" + Str(RunState.Caller.Locals.StartTime.Hours) +" "+ Str(RunState.Caller.Locals.StartTime.Minutes) +" "+ Str(RunState.Caller.Locals.StartTime.Seconds) + "]" , FileGlobals.fileDir=RunState.Caller.Locals.ReportOptions.Directory 
    Thanks for your help.

    If you using these expressions to set the report path and directory, then, do consider using TestStand expression to specify the report path in Report Options dialog. Its lot easier to use compared to setting values to subproperties of Runstate.Caller.Locals.ReportOptions variable.
    You can get more information in the following links
    http://zone.ni.com/reference/en-XX/help/370052K-01/tsref/infotopics/specifyreportfilepath_byexpressi...
    http://zone.ni.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/reports_expressions/
    http://digital.ni.com/public.nsf/allkb/78E88742D0F8C3C5862576D4006B8E44
    Coming to your error, please provide more information regarding which sequence file and sequence did you modify.
    Also note that, in TestStand 2012, process models had major change to support plug-in architecture. Process models without the plug-in architecture (like the one used in TestStand 4.1.2) is installed in "<TestStand>\Components\Models\TestStandModels\TestStand 2010 Process Models (Legacy)" directory. If you want to migrate your process model changes, it might be valid to update the legacy process models instead of new models.
    You can see brief description of TestStand 2012 process model changes in http://zone.ni.com/reference/en-XX/help/370052K-01/tshelp/infotopics/2012whatsnew/#plugin
    - Shashidhar

  • Teststand 2010 code work under teststand 2013

    Hi,
    We have some code developed in Teststand 2010 and planning to migrate to Teststand 2013 by adding some improvements to the existing code.
    Question is will the existing Teststand 2010 code  works fine in Teststand 2013 without any changes?
    please clarify me on this.
    regards,
    Ramjee

    ramjeev wrote:
    Hi,
    We have some code developed in Teststand 2010 and planning to migrate to Teststand 2013 by adding some improvements to the existing code.
    Question is will the existing Teststand 2010 code  works fine in Teststand 2013 without any changes?
    please clarify me on this.
    regards,
    Ramjee
    In general, we strive to make TestStand as backwards compatible as possible, and in many cases you can just open a sequence file in the newer version of TestStand and it will work without any changes. Though since TestStand allows for a wide variety of customization, the ease of the migration somewhat depends on how and what you have customized, for example, process models, step types, etc. might require some additional work to migrate to the newer version of TestStand. There is a migration tool in newer versions of TestStand that should be able to help you with this process when you install on a machine with an older version containing the customizations you wish to migrate.
    Hope this helps,
    -Doug

  • TestStand 2013 ships with invalid SQL scripts

    Hi all,
    I tried to submit this through the official support channel, but ran into this roadblock. So, I'm reporting the issue here.
    =================================================
    I wanted to set up TestStand to log results to an SQL Server 2008 R2 database. I followed the instructions at http://zone.ni.com/reference/en-XX/help/370052M-01/tsfundamentals/infotopics/database_logging/
    I tried to run C:\Program Files\National Instruments\TestStand 2013\Components\Models\TestStandModels\Database\SQL Server Create Generic Recordset Result Tables.sql However, SQL Server reported that the script contains syntax errors.
    To fix the issue, I had to modify the script (replace "//" with "--", and replace "~" with ";") before running it.
    It looks like other scripts in this folder have syntax errors too. Please fix the SQL scripts shipped with TestStand.

    Hey JKSH,
    Thanks for reporting this--we've filed an internal report for one of our developers to examine the syntax of our SQL files.
    In the meantime, it sounds like you were able to work around the issue by changing the characters in the scripts, but have you run into any other problems using the scripts? I'd be happy to help out in any way I can. Just let us know if there's anything we can do to assist!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • DCOM problem Teststand 2013

    I receive attached error everytime i try to launch Teststand 2013 on a PC i recently installed. 
    My user is administrator and the operating system is Windows 7 Pro.
    I tried all the instructions at http://digital.ni.com/public.nsf/allkb/ABA98DF5D5A824DB862570AD007C55E7 but it still doesn't work.
    I never received such an error before for my many previous installations
    Please help me on that
    Attachments:
    Adsız.jpg ‏310 KB

    Hey hedehodo,
    As a first step, could you try running the TestStand Version Selector and setting TestStand 2013 to be the active version, even if the Version Selector already reports 2013 as active? This operation re-registers TestStand components with the operating system and can sometimes resolve these types of issues.
    I would also recommend restarting the machine--this can often reset the configuration to a working state.
    Let us know how it goes, and we'll be happy to help you troubleshoot further if needed.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Difference de comporteme​nt entre debug et release sous Teststand

    Bonjour,
    J'ai realisé une sequence teststand que je lance à partir de cvi. Je travaillais en mode debug et jusque la tout va bien. Cependant quand je passe la sequence en mode release et que je l'execute depuis CVI, le comportement est différent (je commande un lecteur de code a barre qui ne fonctionne alors plus en release)? Pourquoi?
    Chose etrange, si j'execute directement lasequence sous testand en release sa fonctionne? Ou est alors le souci?
    Merci d'avance por votre aide
    Florence D.

    Running the script by python2 solves it for me:
    su - mythtv -c "nice -n 19 python2 /usr/bin/tv_grab_nl_py --output ~/listings.xml"
    Best regards,
    Cedric

  • Teststand 2013 is losing .seq extension in sequence editor.

    Hi,
    After I load my *.seq file and perform a couple of editing tasks and run it a few times it loses its extension and saves it as just file name, no extension. Then I am getting all sorts of error messages that my file was edited outside of the environment etc.
    I fix it by forcing Save As and saving it manually. A little annoying. I thought it was related with creating a link to my seqeunce on my desktop, so I started running TestStand and then opening the sequence but that did not help. Any ideas?
    Thanks
    CT
    Attachments:
    Capture.PNG ‏21 KB

    Hi Cimteker,
    Can you make sure that there is no duplicate directory where the file gets saved. Like you have mentioned on the desktop. Can you delete that, and keep only one directory, and try again. What happens?
    Also maybe deleting and rebuilding the ini file might fix the problem. See below:
    If you have already seen a error -17500, and are unable to open any of the TestStand pop-up menus by right-clicking, the easiest way to fix the errors is to delete the <TestStand>\Cfg\TestExec.ini file. Note that this fix will not work if you saved your type palettes after seeing the -17500 errors. For best results, always shut down TestStand without saving files when you encounter this error.
    Repair:
    Since the TestExec.ini file contains all of the information that the application uses to build menus, removing this file will erase the source of the error. When TestStand cannot find this file at start-up, it will rebuild it using the default menu setup. You will see a fresh copy of the file located in the Cfg folder. Once this file is rebuilt you should be able to navigate your menus as before. Once you have restarted TestStand, you may see that your custom step types are missing from the MyTypes.ini file. To get the file to refresh itself, browse to the <TestStand>\Cfg\TypePalette folder and open the MyTypes.ini file in any text browser. Save the file without making any changes. TestStand detects the type file again and loads it into memory. Your custom types will be as they were last saved, so you may need to look for them in their original group locations.
    Prevention: 
    The simplest way of avoiding this error is to make use of the Submenu Display Name Expression. You can access the Submenu Display Name Expression field by right-clicking on a step type in the Type Palette window and selecting Step Type Menu Editor. This field is only available when you have selected a group rather than a type. When you create new groups, this expression is blank by default. This expression is used by TestStand in order to sort groups by name when writing them to the TestExec.inifile and generating menus. Therefore, if there are several groups named "" (essentially groups with no name) then TestStand may be unable to distinguish among them. Enter any unique name in the Submenu Display Name Expression for every group before renaming or moving it to a new location.
    National Instruments
    Applications Engineer

  • Est-il possible de charger un fichier excel sous teststand puis d'éditer et analyser les données contenues?

    Bonjour,
    Je suis en stage, et on est en train de se décider si l'on va acheter le logiciel Teststand pour réaliser des tests automatisés.
    Avant cela, je voudrais savoir s'il était possible de charger un fichier excel puis d'analyser les données contenues dans celui-ci grâce à ce logiciel sachant que le fichier pourrait contenir des int, double, char, char*.
    J'ai essayé de faire cela avec la version d'évaluation mais sans grand succès, je n'arrive même pas à charger le fichier excel.
    Merci d'avance pour vos réponses et bonne journées à vous
    Cordialement
    Jocelyn Gaté
    Stagiaire MGEUPS by Schneider electric 
    Montbonnot, 38, France 

    see http://forums.ni.com/ni/board/message?board.id=330​&message.id=24426&jump=true
    It's not a good idea to post duplicate messages, its better to send one post with the post in two languages.
    Ce n'est pas une bonne idée d'envoyer des messages en double, de son mieux pour envoyer un message avec le message en deux langues.
    [Google translation]
    Regards
    Ray Farmer
    Regards
    Ray Farmer

Maybe you are looking for