Show panel from dll in Test Stand

I have created a LabView dll that I call from TestStand, this passes parameters ok. However I want the LabView panel within the dll to be shown when it is called; how can this be achieved? 

No need for property nodes or anything else complicated. You do most of the work in the VI Properties>Window Appearance>Customize. At the very least, you want to check the 'Show front panel when called' and 'Close afterwards if originally closed'. When I make a custom edit step, I usually just select the 'Dialog' option on the Window Appearance screen. You should also make a modification to the VI. Add the TestStand - Start Modal Dialog as the very first thing and use TestStand - End Modal Dialog as the very last operation in the VI. You'll have to add the sequence context control and pass this to the dll.

Similar Messages

  • Updating the result from Labveiw to Test stand!

    Hello, I
    have a quick question; i am using Labview 8.5 & Test Stand. I am
    develeoping Test Scripts using Labview for the design & using them in
    Teststand as PASS/FAIL tests. My question is when i run the tests in teststand
    its showing that the tests what i have written in labview has been passed but
    when i remove the connection to UUT & run the same its showing that tests
    are passed. Actually at this time it should show that the tests are failed
    since the connection to UUT is not present. But on the lab view window its showing
    the proper result(that the is failed due to to bad connection) but on the test
    stand window side its showing erroneous results i.e. tests are passed(i.e. the
    result is not being updated from lab view to test stand window). What should I  do  to
    update the result from lab veiw to testand . I have this problem from couple of
    days.
    Any help
    would be appreciated.
    Thanks.

    Hi basha,
    Looking at your Sequence File and the Pass / Fail Step in MainSequence.
    Although you have three connections on your VI FT_Open_Device_By_Sreial_Number.vi (one input, two outputs),
    within your step, you haven't connected them to any TestStand variables.
    I have attached the FileGlobals.Handle to the Handle output of your VI as an example.
    You need to do something similar for Device Serial Number and FT_Status.
    I am not sure where this top level vi comes in, are you hoping to replace FT_Open_Device_By_Sreial_Number.vi with this top level vi.
    If you are then you need to connect on input and output to its connector pane. I would suggest the boolean result is one of the ouptut
    Which you connect to Step.Result.Pass/Fail
    Regards
    Ray
    Message Edited by Ray Farmer on 03-10-2008 10:04 PM
    Regards
    Ray Farmer
    Attachments:
    vi.PNG ‏25 KB
    Specify Pass_Fail.PNG ‏24 KB
    top level.PNG ‏6 KB

  • Search feature in Test Stand templates

    Hi,
    I am trying to create templates of sequence steps for a particular dll in Test Stand. The dll has about 50 functions, and when I line up all of them under templates, it becomes very lenghty, and difficult to use.
    Is there a way to add  "Search/Find" feature and "Flatten / Sort" feature - similar to the one we have for LabWindows CVI function panels? If so how, and which TestStand API do I need to modify? Can we "import" this feature from CVI and reuse it some how? Any other way of doing it?
    thanks and regards
    dasi

    Hi,
    Have you had a look at ''lookup strings"? Its a TestStand API call you can make on a property object. I am not sure if it can be used for external dlls but its does the same job you are asking for.
    By default there is no function present by default. You can access the dll in labview or CVI and search for it thr and call the VI/C code as a code module in TestStand.
    hope this helps..
    Vaibhav
    .......^___________________^
    ....../ '---_BOT ____________ ]
    ...../_==O;;;;;;;;_______.:/

  • Is there a max number of parameters that can be passed to a C function in test stand v. 1.0.1

    I have had an issue with test stand version 1.0.1 (yes, I know; it's quite old) and calling a C function thru an action step. when I call this function with 18 parameters, it seems to hang. I have called a function with 16 and it seems to work. Is this a limit of the software? I am calling the function from a windows DLL that we've created. When I try to pull the function from the dll into test stand I also get a { error...but I get that in the other function's call and it seems to work fine. Any ideas?

    ok, upon re-reading what I posted I can clearly see your confusion. haha. I think there are two separate issues.
    1) Are there a maximum number of parameters one can use when calling a C function from a DLL? Yes, i'm trying to call a C function from test stand.
    2) when I select the "module" tab, and select which DLL contains my function, the prototype has no information associated with it (by clicking the reload prototype button). I'm not sure why, as I'm using a declspec to send the function information out of the dll, but that's another topic. So I click on the source file tab and point the window to the .cpp of my function (within the DLL's project workspace) and when it begins to parse the file, I get an error about mis-matched curly brackets and if I wish to continue, and skip the rest of the parsing.
    I click "OK" and when I go back to the module tab, I am able to see all my functions, along with the parameters in the drop down menu below. I fill in all the parameters and everything looks ok; no syntax errors, or anything else seemingly suspicious. I then run my test stand code and when I get to the step which calls this function, the system hangs and cannot proceed.
    Any thoughts as to what might cause these issues? 

  • Added a check to Text to sequence file result in Test Stand hang up.

    I added the check in text to sequence file translator.vi (the file is attached)
    With this addition I generated the dll.
    Test Stand load the sequence file without any problem for the first time.
    If I add a space to the sequence file and save the file; test stand tries to load the new sequence file saying file has changed do you want to load the new sequence...
    But fails to load the sequence (Test Stand hangs up)
    The only way to overcome is kill the TestStand thru task manager.
    Which displays
    "You chose to end the nonresponsive program, SeqEdit.exe"
    Attached the displayed error (error.doc)
    Attachments:
    Changed code.vi ‏55 KB
    Error1.doc ‏45 KB

    Hi Vidula,
    Is it only when you add a space to the file name that you see this behavior? If, for instance, you add a '1' to the beginging of the file name does the same thing happen?
    Adam
    National Instruments
    Applications Engineer

  • How to test cloned VI file from Test-Stand

    Hi All,
    I am having one doubt in Test - Stand.
    I am having VI file which is having four controls and four indicators. I am just connecting one control with one indicator like one - one mapping. I have created connector pane for this. Say save this file as dummy1.vi.
    In another VI file I have taken four controls. These controls are connected with dummy1.vi file.  Save this file with test1.vi file. Now run the test1.vi file with highlight execution on. While it is continuosly running, double click on the sub vi files. You can see different files with clone, clone1, clone2 ...etc...
    Now I will pass values to test1.vi file from Test - Stand sequence step. In second step I want check the result from dummy1.vi file. But I am unable to do it.
    Can anybody tell me how to achieve it?
    Regards,
    Nagaraju

    Hey NagRaj,
    The reason you see the clones is because your VI is reentrant.  You can change that in the VI Properties in the Execution section.  Also, you may want to read more about that in the LabVIEW help to understand it better.
    You should have no problem testing these VIs from TestStand if you set your Step result to the value you are testing against.  I've attached an image that shows how to set the outputs of your VI to the step results.  What kind of test are you doing? (i.e. NumericLimit, StringLimit, Pass/Fail etc..)
    Is dummy1.VI a subvi of test1.VI?  If so do you have the output terminals of dummy1.vi connected to the output terminals of test1.vi to propogate the values back to TestStand.  This is assuming you only have one step in TestStand calling test1.vi which has dummy1.vi as a subvi.
    If you want two steps where one step calls test1.vi and the other calls dummy1.vi then you have to call them seperately.  They can't be tested in the same step this way.
    If this is confusing you can always post your simple example (seq and vis) and I could look and see how to better assist you.
    Regards,
    Message Edited by Sam R on 02-28-2007 09:06 AM
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Attachments:
    stepresult.JPG ‏56 KB

  • Passing and Receiving Struct from Test Stand

    Hi All,
    I have this DLL with this function:
    long __declspec(dllexport) InitMyNodeID(char* nameNode myData* mh)
     GimmeMyNodeID(nameNode, &mh->myNodeID);
    struct myData {
    int myNodeID;
     Notes:
     GimmeMyNodeID is a standard API that receives nameNode as input and returns an int myNodeID.
    I'm having difficulty receiving it on the test stand parameter...
    Can somebody help me on this..)

    Ray,
    in order to pass structs as parameters from/to TestStand, you have to define a datatype. In the typedefinition, you can set a property which is called "Allow Objects of This Type to be passed as Structs".
    Then you have to create a variable using this type and there you go
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Test Stand seq w/ dll batch file execution not working

    I am using Test Stand 4.1, running a seq that calls a dll.  The dll contains a batch file execution function that has not been working properly.  I am not 100% sure what the function is as I do not have access to the direct code from which the dll was created.  I believe I have a file, however please remember this is a guess that I am looking at the correct function/file. 
    This is a Pass/Fail test step that calls a batch file.  The batch file runs properly without the use of Test Stand and called by the dll.  In the code that I believe is running, I see there is a step that I am guessing does not run (see below for test steps).  It seems as though these steps are being "stepped over" and not running, however the test does seem to be entering this function.  The test reports a pass/fail status as the data is reported into a txt file.  If the txt file contains the correct data, the test step reports PASS, even though the batchfile does not run.
    :Note:  [batchfile.bat] is the name of the batch file being called; the [ ] are not present 
    // Run Batch File
     ChkErr(LaunchExecutableEx([batchfile.bat] ,windowState,&handle));   
     // Wait for batch file to complete task
     do{
      ProcessSystemEvents();
     }while(!ExecutableHasTerminated (handle));
     RetireExecutableHandle (handle);
    Any one have any suggestions as to why the batch file is not being called and running properly?
    Thank you
    Jason_C

    Thanks for the feed back.  I have realized and it seems as though sometimes the CWD varies.  The current working directory when the batch file does not run seems to be set to the desktop, not to the specified directory.  The batch file is used to program a chip, calling the exe to run using commands.  The file are speciifed by an absolute path, however the exe is not.  The batch file is as below and seems to match up with a problem with the CWD.  How can change though?  I will have to check in the Start in field, but where can I find that property? 
     Thank You
    --Jason
    del ..\misc\mplab.txt
    echo C:\Program Files\JTRS\01_P55461U\bin\uutsw\CR1_T2V3L_PMM_STUB_LOAD.hex
    ..\misc\pm3cmd /5 /BLCC:\Program Files\JTRS\01_P55461U\misc\t2v3l_pmm_stub_load\t2v3l_pmm_stub_load.pm3 /k /m /y /e >> ..\misc\mplab.txt >> ..\misc\mplab.txt
    ..\misc\pm3cmd /5 /BVCC:\Program Files\JTRS\01_P55461U\misc\t2v3l_pmm_stub_load\t2v3l_pmm_stub_load.pm3 >> ..\misc\mplab.txt

  • How can I view TestStands Operator Interface front panel, from a VI, while a test is taking place.

    I need to view the sequences and steps that are displayed during a test session while running TestStand. Except I would like to view this in a LabVIEW front panel

    JD,
    I'm not sure if you're asking to be able to view the actual code module's front panel (ie. VI front panel) while it's executing, or if you just want to see the steps and overall sequence in a VI front panel. If the latter is true then you can use the simple LabVIEW operator interface that ships with TestStand, as Dennis mentioned in his answer. This would indeed be a great place to start if you want to add any further functionality to the operator interface. If the former is true and you want to see the actual VI front panels of the steps as they execute, you can check that box "Show VI Front Panel" from the "Specify Module" window in TestStand.

  • How to bring a VI front panel to the front (of all open windows) when the parent VI calls a sub-VI in Test Stand.

    In Test Stand when I call a sub-VI front panel, the pop-up window goes behind all the windows and the user just waits for the screen. I want the pop-up to come to the front so that the user can know what to do. I couldn't find any property that I can set which would make the called VI go to the front.

    What version of TestStand are you using? Here are the TestStand palettes in LabVIEW for TestStand 2.0 and 3.1. You can also set a VI to be modal in  VI Properties>Window Appearance. Select Dialog or go to Cutomize and change the Window Behavior.
    Message Edited by Dennis Knutson on 03-07-2006 10:32 AM
    Attachments:
    TestStand palettes.JPG ‏37 KB

  • Despite my best efforts, I am unable to remove iTunes 11.1.4 from my PC, this being made necessary because the original installation had a flaw and did not load properly. Effor to use the control panel, deleting dll. files, etc. all failed. iTune out??

    Despite my best efforts, I am unable to remove iTunes 11.1.4 from my PC, this being made necessary because the original installation had a flaw and did not load properly. Effor to use the control panel, deleting dll. files, etc. all failed. And, of course, on startup, a window opens with the error and tells me find QTMovie.dll and delete it because this may be the source of the hangup. Also, in trying to delete iTunes, I get the additional message that I must get approval from the System Administrator to take this action. I am the System Administrator.
    Any ideas would be welcomed.
    Thank you.
    James
    <E-mail Edited by Host>

    Thank you for asking this question.  I'm having the same issues. 
    Liz

  • How can I pass a variable from Test Stand to CVI by reference

    Hi!
    I can't to pass numeric or boolean variable from Test Stand (for example: FileGlobals.StopFlag) into the step (CVI function).
    Function prototype: 
    void __declspec(dllexport) __cdecl PC2_WaitWhileResponceAppear(tTestData *testData, tTestError *testError, int *iStopFlag).
    When variable has bin changed I can't see this change from my function.
    CVI 2010, Test Stand 2010
    Can anybody help me?

    Hey Rombar,
    It is certainly possible to pass variables by reference; for example, if you go to <TestStand Directory>/Examples/Demo/C and open the computer.seq file, you can see one of the example sequences that uses CVI modules. If you click on one of these steps, you'll see that some of the parameters, such as the error information, is passed with pointers. This is a pass by reference.
    To help narrow this down, it'd be good for us to figure out a few things about how the code is run. First, if you go to Configure > Adapters, select the CVI adapter and choose Configure, you can see options for this adapter. Do you have it configured to run in an external instance of CVI or as an in-process call?
    Also, if you're wanting to see a change made in TestStand in your external code, this makes me think that you're wanting to run the code and then continue to execute your TestStand sequence while the code runs. How did you configure this behavior? For example, are you calling this code as a separate sequence in a new thread, or are you using another method to run this code while the sequence continues to run?
    Finally, if we could see a screenshot of how you're configuring the parameters on the TestStand step, that might be helpful as well.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Format address panel in iCal to show Department from the address book. At the moment it is showing 'Job Title' even though that has been removed in Address Book.

    Can anybody help please How do I Format address panel in iCal to show Department from the address book. At the moment it is showing 'Job Title' even though that has been removed in Address Book.

    I have a similar problem. I actually spoke with a Paypal customer Representative a few months back who informed me that they had deleted all of my previous *Hidden* Address but when I just purchased an item today on a online merchant's site that I had never been to before and checked out using their Paypal option, I noticed that my default shipping address was in fact my old address and when I went to change the address to my current address, I noticed all of the old addresses I ever used were still there. I've just spoken with 2 separate paypal representatives who confirmed on their end that all of the old address have been deleted and the only one they have on file is my current address. Can anyone provide me an explanation as to why the old hidden address can still be showing up when I check out on merchant's sites using paypal even after they've seemingly been deleted? The last Representative suggested clearing out my browser's cache, but I don't believe that will resolve my issue. Thank you in advance.

  • Calling cvi functions from test stand using structs

    WE got some Issue regarding the process of calling cvi function using test stand

    I'm sorry to hear that you have some issues calling cvi functions. There is a shipping example that demonstrates how to call a CVI function and pass a structure. The example can be found in <TestStand>\Examples\StructPassing\C\Struct Passing to a C DLL.seq.
    If the example program does not resolve your issues, post again and please describe the problem in detail.
    Regards,
    Shannon R.
    Applications Engineer
    National Instruments

  • Connect Test stand from Visual studio C#

    I m trying to start Test stand user interface component from C# Visual studio, but fails for some reason. Attached the error log here. Please help
    Attachments:
    failure.jpg ‏3841 KB

    Hi,
    Do you call this module from a network drive?
    BTW, You have call the mscorecnf.msc to make the permissions on your maschine.
    http://msdn.microsoft.com/en-us/library/2bc0cxhc.aspx
    Hope this helps
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

Maybe you are looking for

  • Issue while saving the project plans into XML

    Hi, Could anyone of you please help me here. We are having one custom field(Type: Text) in the project level(Custom field name: ProjectComments) and end users are entering the data against this custom field more than 200 characters. The problem here

  • HP Mini 110-3616 RAM Upgrade

    My Father in law is looking to buy a HP Mini 110-3616, they come with 1GB RAM (and Windows 7 Starter), I haven't ssen one of these, is it easy to increase the RAM, will it make it a lot faster? Thanks Steve

  • External monitor going blank!

    Hello, I have a exrernal Dell 24' monitor that has been working 100% ok for years on my macbook now am running 10.7.2. I use the mac in clam mode and using the Dell as the main monitor. Today I have a problem as after around 10mins of uses the monito

  • I'm having difficulties upgrading my software

    I just recently wiped out my MacBook Pro to start fresh but after a few 'software upgrades', until it no longer allow me to upgrade.  I realized that I couldn't hook my Iphone to my itunes.  I upgraded my itunes but it says that my Quicktime is outda

  • Camera ap is missing, what happened, where is it?

    I had a camera ap on my Ipad2, now it is missing.  How can I get it back?