Forcing Single Pass entry point

Hi all
I have a sequence based on the sequential model that I only ever want to enter as single pass. I am driving myself slight crazy as I keep clicking “Test UUT(s)” rather than “single pass”. Is there a call back or expression I can add that will force the sequence to run as single pass regardless of which button I click?
Many Thanks              
Dave B
P.S Happy new Year
Solved!
Go to Solution.

Because the client and model are "decoupled" and the client technically doesn't get called until later in the execution this is a tricky one.
Several options:
Customize the UI to only allow the Execution Entry point button to be linked to the Single Pass entry point
In the Sequence Editor fix your toolbar to only show the Single Pass entry button
This one is kind of a hack:  override the Process Setup callback and if the entry point was Test UUTs then kill the thread and start a new one using the Single Pass entry point
Remove Test UUTs from the process model.  Or change it to a configuration entry point temporarily.
Hope this helps,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~

Similar Messages

  • Using "Single Pass" entry point with sequences not named "MainSequence"

    Hi,
    The object model of TestStand provides clustering of multiple sequences in one sequence file. The editor itself allways knows which sequence the user has actually selected (enrty Run ... in Menu Execute is allways fullfilled with the correct sequence name).
    Why isn't there any support of using the entry points of the model with this selected sequence, these sequences use the default "MainSequence" if they are called by the corresponding menu entry of the Execute Menu.
    I am looking for any solution to use the entry points (by menu calls) with sequences not named MainSequence as well.
    Any ideas?
    Regards,
    Sunny

    Sunny -
    In the process model entry point "Single Pass", if you look at the sequence context during an execution, you will notice that the sequence that was visible or "selected" at the time of the execution is started is specified under "RunState.InitialSelection.SelectedSequences[0]". You could alter the MainSequence call step in the process model to call that sequence instead. Keep in mind that you will have to decide how to handle the case when no sequence is selected, do you call MainSequence or do nothing?
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • Which case in LV Oper. Intf. will do "Run Selected Steps using single pass" for me?

    I added a button to simulate "Run Selected Steps", but I really want a button that will "Run Selected Steps Using Single Pass". Which case in the Complex Labview Operator Interface does this for me? What I really want is the report to be generated which happens when I use "Run Selected Steps Using Single Pass" but no report when I select "Run Selected Steps".
    Thanks!

    I figured out how to make this work.  Instead of calling the Sequence File View Manager ConnectCommand method using the Run Selected Steps button and the CommandKind_RunSelectedSteps command kind, you use the CommandKind_RunSelectedStepsUsingEntryPoints_Set command kind.  The tricky part is that before you can use the ConnectCommand method with the CommandKind_RunSelectedStepsUsingEntryPoints_Set command kind, you have to create a set of new commands.  Do this by first invoking the Application Manager method NewCommands.  This method returns an empty set of commands.  You must then add a new command to that set.  Do this by invoking the InsertKind method on the empty set of commands using CommandKind_RunEntryPointOnSelectedSteps for cmdKind, Sequence File View Manager for managerControl, -1 for insertBefore, and empty strings for currentMenuName and allMenuNames parameters.  Once you have made these calls, then you can call the Sequence File View Manager ConnectCommand method using the CommandKind_RunSelectedStepsUsingEntryPoints_Set command kind.
    The previous instructions work just the same for the Loop On Selected Steps button.  Just substitute the CommandKind_RunEntryPointOnSelectedSteps and CommandKind_RunSelectedStepsUsingEntryPoints_Set command kind constants with CommandKind_LoopEntryPointOnSelectedSteps and CommandKind_LoopOnSelectedStepsUsingEntryPoints_Set command kinds (and of course use the Loop On Selected Steps button reference instead of the Run on Selected Steps button reference when invoking the ConnectCommand method).
    There is one mystery with this solution that I haven't figured out yet, besides the fact that it is so laborious and non-intuitive to me (but at least it works).  Nowhere in any of the calls detailed above did I ever see a parameter to specify which execution entry point to use.  I am using the default sequential model entry points Test UUTs and Single Pass.  Typically you specify which entry point you want to use (such as when invoking the ConnectCommand method) in the form of an index to a set of entry points where the Test UUTs entry point corresponds to a set index of 0 and Single Pass corresponds to a set index of 1.  How did the previous calls determine which entry point to use when I didn't specify anywhere which one to use?  Do this just work because you can only run or loop on selected steps using no process model or the Single Pass entry point?

  • Pass Parameter To Configuration Entry Point

    In TestStand 2010 I have added a configuration entry point to select a configuration file. (Configure\Select Config File). I'm displaying a LabVIEW GUI which basically prompts the user to select a file. The file path needs to be stored in "FilePath" variable in TestStand.
    Problem statement:
    1. I'm trying to modularize this configuration entry point. Hence, I would write to "Parameters.FilePath" variable of configuration entry point stored in process model. This variable would be of "pass by reference" type and should eventually update the caller sequence.
    However, I don't know how to pass the value from "Parameters.FilePath" to the caller sequence. I'm currently updating the station global variable directly which I think is not the correct method if I think of modularity.
    2. I want the configuration entry point that was created ("Select Config File") to be enabled only when testing has not started (I'm just using single pass for my project).
    Which variable in TestStand would tell me if the execution entry point "Single Pass" is called or not?

    hi bce,
    [ If I used a station global, how would my changes be saved? Can you do this programmatically? Is there a better way? ]
    When Teststand closes, it automatically saves the StationGlobals. You would use PropertyObjectFile.SaveFileIfModified if you needed to force the save. But you shouldn't really need to do this as the latest value is available to all sequences and sequence files.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • Is it possible to add a single Entry Point menu item to a LabVIEW OI menu?

    Using the "TestStand - Insert Commands in Menu (Application Manager).vi" library VI, I can add all Configure menu items to a menu with the "CommandKind_ConfigurationEntryPoints_Set" option for the "Commands" input.  But the VI is missing an "Index" input to specify a single item from the collection.  (UnlikeThe "AplicationMgr.ConnectCommand()" function, which allows you to specify a single item with an index.)
    The issue is the same for Execution Entry Points and Tools as it is for Configuration Entry Point--I can create a menu containing the entire collection, but not a single item.  I tried to delve into the VI to change it to allow specification of individual commands using an index using the Commands.Insert() function instead of the Commands.InsertKind() function, but without success.
    As an aside, even when I add all Tools to a menu (using CommandKind_Tools_Set), TestStand exits with a warning that 12 "RunTimeMenuItem" objects were not released.  I'm wondering if I should be using the Engine.GetRunTimeToolMenuItems interface instead.  But if that's the case, I think I have to build the menu myself and can't use the TestStand library VIs to automatically run commands when their corresponding menu items are selected.  Maybe this is just a bug in the TestStand VIs?
    I am using TestStand 2010 SP1 with LabVIEW 2014.
    Any advice would be appreciated.  Thanks.
    -Jeff

    I am closing the TestStand Engine, VI Refnum, Quit Application event, and Event Callback, just like in the example.  I get the TestStand unreleased reference error only if I call that VI to include the Tools menu.  The fact that the unreleased objects are "RunTimeMenuItem" objects also implies to me that the problem is specific to the Tools menu items.  Since Tools menus seem to have their own API (which involves RunTimeMenuItems), it seems to me that the VI (or the TestStand Engine?) is doing something with RunTimeMenuItems that I can't see, and is somehow losing track of them (because that VI gives me no visibility to any RunTimeMenuItem objects).  Is it possible that one should explicitly use RunTimeMenuItem objects instead of the menu VI when dealing with Tools menus?  (Maybe the error is due to my using TestStand 2010 SP1 on Windows 8.1, for which TestStand 2010 SP1 is not officially supported?)

  • Pass data from configuration entry point

    I have a need to post data from a Configuration Entry Point during a Test UUTs execution. I would like to update a parameter in my test sequence, using the configuration entrypoint if the test sequence is actively running in Test UUts. If it's not active, I would update a .ini file which gets read by the process model when a new Test UUTs entrypoint is started.
    My first guess has been to determine if the TestUUTs sequence is active, and I have tried using the PropertyObject RunState.ProcessModelClient.IsExecuting, but I just realized the Configuration Entry Point is always running in the process model.
    Everything I have read indicates that most Configuration Entry Points just write data to a file. Am I doing something fundamentally wrong?
    How do i determine if my sequence file is being executed with TestUUts?
    Thanks for your help. Woefully confused,
    Brian

    hi bce,
    [ If I used a station global, how would my changes be saved? Can you do this programmatically? Is there a better way? ]
    When Teststand closes, it automatically saves the StationGlobals. You would use PropertyObjectFile.SaveFileIfModified if you needed to force the save. But you shouldn't really need to do this as the latest value is available to all sequences and sequence files.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Please Help.. have spend hours unistalling itunes on my pc and redownloading itunes and every single time i am getting a "The procedure entry point AVCFPlayerAppliesMediaSelectionCriteriaAutomaticallyKey could not be located n AVFoundationsCF.dll

    ugh...can anyone help me reload itunes on my pc...itunes 10 worked fine but I uninstalled it when i was having problems loading itunes 11...I am not sure how to correct my procedure entry point error...i have used my uninstall programs on my control panel numerous times to unistall my itunes and quik time downloads and every single time i shut down and reinstall them I am getting this same procedure entry point error...is there something else i can do ??? ugh !!!

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Can LabVIEW call a DLL built with VS(2005) C++ with /CLR and Without an Entry Point

    My project requires me to convert a C++ program to a DLL and having it called by LabVIEW. Due to the complexity of this C++ program (converted from fortran using f2c -C++ option), it cannot be compiled without using /clr option.  I did build the application standalone (/clr), and it functioned fine.  When I build it into DLL using VS2005, I was forced to use No Entry point option and without using DllMain in the C++ code. Eventually the DLL was built without error.  But after I call it from LabVIEW, I was not getting calculated results as expected.  I added a testing function to the C++ code of the DLL and just try to modify a parameter, it will not, but only return the input numbers.  I was passing data by pointer and not by value, so I expect this parameter output be modified.  I suspect that the DLL didnt get executed at all as it has no entry point specified.
    Am I on the right track to approach this task, or I am heading to totally wrong direction here?   I believe due to the fact that my C++ was from f2c and use vsf2c.lib and so on, the code is managed code, so that a regular DLL cannot be built from it with an entry point. How can LabVIEW call such a DLL? Am I right on that?  I really need your advice here for a right approach to this problem and possible implementation "watch outs"...Thanks!
    Bryan

    Hi...Finally I was able to compile my code with an entry point defined and without using /clr.  I can also call this DLL from LV and got back a variable from a little test function added to the DLL.  But the function that was used for my main application in the DLL crashed LV and I got a pop up box from Microsoft Visual C++ Runtime Library: Runtime Error! "This application has requested the Runtime to terminate it in an unusual way, please contact the application's support team for more information".  In Visual Studio I also got the following message: (I eliminated most of the "No symbols loaded" messages that are not errors but just info.)  I would apprciate if someone can take to look with your more "experienced eyes", many thanks! Bryan.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\xpsp2res.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\Shared\nicont.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\Shared\NICONTDT.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\nitaglv.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\lkbrow.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\lkrealt.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\lvdaq.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\lvdesktop.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\lvfp.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\mfc71.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\MFC71ENU.DLL', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\FieldPoint\SubVIs\FPLVMgr.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\lvfprt.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\LvProjectProxy.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\LvRealTimeCoreProvider.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\MVEProvider.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\QtCore4.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\QtXml4.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\QtGui4.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\mxLvProvider.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\nimxlcpp.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\nimxlc.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\Providers\variable.mxx', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\Framework\lvMax.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\MAX\UI Providers\FieldPoint71.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\MathScriptParser.dll', Binary was not built with debug information.
    'LabVIEW.exe': Loaded 'Z:\bli\development\projects\galfitDLL\Debug\galfitDLL.dll', Symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700\msvcr80.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\Program Files\National Instruments\LabVIEW 8.5\resource\mesa.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\mscms.dll', No symbols loaded.
    'LabVIEW.exe': Loaded 'C:\WINDOWS\system32\icm32.dll', No symbols loaded.
    The thread 'Win32 Thread' (0xf94) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x90c) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xfd0) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x284) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xdac) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xa98) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x528) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x614) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xa5c) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xebc) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x5cc) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x700) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xcf0) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xc7c) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x4c8) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xa4) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x52c) has exited with code 3 (0x3).
    The program '[804] LabVIEW.exe: Native' has exited with code 3 (0x3).

  • Run test uut entry point only once

    Hi,
    I want to avoid that users can run test uuts entry point more than once. I use an operator interface written in CVI 7.1.1 and netry point button is deactivated when run state changes. But after loading the application sometimes is too slow so the user can press this button twice before it is deactivated.
    So is there any possibility to avoid running this entry point more than one time?
    Regards
    Steffen

    Steffen,
    Thank you so much for the help.  You recommendations worked perfectly.  Both of us implemented more or less the same behavior in our operator interfaces, although we used slightly different methods.  Here is what I did:
    I established a count variable in my operator interface that is initially set to 0.  Each time the Test UUTs or Single Pass button is pressed, I increment the count by 1.  I determine that the Test UUTs or Single Pass button is pressed by registering for and handling the Application Manager PreCommandExecute event.  In my callback for this event, I examine the returned Command and look at its EntryPointIndex property to see if the index is 0 (Test UUTs) or 1 (Single Pass).  If it is, I increment the count variable count by 1.  If the index is not 0 or 1, I do nothing.  Once execution has stopped, I reset the count variable back to 0.  I do this by registering for and handling the ExecutionView Manager RunStateChanged event (as you recommended).  In my callback for this event, I examine the returned newRunState to see if it stopped (numerical value of 3).  If it is, I set the value of the count variable back to 0.  If it isn't stopped, I do nothing.
    This method is basically the same as the one you propose.  This method allows you to use the built in TestStand buttons instead of having to use those found in your development environment.  The only drawback is that they don't disable and gray out during execution; they just do nothing when an execution is in progress and the operator presses them.

  • Entry point parameters

    Could some help me out with Entry Points please?
    Specifically I would like to pass a parameter through to the process model [I don't want to use a callback in the client sequence]
    It seems that Entry Points can have Parameters, but how do you supply those parameters to it?
    For example, below, 'Single Pass' gets the sequence name passed in as a parameter.
    Thanks,
    Ronnie
    TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
    Solved!
    Go to Solution.

    Hi,
    Not sure want callback you have in mind?
    By default MainSequence defined in the Process Model has no parameters defined. Therefore if you need to pass parameters then you have to use a modified Process model.
    If you dont want to modify the process model, then you could handle the passing of data from client file to the process model by use of the properties of a local variable.
    If you right click on a local variable, there are two properties that allow you to propogate the value to a caller and from a caller.
    I am sure there is an example of this on this forum.
    try this link
    http://forums.ni.com/ni/board/message?board.id=330&message.id=19560&query.id=1791977#M19560
    Hope this helps
    Regards
    Ray Farmer
    Message Edited by Ray Farmer on 08-10-2009 07:06 AM
    Regards
    Ray Farmer

  • How do I determine the execution entry point used programatically in a sequence?

    I need to vary the behaviour (slightly) of a sequence depending on whether the user runs the sequence with the "Test UUTs" execution entry point or with "Single Pass".  I was hoping that I could find a variable to use in my sequence which specifies which entry point was used.  Is there a variable that shows this information?  If so, what is it?  If not, what other methods might work to accomplish this?
    Thanks,
    Sean

    Hi,
    In your MainSequence use the expression Locals.Caller = NameOf(RunState.Caller.RunState.Sequence).
    (Locals.Caller declared as a string in the sequence.)
    This will return a string to your variable as "Single Pass" or "Test UUTs".
    Hope this helps
    Regards
    Ray
    Regards
    Ray Farmer

  • Which veriable in TS store the Execute mode (Test UUTs, Single Pass etc..)

    I'm writing a program in CVI7.0 with TS3.0. I would like to inquire the TS to the Execute mode.--was the user selected Test UUTs (F5), or Single Pass (Ctr F5), or 'Run Main Sequence' or 'Run Selected Steps'.
    Can you advise how to do that?
    Thanks

    Hello,
    To determine which Execution Entry Point is being used to call your client, you can use the TestStand 3.0 API to call properties an methods that will return to you the name of the root sequence. I have attached a sequence file that makes ActiveX calls to the API to do just that and displays the result in a Message Popup step. If follows these steps:
    1. Get the root context (this will be the context of the sequence of the process model that is used to execute, ie: Test UUT, or Single Pass).
    2. Get the sequence from the root context.
    3. Get the name of the sequence.
    4. Display the name (if it is a Test UUT, I have preconditions set up to only display it on the first UUT tested).
    If you chose, "Run Main Sequence", the name that you rec
    eive will be "MainSequence" because the root sequence is not a Process Model sequence, but the MainSequence of the client file.
    I hope that this is helpful. Take care and have a great day!
    Aaron B.
    National Instruments
    Attachments:
    GetExecutionInfo.seq ‏31 KB

  • Error that "specify a value for variable posting period (single value entry

    hi
    My query is running testing fine in RSECADMIN under some username..but when i try and open it using analyzer (under same username) it gives me error that "specify a value for variable posting period (single value entry, mandatry)" it does'nt even asks to enter variable values and gives this error message.
    However the same query appears to be working fine under different username.
    plz advise.

    Hi Abhinav,
    Just do one thing compare the Roles of two different users for which Query is getting executed and not.
    Check the Object S_RFC.
    Compare the Objects detail for Both the Users.
    Please Assign points if useful.
    Regards,
    Rajdeep.

  • Entry point not found for js32.dll

    Dear Friends,
    I am trying to connect to a Domino server using NRPC (Native call based) connection. I have added Notes Client path in PATH variable (double checked this). My machine is W2k and Java version 1.4.2.
    The following is the code which I am trying to run and getting erorr as,
    "The procedure entry point JS_NewStringCopyN could not be located in dynamic link library js32.dll". I've use Dependency walker tool to ensure that js32.dll contains the specified function. May I know what's going wrong here?
    Thanks,
    Ketan
    import java.util.List;
    import java.util.Vector;
    import lotus.domino.Database;
    import lotus.domino.Document;
    import lotus.domino.NotesError;
    import lotus.domino.NotesException;
    import lotus.domino.NotesFactory;
    import lotus.domino.NotesThread;
    import lotus.domino.Session;
    import lotus.domino.View;
    import lotus.domino.ViewEntry;
    import lotus.domino.ViewEntryCollection;
    public class TestNRPCConnection {
        //session variable
        protected Session session = null;
        //database variable
        protected Database dominodb = null;
         * Constructor which accepts all the parameters to create a non-DIIOP domino connection
         * @param serverName - name of domino server  
         * @param dbName - database name
         * @param userIdFileName - user id file path
         * @param userName -
         * @param password
        public TestNRPCConnection(String serverName, String dbName, String userIdFileName, String userName, String password)
          try
            NotesThread.sinitThread();
            this.session = NotesFactory.createSession();
            lotus.domino.Registration r = this.session.createRegistration();
            r.switchToID(userIdFileName, password);
            dominodb = session.getDatabase(serverName,dbName);
            if(dominodb == null)
              throw new Exception ("Couldn't create Domino Connection. Please check the parameters.");
            if( dominodb.isOpen() == false)
              this.close();
              throw new Exception("Couldn't create Domino Connection. Please check the parameters. " +
                  "  server=" + serverName
                  + ", user=" + userName
                  + ", user_ID_file=" + userIdFileName
                  + ", database_path=" + dbName
                  + ", password=" + ((password != null)? "<non-null>" : "<null>")
            else
              System.out.println("View Names are : " + dominodb.getViews());
              System.out.println(" Database is Open " + dominodb.getFileName());
          catch(NotesException e){
            String dominoErrorText = e.text;
            int dominoErrorID = e.id;
            switch (dominoErrorID) {
            case NotesError.NOTES_ERR_DOCNOTSAVED :
              System.out.println("NotesException - .  Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
              break;     
            case NotesError.NOTES_ERR_VIEWOPEN_FAILED :
              System.out.println("Could not open the specified View <viewname>.  Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
              break;     
            case NotesError.NOTES_ERR_DBNOACCESS :
              System.out.println("No access to the specified Database <dbname>.  Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
              break;     
            case NotesError.NOTES_ERR_ILLEGAL_SERVER_NAME :
              System.out.println("The servername specified <servername> isn't correct.  Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
              break;     
            case NotesError.NOTES_ERR_DBOPEN_FAILED :
              System.out.println("Could not open specified Database <dbname>.  Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
              break;
            case NotesError.NOTES_ERR_SSOTOKEN_EXP:
              //Single Sign-on Token has expired.
              System.out.println("NotesException -   Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
              break;
            case NotesError.NOTES_ERR_SERVER_ACCESS_DENIED:
              //Access denied.
              System.out.println("This user is not authorized to open DIIOP connections with the Domino server.  Check your DIIOP configuration.  NotesException - " + dominoErrorID + " " + dominoErrorText);
              break;
            case NotesError.NOTES_ERR_GETIOR_FAILED:
              //Could not get IOR from Domino Server.
              System.out.println("Unable to open a DIIOP connection with " + serverName + ".  Make sure the DIIOP and HTTP tasks are running on the Domino server, and that ports are open.  NotesException - " + dominoErrorID + " " + dominoErrorText + ".");
              break;
            default:
              //Unexpected error.  Show detailed message.
              System.out.println("NotesException - " + dominoErrorID + " " + dominoErrorText);
            e.printStackTrace(System.out);
          catch(Exception ex)
            ex.printStackTrace();
            System.out.println("Error while creating Domino Connection. Details - " + ex + ". Parameters are, " +
                "  server=" + serverName
                + ", user=" + userName
                + ", user_ID_file=" + userIdFileName
                + ", database_path=" + dbName
                + ", password=" + ((password != null)? "<non-null>" : "<null>"));
        public synchronized void close()
          try
            this.dominodb = null;
            if(session != null)
              session.recycle();
            session = null;     
          catch(Exception ex)
            ex.printStackTrace();
          finally
            NotesThread.stermThread();
         * Gets documents by the specified view name
         * @param viewName - name of the domino view
         * @return
        public synchronized List getColumnNamesForView(String viewName)
          List columnNames = new Vector();
          List documentList = new Vector();
          try
            View view = (lotus.domino.local.View)this.dominodb.getView(viewName);
            ViewEntryCollection entryCollection = view.getAllEntries();
            if(entryCollection == null)
              return null;
            ViewEntry entry = entryCollection.getFirstEntry();
            int i = -1; //counter
            while (entry != null)
              if (entry.isDocument())
                Document doc = entry.getDocument();
                i++;
                //get the Column Names
                if(i == 0)
                  List items = doc.getItems();
                  String name = "";
                  for(int k=0; ((i==0) && (k<items.size())); k++)
                    name = ((lotus.domino.Item)items.get(k)).getName();
                    //skip column names starting with $ or ($
                    if(name != null)
                      columnNames.add(name);
                  if(doc == null)
                    continue;
                  else
                    //clean up task
                    doc.recycle();
                    doc = null;
                  //return columnNames;
                  documentList.add(0, columnNames);
              entry = entryCollection.getNextEntry();
            }//end of while
          catch(Exception e)
            e.printStackTrace();
          return documentList;
        public static void main(String[] args){
          TestNRPCConnection domino = null;
          try
            System.out.println("java.library.path = '" + System.getProperty("java.library.path") + "'");
             domino = new TestNRPCConnection(
                 "testservername",
                 "names.nsf",
                "c:/lotus/domino/data/admin.id",
                "UserName/domain",
                "somepassword");
             System.out.println("Column Names " + domino.getColumnNamesForView("Groups"));
          }catch(Exception e)
            e.printStackTrace();
          finally
            //if(domino != null)
              //domino.close();
    }

    Hi,
    Can you try with a Generic Wrapper like JNative (it contains a method to list all exported functions of a dll : even mangled ones) ?
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • SIngle Push Button toggle

    On the face of it, when first told it looked a simple requirement : There is a single push - to - on hardware switch which is read by a DAQMX read function as a digital input inside of a 50ms timed loop.  Every time the user pushes the switch momenta

  • How to locate my ipod using the "find my ipod app"

    I set up the "find my ipod app" using my iphone, but I never used it on my computer. I know its turned on, but I dont know how to access it from the computer rather than using my iphone. Please help.

  • Why do I have 2 sets of Library Files?

    Hi All, I have a Macbook Pro which I upgraded to Lion in October last year. I've noticed that the HD (250GB) is almost always full. I have a 1TB volume Time Machine that I keep a lot of old stuff on. I've been looking to see why the disk is full and

  • Can't install Intel Control Center (former MSM) in Windows Server 2008 R2

    I'm running WS2008 R2 with SP1. Everything is great but I need to add monitoring of my RAID1 system volume. It's installed on onboard Intel chip. Latest driver installed succesfully but Intel Control Center asks for .NET 3. How do I install it? It's

  • Password protecting certain songs

    Is there a way to password protect songs or lets say a speech that you have recorded.  so to be able to play the song you would have to type in a password to hear it or be able to sync it to you ipod or iphone.  The speech was recorded on garage band