Custom step to Open edit expression when placed in sequence

In TestStand 3.5 is it possible to create a custom step type (from a copy of label step type) that automatically opens the "edit label step.." GUI when placed in a sequence?
Thanks,
Jason
Solved!
Go to Solution.

All -
Why not just capitalize upon the capabilities of the OnNewStep substep? 
Create your new step type (a copy of your existing Label step).  Notice that it already has as its substep an Edit step - this is what is invoked when you launch the Edit Label Step dialog.  
Now, create a new Custom substep and name it (this is mandatory) OnNewStep.  Specify its Module and mimic the Edit Substep exactly.
Now, whenever you create a new Step instance of this type, the OnNewStep substep will be invoked!  And you don't even have to modify the CommonSubsteps.dll.
A cool trick - this is how we do things like programmatically create End steps for many Flow Control steps...
Message Edited by DRock on 02-24-2009 07:44 AM
Derrick S.
Product Manager
NI DIAdem
National Instruments
Attachments:
OnNewStep.png ‏28 KB

Similar Messages

  • Creating a step type "launcher" that would insert the appropriate built-in or custom step type at edit time

    Hi everybody,
    I'm looking for tips, pointers,directions... to be able to perform this operation in TS 4.0 sequence Editor, if it's even possible...
    I'm managing a test system with a "home-made" virtual instruments abstraction Layer complementary to IVI classes for instruments which do not have classes defined, customizing the sequence editor accordingly for developpers of my department.
    So basically when the instrument is IVI, the developper uses the built-in IVI step-type type and when it is not, he uses the the custom step types that I developped for this particular class of instruments.  
    However there are classes where I do have both IVI and specific drivers available and I do need to use both in the test sequence.
    For example let's say there are two sources of DC power available in the testbench, one being a programmable IVI compliant DC power supply, and the other one composed of fixed "blocks" of DC power supply managed by externals relays and you need to use them both in the test sequence.
    What I would like to be able to do in the sequence editor is inserting the appropriate step type at edit time just by selecting the source of power supply (by a ring or enum for eg), and if the first ressource is selected, it inserts IVI step type, and if the second ressource is chosen, it inserts the appropriate custom step type.
    Any Ideas on how to accomplish this ?
    Regards,
    Cyril
    Cyril Bouton
    Active LabVIEW Developper
    Solved!
    Go to Solution.

    Hello Cyril,
    Here is an idea that could be done:
    You could create a dynamic step by having a step that holds all the properties for both configurations (the superset of the necessary variables) and an extra one that indicates which 'mode' the step is in.  Then you create the main Edit substep in whichever language you desire.  That substep window will then have a box/dropdown/etc. at the top you can use to choose between modes A & B.  When the user changes the value, you would dynamically change the rest of the window to contain the appropriate properties for mode A or B.  You then copy the property values in that window to the Step properties, and copy the mode to your variable and you can run the step in that mode.  When the step then runs, it checks the mode variable, and depending on its value, it will run the step in mode A or B.
    Now we could add a dialog that allows us to choose when we put a step down but we should still allow the user to change later via the Edit substep we create.
    I don't think we can create something that inserts a completely different step, but we can have one step that has the ability to do both and we can pick which one we execute.  Also note we still don't have the ability to edit the Panels for a step, so we have to use a new window that we call from our Edit substep to complete the step.
    Hope this helps.
    Regards,
    Olivier L. | Certified LabVIEW Developer

  • Can we add custom steps by default in startup,main and cleanup sequence

    I have made some of the custom steps which i want by default to be included in start up,main and clean up sequence when ever i press for a new sequence. I am using teststand4.0.Cna any help mein this regard.

    Hello kpraveen,
    Ray is correct in that you would need to create a Sequence File that loads a new sequence file into memory, then adds the specified step to the setup, main, and cleanup step groups of the new sequence files main sequence, and finally loads the new sequence file into the Sequence Editor. I've gone ahead and put together an example sequence that implements
    this. This example sequence places a Message Popup step in the setup,
    main, and cleanup step groups of a new sequence file (name will be
    "<no path>") loaded into the Sequence Editor. Once you've modified this sequence to load your custom steps, it is up to you where you place it for use in the toolbar. 
    As Ray suggested, I believe the Tools Menu would be the best place to have this feature since the Tools menu is not process model dependent. To add this option to the Tools Menu:
    1. Go to Tools»Customize.
    2. In the Items Text field select where you want to place this option in the Tools Menu list and click Add.
    3. In the Add Tools Menu Item window, select Sequence as the Item Type from the drop down menu.
    4. Browse to New Custom Sequence File.seq in the Sequence File field then select Main Sequence in the Sequence field.
    5. Click OK to exit the Add Tools Menu Item window.
    6. In the Customize Tools Menu window, change the name of your Tools option in the Item Text Expression field. For example I changed the Item Text Expression field to "New Custom Sequence File". 
    6. Click OK to exit the Customize Tools Menu window.
    7. Now if you go to Tools, you should see the New Custom Sequence File option and once clicked, it should load a new sequence file with your specified steps in the Setup, Main, and Cleanup step groups.
    This should get you on your way kpraveen. Good luck! 
    Manooch H.
    National Instruments
    Attachments:
    New Custom Sequence File_40.seq ‏5 KB

  • Imported AIFF audio sounds bad when placed in sequence (HD Editing)

    I've recently switched from DV-NTSC editing to HD (set-up for HDV 1080i60 in FCP). At first I had problems getting Final Cut to capture the video, but read a thread that suggested to trash my Final Cut preferences folder. I did, and it corrected my capture problem, but now I have a new problem. When I import .aif (or AIFF however you want to call it) it sounds fine when I play it in the FCP viewer, but when I drag it into the timeline it sounds choppy, a bit slow, distorted, and it's peaking bad. I made sure my QT conversion to AIFF is 44.1 kHz 16 bit Sterio, but doesn't make any difference. I've messed with levels, the audio playback settings, and a few other things that haven't helped. I've spent hours on discussion threads, and finally gave up to ask you experts out there. I would appreciate any advice!
    PowerBook G4 Mac OS X (10.4.8) Final Cut Pro 5.0.4, QT 7.1.3

    Even at 48kHz, 16 bit Stereo...same issue. To me, Final Cut shouldn't really be that finicky with whether the AIFF is mono, sterio, or even the bit rate for that matter. The big question to me is, why didn't Final Cut care when my default setting was NTSC DVPRO, but now it cares when my default setting is HDV 1080i60? I see that my 1080i video (audio) is at 48 kHz, 16 bit sterio (which plays fine in the sequence) but the imported audio (same format) does not. I'm stumped.

  • Failed to open PDF file when placing a PDF in Indesign CS5

    I am also having an issue when I am able to place the PDF that the bleed isn't showing up and the crops aren't either

    The failure dialog usually means the import options are set to crop to one of the options that isn't defined for that particular file, and changing the crop options to one that isn't grayed out should work. To show bleed and marks, first they must be present in the PDF, and second your choice of crop option must be large enough to include them. Media would be my choice for that.

  • Additional Results Custom Step using Variables in Name and Value to Log expressions?

    I am trying to create a Custom Step Type for logging additional results - requiring a single Name and Value data pair included in the step.
    I want to pass the name and value data in using two specific variables.
    This functionality can of course be explicitly coded on a test step without problem, but I can't find a way to create a custom test step which inserts such a step i.e. automatically inserting the correct variable names into Name and Value to Log fields.
    Any ideas how to accomplish this? I don't want the custom step users to have to type in the variable names every time they use it.
    I am using TestStand 4.1.1
    Message Edited by CIM1 on 04-20-2009 07:26 AM

    Hi CIM1,
    There are a few ways of doing this.
    The simplest one would be to configure the expression in the Pre-Expression or Post-Expression (depending on whether you would like the Step Type to use the value in the variables or write the value to the variables) and then from here you can lock away the expressions from being edited. The caveat with this method is that you are obviously restricing the Pre/Post-Expressions for the step type. 
    Another Method would be to code some code modules to Write to/Read from the Variables and then calling these in the Steps Pre-Step SubStep or Post-Step Substep. The advantages of this method would be that you can search for the Variable, and if the variable is not present, you could create it before writing to it.
    Hope this Helps.
    Best Regards,
    Steve H 

  • Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

  • When I open logic express 8 with eyetv open but not active and i close logic express 8 and make eyetv active it won't show closed captioning even though closed captioning is turned on

    when I open logic express 8 with eyetv open but not active and i close logic express 8 and make eyetv active eyetv won't show closed captioning even though closed captioning is turned on.  When I totally close eyetv and reopen eyetv and open a live tv window the closed captioning comes back.  I never noticed this with os leopard, Just after i installed os snow leopard.  All software is up to date only I think, thanks to apple they droped support for logic express.  Thanks for any suggestions.

    Does toggling CC off & back on bring it back?
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • How do I sync my iPod to iTunes? I've used the final steps from Article HT1329, but when I open my iPod there is no "iTunes" folder.&#160; Please help!

    How do I sync my iPod to iTunes?  I've used the final steps from Article HT1329, but when I open my iPod there is no "iTunes" folder.  Please help!

    Ah I see. That folder would only be there if you had perfomed the earlier steps in that section.
    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
    tt2

  • I just upgraded from Express to Pro.  When I open a project in Finder and neither Express nor Pro are running, it always opens in Express.  "Open With ..." says Express is the default.  How can I make Pro the default instead?

    I just upgraded from Logic Express to Pro.  When I open a project in Finder and neither Express nor Pro are running, it always opens in Express. I now want projects to open in Pro.  "Open With ..." says Express is the default.  How can I make Pro the default instead?

    Well, when I've done things like that it always sems like a good idea to keep an application that you know the file will definitely open in...

  • Error message when I open Logic Express 7

    Hi!
    When I opened Logic Express 7 today, I got an error message, telling me that Logic had problem with the file com.apple.logic.express.cs.
    I then searced the net and found out that the problem could be solved if I deleted that file, so I tried that (I didn´t deleted it, but just removed it to the trash, so I could replace it back if Logic wasn´t fixed with the file removed). And Logic was still not working. No sound when I tried to play back my songs or when I tried to play with the audio instruments. So now I have just replaced back the com.apple.logic.express.cs file, since that did not seemed to be the problem.
    I also tried to remove the com.apple.logic.SetUpAssistant.standard.plst file, but that did not seem to help either.
    Have anyone here experienced the same problem?
    PS. Why is the solution to remove those files to get it work, when they are ment to be there in the first place?
    Best from Asle
    Composer/guitarist from Norway

    Hi!
    Thank you for the answer!
    Will all the songs I have made in Logic be safe and still be 100 % as before if I reinstall Logic?
    Asle

  • Using Lightroom 5.5 and Photoshop CC2014. Images no longer open in Photoshop when using "edit in" command. Photoshop opens but no image when trying to move between LR and PS. Any suggestions?

    Using Lightroom 5.5 and Photoshop CC2014. Images no longer open in Photoshop when using "edit in" command. Photoshop opens but no image when trying to move between LR and PS. Any suggestions?

    1. You have allowed Apple to auto-upgrade your Mac
    Turn off auto-update here:
    Menu > Apple > System Preferences > App Store
    2. The Icons on your dock are Aliases not real apps
    They point to where the apps really are which is:
    For Pages 5.2.2 in your Applications folder
    For Pages '09 in your Applications/iWork folder
    3. You are alternately opening documents randomly with either version of Pages
    Both Pages have the same file extension .pages and there is no certainty as to which version opens them when you double click on a file.
    right click on the file and choose which version you want to open it
    4. Pages '09 can not open Pages 5 files
    Pages 5 can not open Pages '08 files, and will convert and change Pages '09 and Word files.
    It will also auto save opened files into its own format.
    You can export these back to Pages '09 if you need to:
    Menu > File > Export > Pages '09
    5. Yes Pages 5.2.2 is a marked downgrade
    Pages 5.2.2 has a few improvements but has had over 110 features removed and is buggy.
    Sooner or later you will not be able to open a file or have it damaged in some way and it has a complex obscure file format largely incompatible with everything else, so you will not be able to rescue the contents of your file. If Pages or some third party server/eMail don't trash your file, eventually Apple will do it for you as it did when it released Pages 5 last September. I recommend using Pages '09 for the time being whilst you look for viable alternatives, some are here already and some are on the way.
    For further information about what has happened:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=0882463378700 abf43a0f2433506bbbc&mforum=iworktipsntrick
    Peter

  • HT1751 I have moved my library from an external hard drive into my laptop music file but I am not able to open i-tunes when holding down the shift key as advised in step 4 and thus not seeing the library option box - any tips please??

    I have moved my itunes library from old computer to portable hard drive and then on, into new laptop, in music file. However I am then unable to open I-Tunes when holding down the shift button as directed in step 4 - this means I am not seeing the library choice box and cannot synch the tunes into ITunes library - any tips please?........Alan

    Close iTunes. Click the icon to launch iTunes and immediately press and hold down the left shift key. Keep holding until prompted to choose or create a library. If iTunes opens normally, close it,  and try again.
    tt2

  • CS3 Bridge Crashes when I open Edit Preferences

    I am running PhotoShop CS3 Bridge V2.1.1.9 under Win XP Pro SP2 and when I launch Bridge and open Edit > Preferences Bridge immediately crashes with the "Adobe Bridge has encountered a problem and needs to close". Bridge was running fine. I assume I must have corrupted a file. Any help would be greatly appreciated.
    Ed B

    I tried holding the ctrl buttom, the preferences reset, or any other window, would not launch. i tried the cnrl/shift/alt buttons, this did not work. i tried launching from quick start button, from the explorer exe, and still not able to get this to work. i even tried a few weeks back to uninstall and reinstall, but did not seem to work, i gave up until need it open now...
    are there any other tricks anyone has had luck with to get the preferences window to work?

  • CyclPhotoshop Ellments 11 Editor will not open. Also I can edit in quick edit, but when I do, copy of picture is sent to ree bin. I am using Windows 7 ?

    Photoshop 11 Editor will not open. Also I can edit in quick edit, but when I do copy of picture is sent to recycle bin. I am using Windows 7

    I have solved the problem myself.  I noticed when running Task Manager 
    that I was using a lot of resources (>60% CPU) when running Organizer.   I
    disabled Auto Analyzer and Face Recognition and all is fine now.  I will  add
    one or the other a little at a time to see which is actually  causing the
    problem.
    In a message dated 9/25/2011 2:18:09 P.M. US Mountain Standard Time, 
    [email protected] writes:
    Re:  PSE 9 Editor will not work if Organizer is running - what to do? 
    created by hatstead (http://forums.adobe.com/people/hatstead)  in 
    Photoshop Elements - View the full  discussion
    (http://forums.adobe.com/message/3937331#3937331)

Maybe you are looking for

  • Session state value translation issue

    Hello. New to APEX and not all that web-savvy. Using version 3.1.2.00.02. Little background: I have a Select List item, "P1_OPERATOR", working from an LOV of relational operators (=, >, >=, <, <=). I use this item as a string substitute in report que

  • How to ensure Premiere Pro saves nothing to my computer's hard drive

    I recently installed CS5 on my MacBook Air. I have a 1TB Time Capsule (wireless external hard drive) and I want Premiere Pro to save exclusively to that drive and not to my computer's hard drive. I have all of my source files for my project (audio, v

  • Storyboard & files are missing

    Hi, I have created new project in Xcode. Initially it works well. After working some time all the images and the storyboard files gets disappear. I cannot access those files from NSDocumentDirectiory too. If i load viewcontroller from the storyboard

  • Unable to set parent context for this record.

    Has anyone seen this error when doing an import? In my case I was doing an import to the Opportunity Product record. the full error message is Unable to set parent context for this record. Please make sure that the parent record is valid and you have

  • Firefox always downloads pdf to desktop on mac when I just want to view them, how do I fix this?

    hi - There must be a setting off or something, but on my MacBook pro, when using Firefox and Thunderbird email, every time I open an attachment, it automatically saves it to my desktop. My desktop is getting very cluttered and I need to fix this!