Passing variables between LabVIEW and TestStand

Hello

I'm just learning how to use TestStand and although there are a multitude of resources available, I always find me at a loss on how to pass variables between TS and LV, leaving me to think that there is one fundamental thing that I'm missing which is likely, given that I have a weeks experience with LabVIEW and a days of experience with TestStand.

I took a glance to the example of 'Clusters' to the Code Modules in TestStand examples (I use TS 2016 if it matters) because I thought it would be quite ideal for what I hope. In this case, I hope to be able to pass a string (a file path) to LabVIEW and VI power take this string and use it as part of an order for the Exec.VI system.  Then, I would be able to pass strings back to TestStand to show the user if an error occurred, but I thought I should get the first part of work.

I guess my question is what do I have to wait to see in clusters to the example of the Modules of Code? The Watch window displays all defined variables premise on which has the ContainerOut in the Variables pane, but I don't see any kind of update on facades (VI1.vi and VI2.vi) LabVIEW code. Should I be?

I looked at a few other discussions of the forum here and here, as well as the document of the basis of knowledge here, but could not recreate their solutions. It seems that the connector pane would be a viable way to go, but I'm not sure on how we create and use effectively. According to this document , it makes it seem like it should be simple enough to makes these terminals, but I am still missing a key step. I was able to follow all the steps on the knowledge base document and run the sequence, but then had no idea if it worked or not; I have the report show me the values of the variables I put, but I have no idea whether or not he actually did anything with the LabVIEW VI, or how I could see that.

Please let me know if you need further information or clarifaction everything I ask.

Thank you for your time,
JColvin

Digilent, a company of National Instruments

If you want to enter values, you must create a vi for instance dialog box

The OK button will allow new values to pass to the output terminals.

A Cancel button will pass just the original through the output values without alteration. The VI will close when either the OK button or cancel were pressed.

Concerning

Ray

Tags: NI Software

Similar Questions

  • How to pass variables between Labview and Teststand

    It is probably a trivial question, but I'm new to TestStand. All I'm doing is updated to a variable in Labview and then pass this value in a local variable Teststand. A simple test that VI is attached. I get no error and it seems correct, but when I followed the variable via TS watch display is not updated. Also I am not able to read the variable outside TS. It is probably a trivial thing, I'm doing wrong, but I'm stuck.

    Too bad, it was simple. Just need to add the context of sequence as input, then set it to ThisContext TS

  • Table does not work correctly between LabView and TestStand

    I'm doing a TestStand program that reads data from a LabView VI.

    If I run the VI in LabView, it works perfectly well and generates a table with 18 points in length, the first 3 are numbers between 0 and 10 and the rest being-1 as I intended. Re-run the VI causes the re - initialize correctly and I get a new table that also meets my specifications.

    When I run the VI of TestStand, it works fine once, producing a table with 18 points, the first 3 are numbers between 0 and 10, and the rest is-1.

    If I run the VI in TestStand once again it increases the length of array in 18 each time. In so doing, it fails to write the new 3 numbers and just add - 1 in table 18 times. If I restart TestStand will work fine once more, he repeats the error if I re - run the VI. I don't understand why this is happening.

    I have re-product the error in a separate VI and the order, and I have attached an example in this post. The VI contains all the necessary information (if not, please say so and I will correct it), and TestStand sequence is configured to put all results, I would find useful in the report (as additional results).

    Your problem is your VI.   Specifically the comment nodes.  They initialize on the first call.  TestStand retains the VI in memory.  So when the VI is called again, the comments always nodes have their last value.  You will get the same results if you have VI your ArrayBuild.vi twice appealed.

    The way you use the feedback nodes, they really replace with Shift Registers.  I like your comment nodes, but since you pass the value of the node in the loop, the SHIFT registers are much more appropriate.  Just make sure you initialize your Shift Registers.

  • passing variables between CFSCRIPT and Javacript

    The example below is a very rough diagram of what I am triying to do but is there a way to do it with cfajaxproxy or something? Can we post or a link to an example please?

    < cfscript >

    name = "hulfy".

    < /script >

    < script >

    var myName = #name #.

    < /script >

    The easiest way is to use tags around your script tags cfoutput.  It will work for simple variables.  For tables, queries, etc., toScript() or cfwddx would be useful.  As far as I know, they do the same thing.

  • passing variables between the pop-up windows

    I'm moving one popup to the other variables. It works fien if I spend bvariable of main application as soon as I'm moving from variable popup to popup window it does not work here is what I am trying ro:

    That works fine

    hand. MXML

    private function launchMoreInfo (): void {}
    var win: view = PopUpManager.createPopUp (this, opinion, true) as point of view;
    //

    victory. AccountNum = list1.selectedItem.accountNum;
    Win.User = user;

    }

    But if I try to pass variables to the pop-up window, created from popup component, is not ' work

    View.MXML

    private function dsclientevents (): void {}
    var win2:view = PopUpManager.createPopUp (Thi, dsclienteventlog, true) like point of view;
    //

    win2. AccountNum = 'test ';

    }

    AccountNum is declared in dsclienteventlog.mxml

    Is it possible to pass variables between the pop-up windows?

    I would much apreciate your help

    Thank you

    Hi friend!

    I have faced this kind of problem and solved using 'Public static var '.

    Just, you declare a public static variable in your class Popup. Then you can directly set the value to this variable as,

    ClassName.StaticVariableName = value;

    In your case,.

    say PopUp2.mxml or PopUp2.as

    =======

    In the PopUp1 script:

    OnItemSelectionChange (event): void

    {

    PopUp2.m_iSelectedID = DatagridID.selectedItem.AccountID; It will change the value of this variable, even if the popup2 is open.

    your stuff here...

    }

    Try this, I hope this will help you.

    Thank you

    Merlina.

  • pass variables between form

    Hello

    I use oracle forms 6i.
    How can I pass variables between Forms?
    Consider the scénarion of a login form.
    Once a user logged in successfully, a new form is displayed, where his name is to be displayed
    like '< user > welcome. '
    If name must be past form at the home page login form.

    Is this possible with Oracle?

    Adkins

    Adkins,

    For Global Variables just assign a value to that, and it's initialization. Or you can use

    DEFAULT_VALUE(NULL, 'GLOBAL.');
    

    Make sure that you assign the appropriate value to the global variable before opening the new form.

    And for the parameter, try.

    DECLARE
         Pl_Id PARAMLIST;
    BEGIN
         Pl_Id := GET_PARAMETER_LIST('tempdata');
         IF NOT ID_NULL(Pl_Id) THEN
              DESTROY_PARAMETER_LIST(Pl_Id);
         END IF;
          Pl_Id := CREATE_PARAMETER_LIST('tempdata');
          ADD_PARAMETER(Pl_Id, '', TEXT_PARAMETER, '');
          Open_form('', ACTIVATE, SESSION, Pl_Id);
    END;
    

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

    Published by: Manu. April 14, 2010 09:16

  • Passing variables between Forms

    Hi, I am currently working on a rock, paper, scissors project in my class oracle. I was wondering if an oracle form to pass variables between them. I created a login form, and I would once a user logs on to change his user name to one opponent text fields username in the form of game. Is it possible and in this case you may be able to show me an example of passing variables between Forms? Thank you

    You can use the Globals for this purpose. I mean in your login form when your will enter its correct information then and it press OK to the newspaper by so you can for example store their username in the GLOBAL variable

    :GLOBAL.USERNAME:=:FORM.FIELD_NAME;
    

    This global variable, you can access a form any of the current session.

    -Clément

  • Interface between LabVIEW and c#

    Hello

    IAM trying to send data to Labview via ithernet in a product that already have in c# .net. This means that data send LabVIEW must be posted in c#. Thus the Labview will act as the server and the product in c# will be serving the customer. I have serached in the forums to make the connection between Labview and c#. I saw a tutorial to make dlls in labview, in what they explained to hold tools > Build Application or shared Library.But I can't find in my tools although I version2009 of professional development.

    Can someone give me some instructions to send Labview data and display it in c#. IAM attaching the VI Server I made. The client in c# is a great product that has already done by others in c#. I have very less experience of programming in c#. Can someone give me some instructions or attach a few tutorials to make the connection between Labview and c#.


  • LabVIEW and TestStand compatibility chart

    Hello

    There are various compatibility tables LabVIEW NOR as this Web site but it seems not to be a LabVIEW and TestStand compatibility chart.

    I think I found my answers, but I had to get through all the Notes version of TestStand to get.

    Hi Ray,

    The lists of the political of TestStand page on the different version of TestStand compatibility with:

    • Operating systems
    • LabVIEW
    • LabWindows/CVI

    (In addition to information about the cycle of life and support policy)

    Specifically, here's a screenshot of LabVIEW support:

    With each new version of TestStand, we will update the policy life cycle page, so you can always go for information.

  • Connect the large number of parameters and variables between Verstand and model of Labview

    We have an installer of dyno with a chassis PXI-E running Veristand 2014 and 2014, inertia. In order to strengthen the capabilities and timing of the Veristand, I would use models of Labview to perform tasks is not possible by Veristand and inertia. An example of this is to determine the maximum amount of a large number of thermocouples. VeriStand has a comparison function, but it compares two values at once. This makes long and rigid emissions. LabVIEW, on the other hand, has a function which words one to get the maximum items in a table in one step. I need to use Labview to 'send' the thermocouples of 50 or more to the Labview model. In addition to the variables that must be communicated between Veristand and Labview, I also need to present Labview with the threshold and setting parameters. Forums and user manuaIs understand that you must use the connector pane in Labview Veristand System Explorer mapping to expose the inports and isolated villages. The problem is that the part of Labview connector is limited to 27 I/O. How to overcome this limitation?

    BTW. I'm relatively new to Labview and Versitand.

    Thank you.

    Richard

    You can work around this limitation by putting your orders and clusters indicators. Then set the cluster to be required or recommended to indicate whether contained controls are entered or parameters, just normal.

  • Pass parameter value between c# and TestStand

    Hello

    I'm currently futured, customize the User Interface complete

    I Test.seq master who has all the tests and I need to run only the selected test user in the user interface.

    so I thought to transmit the selected user code c# UserInterface test form to master Test.seq.

    How can I pass the value of the parameter or is there another way I can share data between USerINterce and seq file?

    Thanks in advance

    IVI


  • Queues of LabVIEW and TestStand

    Hello

    I have a VI that uses several loops/queues to acquire data from a data logger and write the data to a csv file.

    What I want to do is start this TestStand VI and run data acquisition/writing until certain conditions require the data logger to be returned to power.

    Is it possible to pass a reference to the queue of the VI running somehow to TestStand and update the queue of TestStand to stop/start datalogging necessary?

    Maybe there's a better way to do it?

    Any help is greatly appreciated!

    Thank you best regards &,.

    Shane.

    TestStand access not directly a queue in LabVIEW.  TestStand and LabVIEW do not share an instance of the application.

    I Assume you called the QMH asynchonously so that the Launcher ends while the QMH continues to run

    Pass the reference queue to TestStand (U32) and call a specific "Enqueue for MySpecific Queue.vi" LabVIEW Module with the appropriate ref and data.  All this presupposes the QMH remains in memory.

    This example gets to be excessively complex, so I tend to use the Action with TestStand engines.  Loading and unloading options need attention though as long as the shift register (and, therefore, private data) leave no memory until you want to close the three-year

  • bbUI.js - passing variables between screens

    Hello

    I tried something using the framework bbUI.js and it seems to be pretty easy to use if it becomes more stable in future releases. But I could not find a way to set some global variables between screen-change (push and pop/back). Is it possible to define some vars on the bbUI init and use them on a screen to change the values and also back on the same screen to read values?

    Concerning

    Hello!

    Please search the forums before posting

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/how-to-pass-params-to-the-next-s...

    See you soon

  • pass variables between classes

    Hello! I'm new to flash actionscript and I make a small game right now. I thought to create separate movieclips for each level of play and their assigned separate classes is cleaner and easier to code.

    for example: -.

    level 1 - level1.as

    level 2 - level2.as

    Level3 - level3.as

    My problem is how to pass variables (such as health, score, etc.) to a higher level?

    Please help I'm stuck on this and I have searched a lot but couldn't get the right answer...

    Oh, and I use cs3 flash with actionscript 3.0

    I don't think you really understand what are classes and movieclips.

    MovieClips are display objects; your character, the enemy, elements, platforms< these="" will="" be="">

    Classes can be used to define new elements or extend those which already exist, such as an object or a MovieClip.

    For the purposes of making a game, I would separate levels of executives.

    do level 1 on a frame labeled "level 1".

    and level 2 on a frame labeled "level 2".

    variables will carry an image to the image.

    Use gotoAndStop (frame_label) to switch between levels

    * Make sure you use stop(); on the first image to prevent bike between the frames.

    * You can make the frames between each level that has the code "gotoAndStop(previous level)" to prevent people to hit 'play' on the swf file and the cycling through your levels.

    You can also search for SharedObjects as a method of storage of variables even after that the swf file is closed.

  • Communication between LabVIEW and MCU based on Modbus Protocol

    Hello

    I am a first year student in the port.and series applications see you, my projiect needs to communicate between LV and MCU based on Modbus Protocol.all configure it are correct, but the lv to send false information which is not suitable for modbus.i do not know how to fix it.

    My programs are:

    Why did you decide to write your own code instead of what is already available? If you had done a search, you would have easily found the modbus library. Just give a try.

Maybe you are looking for