Script to sequence conversion

Hi,
I would like to know if it would be possible to convert a text based test script to a TestStand sequence? The conversion program would be developen with LabVIEW.
The test script would have a syntax similar to Perl. We would like to be able to declare variables, include for, if-then-else and while statements.
For example a non TestStand programmer could write this script:
$count = 10;
$instrumentAnswer
instrumentAnswer = ReadInstrument(0,1)
while ($instrumentAnswer >= 0 and count >= 0) {
WriteInstrument(0,1)
instrumentAnswer = ReadInstrument(0,1)
WriteInstrument(2,10)
instrumentAnswer = ReadInstrument(6,0)
$count--;
Do you think it is possible and do you have any hints on how to do this?
Thanks!
-M

Hi M,
It sounds like the hint that you're looking for is most likely a Sequence File Translator. This tool allows you to load sequence files with your own custom file formats. There's a good 16 pages of information about how to implement these that can be found in Chapter 15 of the TestStand Reference Manual. You can find this manual by going to: Start»Programs»National Instruments»TestStand 4.0»Online Help»Manuals»TestStand Reference Manual.
Here's also another long thread on this issue that you might find useful:
http://forums.ni.com/ni/board/message?board.id=330​&message.id=17873&requireLogin=False
Have a good day!
Lars

Similar Messages

  • Sequence conversion

    Hello:
    I am trying to convert a LabWindows/CVI sequence file to TestStand but
    I get warnings/errors when opening or running the sequence in TestStand.
    After converting the file I do a File->Open in the TestStand Sequence
    Editor and I get a "Open Sequence Warning" popup listing a bunch of items
    it was unable to load due to undefined references.
    When I attempt to run the sequence I get the following error:
    Unable to get standard CVI step module address.
    A CVI code module has unresolveable external references.
    Error Code: -17709
    The sequence file is pointing to an OBJ file. Do I have to rebuild the
    object file prior to conversion or something?
    We are attempting to migrate from CVI to TestStand and there will be a
    lot of sequenc
    e conversion taking place. I am doing the pilot and trying
    to document the procedure.
    The User Manual, page 4-31, says to refer to the online help under
    "Converting From the Labwindows/CVI Test Executive to TestStand" but
    I couldn't find anything in the windows help file or on the net.
    Thanks for any help.
    -Steve
    Steve Heitke Tellabs Operations, Inc.
    [email protected] Advanced Test Methods
    http://www.tellabs.com Bolingbrook, IL 60440

    Steve,
    Your object files probably depend on other object files or support libraries
    that haven't been loaded. When you ran from the test executive, you included
    them in the CVI project so they were preloaded.
    TestStand is a little different because it isn't a CVI project that you build
    into an application. Instead, you need to configure the CVI adapter to pre-load
    your support libraries. Select Configure>>Adapters. Select the CVI Std
    Prototype Adapter and click Configure. In the CVI Std Adapter Configuration
    dialog, press the Configure Auto-Loading of Support Libraries Needed for
    linking Objs and Libs. Add all your support libraries to this dialog. TestStand
    will copy your files to the TEstStand\AdapterSupport\CVI\AutoLoadLIbs directory
    where they can be preloaded.
    It is often tricky to figure out which support libraries you need. For this
    reason, NI and Microsoft encourage people to use DLLs instead. DLLs can
    be loaded dynamically, and by default, the OS loads them for you. Usually,
    you just leave DLLs in the same directory as the executable or the WIndows\System32
    (\System for Win95/98).
    Let us know if this doesn't work out.
    Paul Mueller
    National Instruments
    Steve Heitke wrote:
    >Hello>I am trying to convert a LabWindows/CVI sequence file to TestStand
    but>I get warnings/errors when opening or running the sequence in TestStand.>>After
    converting the file I do a File->Open in the TestStand Sequence>Editor and
    I get a "Open Sequence Warning" popup listing a bunch of items>it was unable
    to load due to undefined references.>>When I attempt to run the sequence
    I get the following error> Unable to get standard CVI step module address.>
    A CVI code module has unresolveable external references.> Error Code:
    -17709>>The sequence file is pointing to an OBJ file. Do I have to rebuild
    the>object file prior to conversion or something?>>We are attempting to migrate
    from CVI to TestStand and there will be a>lot of sequence conversion taking
    place. I am doing the pilot and trying>to document the procedure.>>The User
    Manual, page 4-31, says to refer to the online help under>"Converting From
    the Labwindows/CVI Test Executive to TestStand" but>I couldn't find anything
    in the windows help file or on the net.>>Thanks for any help.>>-Steve>--
    >________________________________________________________________________>
    Steve Heitke Tellabs Operations, Inc.> [email protected]
    Advanced Test Methods> http://www.tellabs.com
    Bolingbrook, IL 60440>________________________________________________________________________

  • Calc Scripts in sequence

    Hi All,
    We have requirment to run some calc scripts in sequence as they are dependent. If we merge all the scripts in one script then due to dependency calculations are not done or not giving proper result.
    Is there any way so that calculation scripts are setup in sequence in one calculation script and Script One provides details to the Script Two and so on. We do not want to use the Business rules due to the considering the security assignment which will be very tedious job.
    Thanks & Regards,
    Sravan Kumar.

    Business rules and sequences would be the correct procedure to use with Planning.
    Though I don't see how running separate calc scripts is going to be different that putting them in one calc script, that doesn't make any sense.
    If you want to run the calc scripts in sequence then you could batch them up using maxl.
    I am not sure what information you want to pass between calc script but you can use subsitution variables that be used in either script.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Run Powershell Script task sequence

    Hi,
    Anyone have good documentation on how to use the Run PowerShell Script task sequence ?
    Thanks

    If you are just interested in running a powershell command without creating a package, you can do this with the the Command line step by using this format in the command line:
    PowerShell -ExecutionPolicy bypass -Command "& {your powershell commands}"
    Here is an example of a multiline command to increase the agents cache size. Notice the ";"'s which are used to delineate a new line.
    PowerShell -ExecutionPolicy bypass -Command "& {$UIResourceM gr = New-Object -ComObject UIResource.UIResourceMgr;$Cache = $UIResourceMgr.GetC acheInfo();$Cache.TotalSize = "20480"}"

  • Merging Script for Sequences of Pictures

    Hi,
    from my panorama rendering passes, I receive picture sequences (picture.0001.png, picture.0002.png ...), where I need to
    * import each pic of the sequence,
    * crop it with a fixed value
    * place all next to each other from left to right and then
    * save the final pic as .png (incl. mask if exists)
    * with the same name but numbered as picture_01, picture_02 ... continuing the order of existing final pictures. 
    * All cropped pics of the sequence constitute the width of the final pic.
    * After finishing I need it to show me the final pic and
    * ask me if I want to delete all pics of the sequence ...
    * while enabling me to navigate in the the final pic before I make my deletion decision.
    Since I can't do this with recording an action, I think this can be achieved with a script. I made a quick breakdown of the steps here.
    I did some javascript longer time ago and can understand stuff, but am too new bee to get this off the ground. Would be great if someone help me to set this up right.
    Thx,
    Frank

    Hi Lasantha,
    Please refer to the following post related to renaming user profile thumbnail.
    https://blogs.blackmarble.co.uk/blogs/rhepworth/post/2010/07/29/powershell-script-to-rename-files-for-use-as-sharepoint-2010-user-profile-thumbnails.aspx
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • Custom Transformations Scripts: Creating sequences and synonyms

    Is there a way in Data Modeler to script the creating process of sequences and synonyms. I've already found how to create columns in a table, but is it also possible to create sequences and synonyms for tables? I've looked it up in the XML Metadata, but I didn't found where I was looking for? Can anybody help me?

    no documentation, it should be possible:
    seq = model.getStorageDesign().getSequenceSet().createSequence();
    syn =  model.getStorageDesign().getSynonymSet().createSynonym();make sure physical model is open and that model is set as physical model to your relational model. That's for Oracle
    Philip

  • 24p to a 30 fps sequence conversion

    24P to 1080i/30fps
    Hello everyone. I am trying to combine footage shot on the SDX 900 at 24p with footage shot on the HPX 500 at 1080i/30fps
    My sequence is 30 fps.
    The 24p looks jerky & I am not sure what to do.
    Does anyone have any suggestions?
    Regards
    Bonnie

    So you are mixing SD and HD in the same sequence.
    The SDX 900 shot at 24P actually prints to tape at 29.97 inserting a 2:3 pulldown for a "Film Look"
    Depending on how it was captured it is natively 720x480 interlaced at 29.97 and will have a judder to the footage due to shooting format. The HPX shot at 1080i30 will be native 1080 x 1440 at 29.97 fps with no pulldown.
    If you have access to a Kona capable of upconversion or MatroxMXO2 you can upconvert the SDX footage to 1080 on input and maintain a DVCProHD1080i 29.97 codec. It upconverts quite nicely however it will still have a 2:3 puldown. If you don't have access to a capture card upconvert you could drop in your selects from the SD footage into compressor and convert via software to dvcProHD 1080i with a 29.97 timebase

  • MDT 2012 Errors - Won't Run My Windows 8.1 Activation Script/Task Sequences Fail

    Hello all,
    I've been using MDT 2012 for a while now to image machines in our environment with success for the most part. Just recently, however, I've been running into issues at the point where the deployment is supposed to be activating Windows where it will just fail the deployment. It outputs a number of errors, including:TextWindows cannot remove Microsoft.VCLibs.120.00_12.0.20812.1_x86__8wekyb3d8bbwe because the current user does not have that package installed. Use Get-AppxPackage to see the list of packages installed.NOTE: For additional information, look for [ActivityId] 5f3738f0-b9a2-0001-0581-375fa2b9d001 in the Event Log or use the command line Get-AppxLog -ActivityID 5f3738f0-b9a2-0001-0581-375fa2b9d001]LOG]!+ Get-AppxPackage -AllUsers | Remove-AppxPackage+ ~~~~~~~~~~~~~~~~~~]Which I'm familiar with because I've seen this...
    This topic first appeared in the Spiceworks Community

    Hi,
    Thanks Again for taking a look.
    I checked the sysprep log in the image and they look fine. No errors.
    As requested here are some logs. Let me know if I can provide anything else.
    BDD.log
    litetouch.log
    SMSTS.log
    Im not actually attempting to provide a recovery image. What I am doing is leveraging MDT to refresh the computer remotely. We can update the MDT media on the hidden data partition,when required and kick it off remotely. Some of the computers are very
    remote, and without SCCM DP's, plus a combination of slow links and a lack of deskside techs made this a requirement. This works without incident.
    The only issue I have is on a new computer if I run the sequence (offline USB media) it will fail the first time, unless I run a diskpart clean in PE first.. Then it will succeed. Refreshing the computer is fine.

  • Help scripting batch sequence

    Hi,
    Im new to adobe acrobat and to scripting in general so this will probably be a really easy question ( and hopefully answer)
    So,
    I have this script to batch stamp files
    /*Insert Stamp*/
    var annot = this.addAnnot({
    page: 0,
    type: "Stamp",
    name: "Stamp PL",
    rect : [550,700,455,700],
    contents: "Released",
    DP: "stamp" });
    However when I try to run it again'st a User defined space ( landscape) vs. ( Default space) the stamp comes vertically ( because it follows DUS)
    I do not know how to script it so that the stamp follows user defined space ( so that it rotates-not 3d, just a stamp horizontally on the page)
    Also if anyone could explain how the location page works, in terms of what does the numbers inside rect ;[] mean. I have just playes until I got it where I need to but If I could get a proper definition. Thanks
    Hope anyone can help.
    Thanks
    lusin

    That article links to a sample PDF that demonstrates some code and directs you to the JavaScript documentation where you can find
    samples such as: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/BatchSeq_Examples.97.24.html

  • Quantity field conversion problem in SAP script

    Hi experts,
    I have problem with sap script quantity field conversion.
    In purchase order the actual value of field( MDPM-ERFMG) is 3,500.
    But in Print preview it is showing only 3.5
    Any one Please help me in this problem
    thanks in advance
    murali

    Hello,
    check this:
    Number of Decimal Places
    A program symbol of one of the data types DEC, QUAN, and FLTP can contain decimal place data. Use the option below to override the Dictionary definition for the number of decimal places for the formatting of this symbol value.
    Syntax
    &symbol(.N)&
    The EKPO-MENGE field contains the value 1234.56. The Dictionary definition specifies 3 decimal places and an output length of 17.
    &EKPO-MENGE& -> 1,234.560
    &EKPO-MENGE(.1) -> 1,234.6
    &EKPO-MENGE&(.4) -> 1,234.5600
    &EKPO-MENGE&(.0) -> 1,235
    REgards,
    Vasanth

  • Many sequences/trigger creations in one script?

    Hallo,
    I want to put some trigger creations in one script, but SQL*Plus doesn't create many triggers, it does create one trigger with compilation errors. When I only use one trigger creation statement alone (and this for all triggers after eachother), all works fine without any errors.
    This is my script:
    create sequence table1_seq;
    create sequence table2_seq;
    -- for Table 1
    create or replace trigger table1_ins_trig
    before insert on TABLE1
    for each row
    declare
    seq_val NUMBER(9);
    begin
    select table1_seq.nextval into seq_val from dual;
    :new.TABLE1ID := seq_val;
    end;
    -- for Table 2
    create or replace trigger table2_ins_trig
    before insert on TABLE2
    for each row
    declare
    seq_val NUMBER(9);
    begin
    select table2_seq.nextval into seq_val from dual;
    :new.TABLE12D := seq_val;
    end;
    All sequences are created and trigger for table1 with errors. When I use the trigger statements separately, all works. How can I use many trigger creations in one script?
    Regards
    Stephan Schneider

    You have to end each pl/sql block with a slash:
    create or replace...
    begin
    end;
    create or replace...

  • Calling mx:Sequence from mx:Script?

    I want to have a search form that has a "Show More Search
    Options" and a "Show Less Search Options" and when this LinkButton
    is clicked I do the following:
    1) Fade in/out a grid of more search fields.
    2) Lower/Raise the LinkButton to accommodate the space that
    the grid takes up.
    I could just move the button, but I'd like to add an effect
    for the move and a pause, therefore I am using a mx:Sequence so I
    can put in the pause because I want the button to move back up
    after the grid has faded out (which is about 1 second).
    I am brand new to Flex & AS3, so I may not be doing this
    the best way but here is a snippet what I have so far.
    quote:
    public function showMoreOptions(btn:LinkButton):void{
    if( btn.label == "Show More Options"){
    grdMoreOpt.visible = true;
    btn.label = "Show Less Options";
    btn.move(btn.x, btn.y+50);
    }else{
    btn.label = "Show More Options";
    grdMoreOpt.visible = false;
    btn.move(btn.x, btn.y-50);
    ]]>
    </mx:Script>
    <mx:Sequence id="slideBtnUp">
    <mx:Pause duration="1000"/>
    <mx:Move xBy="0" duration="1000"
    easingFunction="Bounce.easeOut"/>
    <mx:Move yTo="50" duration="1000"
    easingFunction="Bounce.easeIn"/>
    </mx:Sequence>

    I found the answer to my own question, this example does
    exactly what I want.
    http://livedocs.adobe.com/flex/3/html/help.html?content=transitions_2.html

  • Arabic Character set conversion-help needed

    We have our main database running in 10g (Solaris o/s) & planning to move these to RAC 11g.
    One of our old oracle DB(8.0.5)/solaris, which is not used till recently need to upgrade to 10g Rel2.
    I know Supported direct upgrade 8.0.6/8.1.7/9i -> 10g
    Current DB: 8.0.5 (Character Set: AR8ISO8859P6)
    Target DB : 10g Rel 2 (Character Set: AR8MSWIN1256)
    I am thinking to go the following way by using exp/imp
    8.0.5(AR8ISO8859P6) -> 8.1.7(AR8ISO8859P6) -> 10G(AR8MSWIN1256)
    OR
    8.0.5(AR8ISO8859P6) -> 8.1.7(AR8MSWIN1256) -> 10G(AR8MSWIN1256)
    please advice
    thanks

    (1) At source db 8.0.5 (solaris)
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-YY
    NLS_DATE_LANGUAGE AMERICAN
    NLS_CHARACTERSET AR8ISO8859P6
    NLS_SORT BINARY
    NLS_NCHAR_CHARACTERSE T AR8ISO8859P6
    $set NLS_LANG=AMERICAN_AMERICA.AR8ISO8859P6
    $exp sys/dba file=full251109.dmp full=y
    (2):>> At target db 10g R2 (solaris)
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RRRR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_CHARACTERSET AR8ISO8859P6
    NLS_SORT BINARY
    NLS_NCHAR_CHARACTERSET UTF8
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    $export NLS_LANG=AMERICAN_AMERICA.AR8ISO8859P6
    $imp testdba/testdba file=full251105.dmp fromuser=PROFINAL touser=PROFINAL
    *$csscan testdba/testdba FULL=Y FROMCHAR=AR8ISO8859P6 TOCHAR=AR8ISO8859P6 LOG=P6check CAPTURE=Y ARRAY=100000 PROCESS=2*
    There is EXCEPTIONAL DATA in .err file+
    clients accessing 8.0.5 dataabase uses characterset AR8IS08859P6, which is SAME as 8.0.5 database
    -CSSCAN result->>[Database Scan Parameters]
    Parameter Value
    CSSCAN Version v2.1
    Instance Name MIG1
    Database Version 10.2.0.1.0
    Scan type Full database
    Scan CHAR data? YES
    Database character set AR8ISO8859P6
    FROMCHAR AR8ISO8859P6
    TOCHAR AR8ISO8859P6
    Scan NCHAR data? NO
    Array fetch buffer size 100000
    Number of processes 2
    Capture convertible data? YES
    [Scan Summary]
    Some character type data in the data dictionary are not convertible to the new
    haracter set Some character type application data are not convertible to the new characters
    [Data Dictionary Conversion Summary]
    Datatype Changeless Convertible Truncation Lossy
    VARCHAR2 2,235,403 0 0 *1,492*
    CHAR 1,097 0 0 0
    LONG 155,188 0 0 6
    CLOB 24,643 0 0 0
    VARRAY 21,352 0 0 0
    Total 2,437,683 0 0 1,498
    Total in percentage 99.939% 0.000% 0.000% 0.061%
    The data dictionary can not be safely migrated using the CSALTER script
    [Application Data Conversion Summary]
    Datatype Changeless Convertible Truncation Lossy
    VARCHAR2 16,986,594 0 0 *1,240,383*
    CHAR 164,114 0 0 0
    LONG 7 0 0 0
    CLOB 1 0 0 0
    VARRAY 1,436 0 0 0
    Total in percentage 93.256% 0.000% 0.000%
    6.744%
    [Distribution of Convertible, Truncated and Lossy Data by Table]
    USER.TABLE Convertible Truncation Lossy
    PROFINAL.BASE_MASTER_DATAS 0 0 *362,003*
    PROFINAL.CODE_ALLOW 0 0 *53*
    PROFINAL.CODE_ALLOWANCE_TYPES 0 0 *1*
    PROFINAL.CODE_BONUS_TYPES 0 0 *2*
    PROFINAL.CODE_BRANCHES 0 0 *2*
    PROFINAL.CODE_CERTIFICATES 0 0 *94*
    Kindly help,,,
    Edited by: userR12 on Nov 25, 2009 1:43 AM
    Edited by: userR12 on Nov 25, 2009 1:52 AM

  • Timing Issue - Running sqlplus for each script in a list of scripts

    I have a large number of folders with sql scripts that I need to run from windows with sqlplus. The problem is the scripts must be run in order. When I loop through the scripts and run sqlplus for each one, they sometimes fail because things in the prior script are not yet available.
    So I added a jdbc client that checks a table for when the data is available from the prior sqlplus script. It says yes the data is visible in the table so the script can launch the next SQLPlus process but it fails unless I put a 2 second sleep in.
    Because sqlplus doesn't have a "CD" command and there are limitations with SQL_PATH and relative imported child scripts, I'm afraid I'm stuck with running multiple sqlplus sessions.

    I should clarify that I'm looking for a way to run scripts in sequence with sqlplus. There is an issue where one sqlplus session commits and exits and the next starts but the commit is not yet available to the new sqlplus session. To me this is a bug with sqlplus but maybe someone can explain how this is a "feature".

  • Batch Conversion of PDF to Postscript

    I've been trying write a script for Batch conversion of PDF to PS files, using "silent" printing. I'm apparently missing something, because acrobat keeps crashing after executing the script (and the .ps files are not being created). Its also still prompting me for a filename. Not really sure of the syntax for keeping the same filename? I'm new to java script, so I'm sure its something I have wrong. My code is below, if anyone can help me out. I'm using Acrobat 7.0.9
    this.print ({bUI: false,bSilent: true,bShrinktoFit: true,});
    var pp = this.getPrintParams();
    pp.interactive = pp.constants.interactionLevel.automatic;
    pp.printername = "Xerox Docuprint 92C NPS PS2 C1";
    pp.filename = "c:\temp\$filename$.ps";
    this.print(pp);
    Thanks

    Why are you calling the print method twice?
    Your syntax in the first call to print is in error. You have a comma after bShrinkToFit: true which is telling the JS interpreter to expect another argument.
    Use this for filename (not the capital N in filename ... use proper case for property names):
    pp.fileName = "/c/temp/" + this.documentFileName + ".ps";
    Also, when printing to PostScript you shouldn't specify a printer name. Use this (again, note the proper case for properties):
    pp.printerName = "";
    It says exactly this in the documentation for the fileName property of the PrintParams object. I suggest you read the documentation relating to the methods you're trying to use ... always a good place to find answers.
    > When printerName is an empty string and fileName is specified, the current document is saved as a PostScript file.
    Although it may not consider C:\temp a "safe path" (I can't remember off the top of my head). You'll want to read the documentation regarding JavaScript "safe paths". If it is still prompting you for a filename it is most likely ignoring your path due to security restrictions.

Maybe you are looking for