Continuously run a vi and pass data to it while going through TestStand sequence

I'm very new to TestStand and I feel that what I'm trying to accoplish is very basic, but I can't seem to figure it out.
What I am trying to do in TestStand is 
1st step in sequence: Open a .vi (keep it open) and continuously loop through it (transmits a message every 5 seconds)
Continue to the next step in sequence while main .vi is open and running
Each additional step in the sequence passes data to the main .vi (running above) to transmit a new set of data
Any detailed help would be appreciated.

I threw this together in like 10 minutes so it's not the best but it's simple.  It updates every 1 second.  The key is using the Asynchronous Step type.  The other option is to call a sequence in a new thread and call a VI in there.  Take note of the usage of the Termination VIs.  Those are important when running Asynchronous VIs.
Good Luck.
Let me know if you have any other questions.
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~
Attachments:
AsyncVI.seq ‏9 KB
AsyncVI.vi ‏15 KB

Similar Messages

  • How to call routine and pass data to routine in vofm

    Hi Experts,
    I need to update KBETR and KWERT values present in 'Conditions Tab' in Purchase Order (ME21N/ME22N).
    I have created a new customer tab in which we enter amount field and  percentage filed. When user enters some value in this and clicks on 'Conditions Tab', calculation has to be done and the calculated value has to be appeared across a specific condition type.as i am new to abap  i dont know how to create routine and pass data to routine in vofm from customised tab in me21n .
                                                                                                                                                                          Thank's in advance

    Hello Rajendra,
    You can get plenty of forums in SCN related to it. Follow below steps to create VOFM routine.
    Go to VOFM Transaction Code
    1. On the Menu Select required Application i.e Pricing
    2. Enter any Number in between 600 to 999 for Custom Developments.
    3. On entering Pop Screen appears ask for Access Key(We have to remember that Every New Routine needs an Access Key)
    4. Once the Access Key is received we can do modification.
    5. Enter the Routine Number ,description and insert the Access Key
    6. Now the ABAP Editor will open and required code can be copied from Standard SAP Routine and Custom Code Can be developed.
    7. Once the coding is completed we have to Activate the Routine
    8. Select the Routine and Go to Edit – Activate
    9. Ensure that Active check box is ticked upon Activation of the Routine.
    10. Double click on the routine will enter into ABAP Editor, we have to generate the Routine
    11. Go to Program and select Generate
    12.A screen pops up with the related Main Programs  and select all required main programs wherever the Routine is being called.
    13. Once the Routine is Generated and Activated, We need to configure the Routine in the config.
    ** Important SAP note: 156230.
    Check the below document too.
    http://www.scribd.com/doc/35056841/How-to-create-Requirement-Routines
    Regards,
    Thanga

  • I need to pass data from an Access database to Teststand by using the built in Data step types(open data

    base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1i need to pass data from an Access database to Teststand by using the built in Data step types(open database /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1
    When I tried the same thing on another cmputer the same thing
    happend
    appreiciate u"r help

    base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1Hello Kitty -
    Certainly it is unusual that you can still see the tables available in your MS Access database but cannot see the columns? I am assuming you are configuring an Open Statement step and are trying to use the ring-control to select columns from your table?
    Can you tell me more about the changes you made to your file when you 'changed' it with MS Access? What version of Access are you using? What happens if you try and manually type in an 'Open Statement Dialog's SQL string such as...
    "SELECT UUT_RESULT.TEST_SOCKET_INDEX, UUT_RESULT.UUT_STATUS, UUT_RESULT.START_DATE_TIME FROM UUT_RESULT"
    Is it able to find the columns even if it can't display them? I am worried that maybe you are using a version of MS Access that is too new for the version of TestSt
    and you are running. Has anything else changed aside from the file you are editing?
    Regards,
    -Elaine R.
    National Instruments
    http://www.ni.com/ask

  • I've just upgraded to iPhone 4S and restored data from my old iPhone through iTunes.  I'm being asked for a password to get into my phone and the old password I had doesn't work.  I don't know what password it's looking for

    I've just upgraded to iPhone 4S and restored data from my old iPhone through iTunes.  I'm being asked for a password to get into my phone and the old password I had doesn't work.  I don't know what password it's looking for

    Thanks for replying, I'm a real techno-cretin.  What do you mean by not using the backup?  I'm busy trying to restore my new phone and it's doing a 6 hour download with updates.  Can I restore the data from my old phone backup onto the new iPhone 4S when the download is done?

  • I used to be able to download files from the Harddrive of my Sony Handycam, but now it won't let me import them while going through "log and transfer."  I have tried to update my settings, but this doesn't seem to work.  Any help would be much appreciated

    I used to be able to download files from the Harddrive of my Sony Handycam, but now it won't let me import them while going through "log and transfer."  I have tried to update my settings, but this doesn't seem to work.  Any help would be much appreciated

    Hard Drive:  The Hard Drive is on my camera (Sony Handycam)
    Just needed some info on what is going on with your particular system.
    Knowing the exact camera model will also assist us.
    If this camera is standard AVCHD you should be able to connect with USB to Mac with FCE open and use Log and Transfer without all the fiddling around converting etc.
    What FCE does during ingest is convert files to AIC. (Apple Intermediate Codec)
    FCE cannot read the individual files in the BDMV folder, that's why all the converting is required when you use that method.
    BTW: regards formatting drives/cards/memory on cameras; it is wise to use the actual device to format rather than a computer. This is a prime cause of read/write goof ups with solid state media. This applies to still or video cameras.
    Keeping the COMPLETE card/memory structure in tact is vital for successful transfers.
    Try here for some trouble shooting tips:
    https://discussions.apple.com/message/12682263#12682263
    Al

  • SIT Real-time data logging and passing data

    Hello all,
    I am pretty new to LabView real-time, so I just want to confirm a few things. I am also using the Simulation Interface Toolkit.
    Let's take the Sinewave.vi from the SIT examples. I have modified it to use sinewave.dll, and run on PXI-8101. If my understanding is correct, when I click "Play", the entire Sinewave.vi is deloyed into PXI-8101, and therefore the entire VI is running at the same pace. The front panel I see on my desktop is slower snapshots of what is actually happening?
    1) Let's pretend now that the sinewave model is time critical and must run every 10ms. How do I do that? I have noticed that within the "SIT_Indicator_Indices" loop, there is a Wait 50ms block. Is that accurate?
    2) I have also added a time elapsed block that will change the Frequency and Amplitude inputs as a function of time. I made them update every 2ms. What clock are we running on? If my sinewave.mdl suddenly calculate integration (time dependent), can I use that elapsed time block as my timer to pass into the model?
    3) How fast is the sinewave.vi running anyways?
    4) Let's say I want a log of the sinewave output (a data point every 10ms). I don't need the log in real-time, I just want to do some analysis on it later. How do I do it?
    Thanks.
    Attachments:
    Sine Wave.vi ‏104 KB

    Hi Bladhart,
    When running the in the Development Environment (pressing the run button on the Real-Time vi) there will be an extra thread to handle the front panel you see. This thread will be handled just like any other thread in Real-Time and will take processor time, thus slowing down your entire application to a certain extent.  
    1. You would need to make sure everthing inside the loop can execute within 10ms and change the wait time to 10ms. Or you can use a timed loop set to run every 10ms and get rid of the wait time but again you would need to ensure everything in the loop can execute in under 10ms.
    2. The elapsed time should be running off the Real-Time system clock. 
    3. The time that the Sinewave.vi is running is system dependent, there is no set speed.
    4. You can log the data by saving to a *.tdms file. You can then use the data from the *.tdms file to do processing later. 
    <Brian A | Applications Engineering | National Instruments> 

  • Scheduling a report in background and passing data for processing

    Hi all,
    Using code (in a report1) ...i  want to execute a report (report2) in background.....but at the same time i want to pass data (an internal table and a variable) to that report2.
    is it possible to pass data like internal table to a executable report and at the same time pass the data to that report.
    Thanks in advance.
    Thanks and Regards,
    Sushil.

    hi
    regarding  Scheduling a report in background check the below thread
    SCHEDULE THE ZREPORT IN BACKGROUND DYNAMICALLY
    regards
    chandra

  • How to auto login and pass data (parameter) to ApEx at the same time

    Does anybody know how to automatically login to apex (e.g. from JSP page) and pass a parameter value at the same time? I can use wwv_flow_custom_auth_std to login, I can even choose a page but I cannot pass any data (at least I do not know how). If I use f?p URL syntax I can pass data but there is no way to pass login/password information.
    Any idea? Thanks Jaros

    Jaros -
    You could copy your login page and make the new page "public". On the new page, add a process before the login process that sets the value of application item FSP_AFTER_LOGIN_URL to the report page URL (with the arguments), e.g.,   :FSP_AFTER_LOGIN_URL := 'f?p=&APP_ID.:100:&SESSION.::NO::P100_X,P100_Y:&RPT_VALUE1.,&RPT_VALUE2.';Create application-level items RPT_VALUE1 and RPT_VALUE2 in the application.
    From your external page, POST to this new "login" page, passing values for the username, password, rpt_value1, and rpt_value2 items.
    Let us know if it works.
    Scott

  • Bidirectional binding and passing data.

    I started learning Flex and I have couple of problem of which I can't see a clear solution.
    Flex 4 has two way binding, but how can I use it with data type different from strings? I receive from a web service dates and numbers, let the user edit them and send them back to the web service. Flex 4 code generator created all the necessary objects, that contain numers and dates types. Presenting them to the user in text fields (or date fields) is easy, but I can't get such a simple way to send them back. When I try two way binding it gives compilation error because it think I'm trying to force a cast from String to Number or Date. If I understand correctly, the only way to get the data back to the web service is:
    Introduce validators for Numbers and Dates
    For each of the form element, check if it is valid
    If all of them are valid, convert them manually to the appropriate type
    Populate back the original object with new values (and then send it to the web service)
    Is there a smarter way to let the two way binding work the way is meant to be? Is there some way to set the converter to use when binding back from String to Number?
    By the way, is there some simple way to ask a Form object that all the contained fields are valid?
    The second problem regards passing data among different views: is there a standard way in Flex to "share" data between different mxml files? I have two scenarios:
    A view (mxml file) uses a lot of components (other mxml files, that may include other components as well). There are a few objects, mostly data container, that I'd like to use in most of this hierarchy. Which is the best way to share these objects? Do I have to set something static in the root view and have all the other components access them statically? Or do I have to write setters in all the components in the hierarchy and pass all the objects down the hierarchy? Is there a quick way to set up a sort of "session" for this hierarchy and access it?
    A view (mxml file) presents a list of results. Selecting/clicking on one of the results the user goes to another view (mxml file, may be a module), but in the new view I need a reference to the data the user selected in the previous view. The first solution here seems to be using an event and passing the data with it, but is there any other way? I'm looking for something that can cover both this and the previous case.
    Any suggestion is welcome. Sorry if the question was already posted but I didn't find any clear answer.

    This works as expected for me: I see the text "invalid" any time a change occurs to the text in the text field that causes the value of the DoubleProperty to change.
    E.g.:
    Select the default value (42.0); press a non-numeric key to change the text. The invalidation listener is invoked.
    Delete the text. The invalidation listener is not invoked (the text is now "", which causes a NumberFormatException, the double property is "set" to zero, which is no change so there is no notification).
    Enter 0. There is no notification (the value of the DoubleProperty has not changed).
    Enter a non-zero numeric value. The invalidation listener is notified.
    Change to zero. The invalidation listener is notified
    Change to non-numeric text. The invalidation listener is not notified (the value of the DoubleProperty has not changed).
    If you're expecting the text to update to zero when non-numeric text is input: I guess the implementation is something like
    if (! converter.fromString(text).equals(value)) {
         // updateText
    in the binding's method that listens for changes in the DoubleProperty. This is similar to not seeing "1.0" appear in the text field when you type "1"; or "123.0" appearing when you type "0123", etc.

  • Calling a new browser window with WD Abap and passing data via POST

    Hi there,
    does anybody know whether passing data via POST method is possible when opening a new browser window from within a Web Dynpro Component? In my case I use method IF_WD_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW for opening a new browser window. Now I want to pass a big amount of data which is only possible via POST method. How can I achieve that or is it not considered inside the Web Dynpro Framework?
    Kind regards,
    Albert

    Hi Priya,
    can you please explain a little bit more what you mean? I didn't get it..
    Kind regards,
    Albert

  • Filtering and passing data to destination in Xcelsius

    Hi friend,
    I wanted to know the logic to implement a scenario in Xcelsius. Lets say I am having Year,Company and Revenue data in Xcelsius.
    Year--Company--
    Revenue
    2002--Company1--
    1000
    2003--Company1--
    2000
    2004--Company1--
    3000
    2002--Company2--
    1000
    2003--Company2--
    2000
    2004--Company2--
    3000
    2002--Company3--
    1000
    2003--Company3--
    2000
    2004--Company3--
    3000
    I will map the values of year to a combo box with insertion type = "Filter" so that only unique entries can be flowed to combo box. When user will select a entry then that year value will be flown to a destination.
    What I want is when user selects lets say 2003 in combo box then 
    2003--Company1--
    2000
    2003--Company2--
    2000
    2003--Company3--
    2000
    All data of 2003 should go to a destination where I can map this to a Bar chart.
    What should be the approach.
    Thanks,
    Gaurav

    Hi Gaurav,
    Filter combo box wroks on unique row only.To get multiple entries in Destination you need to pull the data in row wise,
    Like in your case,
    If user selects 2003you could have designed like,
                 company1    company2    company3
    2003    1000                 2000             3000
    now select this as a Source whenever user will click on 2003 FilTER combo box will take whole rowas asource and can fill it in your destination which will gain remap to your chart,
    I have tried the same thing,
    Hope it helps you,
    Thank you,

  • Help on measuring and labelling data from 4 different probes through LCR E4980A using labview

    CONDITION:
    Need to measure impedance (Z,theta) from 4 different probes using Agilent LCR E4980A meter through labview
    Here is how this is done. Using two different vi's.
    1-Switching vi-which is measuring impedance from Probe1 and switch to probe 2 and probe 3 and then to probe 4. (use medium rate on LCR)
    2-Test vi-which uses a single frquenccy list from a text file to run continous sweep and stores the measured data in a file.
    Test runs for about 1 hour.
    ISSUE:
    The stored data does not tell or label which data is for probe 1 or probe 2 and so on. All 1 hour data is in one file and very difficult to point to corresponding probe and kind of useless.
    QUESTION:
    As there are two separe vi's being used, is there a way to record or label the data withe the corresponding probe number or some way to point probe with data recorded? Any help would be appreciated.

    Thanks! Mike for your reply.
    I am attaching three files, I hope this helps to understand.
    1-Frequency List.txt - is just frequency listed in txt file to run LCR continously
    2-Frequency Sweep Data Capture.vi - is the labvie vi which runs and stores LCR data in a file
    3-LCR Switching in labview (jpg) is also a vi which switches between 4 probes for measurement.(e.g. Probe1-Ref-A, Probe2=Ref-B, Probe3=Ref-C and probe4=Ref-D)
    From here lets say when program measures probe1 , the data stored from file 2 should somehow points to that and then the program switches to probe2 the data should show that and similarly other two probes. Currently the stored data is one big fle with no mention of which data is for which probe.
    Attachments:
    Frequency Sweep Data Capture.vi ‏136 KB
    LCR switching labview.JPG ‏99 KB
    Frequency List.txt ‏46 KB

  • How to send a string to CVI .c and get string return through TestStand sequence?

    Hi, I am using TestStand 3.1 and I have the StringConverter.c with CVI 8.0 with the function:
    char * string_concat_2 (char* str1,char* str2)
     char * str_ret;
     str_ret = calloc(200, sizeof(char*));
     str_ret = strcat (str_ret, str1);
     str_ret = strcat (str_ret, str2);
     return str_ret;
    I would like to use it  through Teststand, so I add a sequence using 'StringValueTest'. I Spectify Module CVI &  link to StringConverter.c and type in Function Name: char * string_concat_2 (char* str1,char* str2)
    1. How I define to send the string1 ("Hello") & string2 ("World") to the Module?
    2. How I define to string return ("HelloWorld" from the Module?
    Thanks

    Hi plit string,
    You will need to have a parameter passed by reference to return the
    string.  To do this, use a "C String Buffer" instead of a "C String
    (const)" parameter type.  There is documentation on this in TestStand
    Help.  Here is a quote from there:
    "When using string parameters, use the C String Buffer or Unicode
    String Buffer type if you want the function to be able to change the contents of
    the argument in TestStand. Use the C String or Unicode String type if the DLL
    function does not modify the argument. You can pass a literal string, a
    TestStand string property, or an expression that evaluates to a string as the
    value of a string parameter."
    Gavin Fox
    Systems Software
    National Instruments

  • Top of page data is repeated while going back from alv report

    Hi,
       In my alv report , I call ed TOP_OF_PAGE.   Data regatding top_of_page is stored in internal table.
       After executing the report,while going back from report,  a screen containing top_of_page data is appeaing.
       Even though I cleared that table,still that data appeared.
      Please resolve this.

    Hi all,
       I cleared that table previously .
       Still that screen appears.
    This is my following code.
    PERFORM top_of_page.            " Subroutine for Top-of-page
    *Display Report
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            I_INTERFACE_CHECK                 = ' '
            I_BYPASSING_BUFFER                = ' '
            I_BUFFER_ACTIVE                   = ' '
              i_callback_program                = lv_repid
            I_CALLBACK_PF_STATUS_SET          = ' '
            I_CALLBACK_USER_COMMAND           = ' '
              i_callback_top_of_page            = 'TOP_OF_PAGE'
            I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
            I_CALLBACK_HTML_END_OF_LIST       = ' '
            I_STRUCTURE_NAME                  =
            I_BACKGROUND_ID                   = ' '
            I_GRID_TITLE                      =
            I_GRID_SETTINGS                   =
            IS_LAYOUT                         =
              it_fieldcat                       = lt_fieldcat[]
            IT_EXCLUDING                      =
            IT_SPECIAL_GROUPS                 =
            IT_SORT                           =
            IT_FILTER                         =
            IS_SEL_HIDE                       =
            I_DEFAULT                         = 'X'
            I_SAVE                            = ' '
            IS_VARIANT                        =
            IT_EVENTS                         = it_events
            IT_EVENT_EXIT                     =
            IS_PRINT                          =
            IS_REPREP_ID                      =
            I_SCREEN_START_COLUMN             = 0
            I_SCREEN_START_LINE               = 0
            I_SCREEN_END_COLUMN               = 0
            I_SCREEN_END_LINE                 = 0
            I_HTML_HEIGHT_TOP                 = 0
            I_HTML_HEIGHT_END                 = 0
            IT_ALV_GRAPHICS                   =
            IT_HYPERLINK                      =
            IT_ADD_FIELDCAT                   =
            IT_EXCEPT_QINFO                   =
            IR_SALV_FULLSCREEN_ADAPTER        =
          IMPORTING
            E_EXIT_CAUSED_BY_CALLER           =
            ES_EXIT_CAUSED_BY_USER            =
       TABLES
              t_outtab                          = lt_meter
       EXCEPTIONS
              program_error                     = 1
              OTHERS                            = 2
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    perform clear_data.
    endif.
    FORM top_of_page .
    Declaration of local variables, structures and internal tables
      Data : lv_count      TYPE i,
             lv_count_c(9) TYPE c,
             lt_header     TYPE slis_t_listheader,
             wa_header     TYPE slis_listheader,
             lt_line       LIKE wa_header-info.
    Title
      clear lt_header[].
      wa_header-typ  = 'H'.
      wa_header-info = 'Meter Readings Report'.
      APPEND wa_header TO lt_header.
      CLEAR wa_header.
    Total No. of Records Selected
      DESCRIBE TABLE lt_meter LINES lv_count.
      lv_count_c      = lv_count.
      CONCATENATE 'Total Number of meters readed for given cycle: ' lv_count_c
         INTO lt_line SEPARATED BY space.
      wa_header-typ    =    'A'.
      wa_header-info   =    lt_line.
      APPEND wa_header TO lt_header.
      CLEAR: wa_header, lt_line.
    *Display Top-of-page
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = lt_header.
    ENDFORM.                    " TOP_OF_PAGE
    *&      Form  CLEAR_DATA
          text
    -->  p1        text
    <--  p2        text
    form CLEAR_DATA .
    data : lt_header     TYPE slis_t_listheader.
    clear lt_header[].
    endform.

  • Extremely loud and damaging audio peaks while scrubbing through busy sequences (health hazard)

    Hi,
    I am editing in Premiere Pro CC (2013) and I have repeatedly experienced the problem while scrubbing through a busy sequence where a very short audio sample (milliseconds) will blast through my speakers damaging my speakers and my ears. It normally occurs while I am quickly navigating between parts of my sequence that have multiple audio layers which leads me to believe it is an audio rendering issue. The audio sample that plays is extremely loud (many times louder than the media in the sequence) and causes me pain, being a full time editor this is extremely damaging to my hearing. I need to have audio scrubbing enabled whilst editing and I am hoping for a workaround to stop this problem whilst keeping audio scrubbing enabled.
    My system:
    Audio playback set to built in output (I use headphones)
    2.6 GHz Intel Core i7
    16 GB 1600 MHz DDR3
    NVIDIA GeForce GT 750M 2048 MB (Cuda enabled)
    OS X 10.9.4

    7.2.2 is the last release of CC7. And as I already noted it contains the fix I was referring to, which apparently doesn't resolve the issue you're encountering. If you started this project in an earlier release of CC7, it's possible that it is the same bug and, though fixed in your current build, it's continuing to present itself because it's basically saved to the audio preview files. In that case, clearing the audio preview files would get you free and clear of the bug.
    Note, by the way, that 7.2.2 is not the current version. CC2014 was released in June of this year, followed by 2014.0.1 in July.

Maybe you are looking for

  • Re: PC connection to TV

    I have read the manual and done everything it has said. Now my pc boots up on it ok but my TV keeps telling me no signal after the boot-up is done. Any ideas on how to fix it?

  • Sharepoint 2010 - Multiple line of text column with Plain text type

    Hi All, I have list where multiple lines of text with plain type column is used. When I start entering information in multiline text box in new form, I faced following problem, I typed enough information so that scroll bar is visible. When I stopped

  • Image DNA?

    I'm building a new website for my small business. I'm going through **** with all the haphazard picture storage in my computers over the years! I have saved pictures in the most odd folder names... like **temp1.  My original intent was to temporarily

  • Error using COLLECT

    When I try to use collect() in a query to try and get a quick and dirty pivot, I get an ORA-00932. Anybody have any suggestions on what could be up? Using 10.2.0.4 select tablespace_name, collect(table_name) as table_name_coll from all_tables group b

  • Unable to synch BB 9800 Torch with Outlook Calendar

    I used to be able to synch my BB 9800 Torch calendar with the calendar in Outlook.  This now seems to be not possible.  Is there a solution or just a failure on the part of BB to inform Solved! Go to Solution.