Pulling in a variable into TestStand from an externally running LabView Vi ?

Hello,
My coworker has a problem and I'm tyring to help him.
We have a functional test written by an outside company, using TestStand 4.1
He has a LabView Vi with an Thermotron driver that monitors  a chamber temp and outputs an INTERVAL number ( 1 intervel every x minutes)
That interval number is written to text file.
We would like to loop the Main function of the TestStand sequence based on that Interval number, but I'm unsure how to read that variable from within Test Stand.
I can either pull interval numbers from the text file, or set up logic in the VI to make a true / false flag based on interval numbers
i.e. interval 30 - 60 run the test....61 to 75 pause (dont run test)....76 to 125 run test...etc
Can you tell me how I might pull that interval into TestStand ?
Is there a way without incorporating the stand alone VI in question into the Test Seq ?
Thank you for any advice in advance !
Solved!
Go to Solution.

Hi,
Are you saying that you want to read this value stored in your text file and use this value to set the number if iteration of your test sequence loop.
You will need a piece of software that will obtain the value from your file and then pass this back into TestStand to store in a teststand variable, probably a local. TestStand doesn't have the built in function to directly read the data from your file.
Therefore you will need a code module attached to say an Action Step Type. The code module can be written in any one of the supported language, as you mentioned LabVIEW then maybe this is your perferred language. So your VI need to obtain the data from your file and return the value back to TestStand and you do this by sending your data out of your VI via its connector pane and then in teststand assigning a Teststand variable to your output connection of your VI.
I am assuming you have the basic knowledge of setting up a Step in TestStand.
Regards
Ray Farmer

Similar Messages

  • Passing variables into CVI from TestStand.

    Is there a different way to send variables into CVI from TestStand other than the input buffer? Parsing that string is annoying and bulky. Isn't there an easier way?

    Hi,
    Here is a short cut to another example which will use the StationGlobals -
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=313&HOID=506500000008000000301F0000&UCATEGORY_0=_8_&UCATEGORY_S=0
    There are loads of other examples either as part of the examples provided by TestStand installation or in the Resource Library under TestStand on the NI website
    Good Luck
    Ray Farmer
    Regards
    Ray Farmer

  • How to pull resource (equipment) times into BI from ECC

    Hi Experts,
    i want to know How to pull resource (equipment) times into BI from ECC plz help me to this..
    plz tellme step by step analysis ....how can find the data sources ....  
       Its very argent.........plz any one help me
    Venkat

    Hi
    Didn't understand your question. Do you want to extract that field from R/3? Please elaborate

  • When loading songs into iTunes, from my external hard drive. It seems to be copying the music onto my MacBook Air.

    When loading songs into iTunes, from my external hard drive. It seems to be copying the music onto my MacBook Air.
    How do i have iTunes only read the songs from my hard drive, rather then copying them?

    You may find these Links of Interest...
    Moving iTunes Media Folder
    http://support.apple.com/kb/HT1449
    http://macmost.com/moving-your-itunes-media-to-an-external-drive.html

  • HT204259 iPhoto library imported into Photos from an external hard drive

    Although I've imported my iPhoto library into Photos from an external hard drive, I cannot access them unless the external hard drive is connected to my laptop. I thought Photos was supposed to save what I import into the Photos Library on my laptop hard drive. What am I doing wrong?

    Although I've imported my iPhoto library into Photos from an external hard drive, I cannot access them unless the external hard drive is connected to my laptop. I thought Photos was supposed to save what I import into the Photos Library on my laptop hard drive. What am I doing wrong?

  • Select (variable) into:parameter from xyz , dynamic sql

    hello everyone
    I have a table with the columns KZ01*01*, KZ01*02*, KZ01*03*.....
    I want to select the value from one column depending of a variable z.b. varable=3 I want the value select KZ01*03*
    I wrote the trigger post_querry:
    declare
         v_kfz string(20);
    begin
    v_kfz:='select KZ010'||:daten.lkw||'into :kennzeichen from r_bestellung@r where nummer=:daten.r_bestell_nummer';
    Forms_DDL(v_kfz);
    end;
    alternativ I tried:
    execute IMMEDIATE 'select KZ010'||:daten.lkw||'from r_bestellung@r where nummer=:daten.r_bestell_nummer'
    I am using Form builder 6.0.... and Oracel 8i
    what I am doing wrong, thanks for helping
    regards
    robert

    I think there was good example in form but here is the example for your crieteria.
    DECLARE
         vSqlStr VARCHAR2(1024);
         cursor_number EXEC_SQL.CursType;
         vRecCount NUMBER;
      vReturnedValue DATATYPE; -- Set this datatype upon table field
    BEGIN
         cursor_number := Exec_SQL.Open_cursor;
         -- Here variable your field name
         -- for numeric
         vSqlStr := 'select '||<VARIABLE>||' from r_bestellung@r where nummer='||:daten.r_bestell_nummer;
         -- for characters
         vSqlStr := 'select '||<VARIABLE>||' from r_bestellung@r where nummer='''||:daten.r_bestell_nummer||'''';
         -- From above use only one on your requirement
         EXEC_SQL.PARSE(cursor_number, vSqlStr);
         EXEC_SQL.DEFINE_COLUMN(cursor_number,1,vReturnedValue,30);
         vRecCount := EXEC_SQL.EXECUTE(cursor_number);
         IF EXEC_SQL.FETCH_ROWS(cursor_number)=1 THEN
           EXEC_SQL.COLUMN_VALUE(cursor_number,1,<:FORM_FIELD_NAME>);  -- Here form_field_name replace with you current form field.
         END IF;
         EXEC_SQL.CLOSE_CURSOR(cursor_number);
    EXCEPTION
      When EXEC_SQL.INVALID_CONNECTION Then
         message('Unexpected Invalid Connection error from EXEC_SQL');
      When EXEC_SQL.PACKAGE_ERROR Then
         message('Unexpected error from EXEC_SQL: '||to_char(EXEC_SQL.LAST_ERROR_CODE)|| EXEC_SQL.LAST_ERROR_MESG);
      If EXEC_SQL.IS_OPEN(cursor_number) Then
        EXEC_SQL.CLOSE_CURSOR(cursor_number);
        message('Exception - Cleaned up Cursor');
      End if;
    END;-Ammad

  • My computer recently crashed.  I had everything on an externa drive.  I'm trying to reload my music into itunes from my external drive.  I do not have an itunes library document for some reason.  How do I get my library back onto itunes?

    I'm trying to figure out how to access my music library from my external drive.  I do not have a media library document and believe that I would have to create one based on the music that is on my external drive.  Can someone help?

    If you're running Windows 8.1, this seems to be a common theme, or some variation there of at least. Myself, I can't even back-up on my iPhone 4S which has iOS 7.1.2 and I'm running iTunes 11.3.0.54 and have resorted to purchased the iTunes Match service to ensure that music on my primary desktop PC (which is paired to my iPhone) will be available on both the iPhone and my Windows 8.1 laptop. Regarding backing up of the iPhone, I'm thinking about going to a third party solution until either Apple and/or Microsoft can figure out why Windows 8.1 is having so many problems with the current version of iTunes (as of this writing 11.3.0.54).

  • Reg: IDoc is u0091pushedu0092 into SAP from the external EDI system

    Iam facing one issue in our system for message type DESADV (inbound). please read through .
    "When an IDoc is pushed in from the external EDI system & even though the inbound Partner Profile is set to immediate processing mode:
    The IDoc stays in status 64 - 'IDoc ready to be transferred to application'. This assumes that the IDoc has not been processed yet and still needs to be processed with program RBDAPP01 (or via the “process” button in BD87).
    We don't want to again run this program "RBDAPP01". What was the problem.
    I appreciate ur help.

    Hi Krishna,
    In some other scenarios if an IDocs remains in status 64, it means that the processing within the IDoc engines did not reach its end, where the new status could be set. There are two principal reasons:
    1. In the matching partner profile the processing is not set to "Trigger immediately"
    2. The application that processes the IDoc abnormally ends with a fatal error (crashes). If this happened you will see a trace in the system log (ST22). In this case have the satellite system write the file to disk but you trigger the EDI_DATA_INCOMING. Then start EDI_DATA_INCOMING from SE37 manually and debug yourself through the individual steps. A good start would be to set a break-point in the application handling function (in your case: IDOC_INPUT_DESADV ).
    If useful do reward.
    Regards,
    Adarsh Srivastava

  • How to pass table type variable into function from SQL*PLUS ?

    How to pass a table type variable from sql*plus prompt into a function ?
    Thanx in advance.

    Krishna,
    Do you mean like this?SQL> DECLARE
      2      TYPE t_tbl IS TABLE OF VARCHAR2(20);
      3      l_sample_tbl           t_tbl;
      4
      5      FUNCTION print_contents ( p_tbl IN t_tbl )
      6      RETURN VARCHAR2
      7      IS
      8          l_string            VARCHAR2(1000);
      9      BEGIN
    10          FOR i IN 1..p_tbl.COUNT LOOP
    11              IF (i = 1) THEN
    12                  l_string := p_tbl(i);
    13              ELSE
    14                  l_string := l_string || ', ' || p_tbl(i);
    15              END IF;
    16          END LOOP;
    17          RETURN (l_string);
    18      END print_contents;
    19
    20  BEGIN
    21      l_sample_tbl := t_tbl();
    22      l_sample_tbl.EXTEND;
    23      l_sample_tbl(1) := 'one';
    24      l_sample_tbl.EXTEND;
    25      l_sample_tbl(2) := 'two';
    26      l_sample_tbl.EXTEND;
    27      l_sample_tbl(3) := 'three';
    28      l_sample_tbl.EXTEND;
    29      l_sample_tbl(4) := 'four';
    30      l_sample_tbl.EXTEND;
    31      l_sample_tbl(5) := 'five';
    32      DBMS_OUTPUT.PUT_LINE(print_contents(l_sample_tbl));
    33  END;
    34  /
    one, two, three, four, five
    PL/SQL procedure successfully completed.
    SQL> HTH,
    T.

  • Pass Variables into Flash from URL

    I have a real simple request for some reason cannot pull it
    off. I have a url that looks like this:
    http://mywebserver/directory1/directory2/webpage.html?name=Mark
    I am trying to pull the variable "mark" into a swf. The URL
    will change depedning on the user and I plan on adding additional
    variables as well (lastname, state, age, etc).
    Easy answer to this? If so, please excuse my ignorance. I use
    actionscript 2 but would consider myelf a novice as I am more into
    design.

    Using FlashVars would work, as would SWFObject - which is
    what I'd use. Glad
    yout got it though.
    Dave -
    www.offroadfire.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Uploading my photos into iPhoto from an external hard drive

    I have all my old digital photos (approx 17GB) on an external hard drive. I would like to upload them in to iPhoto on my iMac (OS X 10.6.8)
    Some questions:
    How can I stop any duplicate photos being uploaded into iPhoto (I already have small number of the old photos in iPhoto)
    How do I upload the photos into 'Events'? What is the difference between Events and Albums?
    Do I need to rename the albums on the hard drive before I upload them with new album names?
    How can I delete duplicate photos I already have in iPhoto?
    and lastly the iMac is set up with 4 users accounts on it - how do I share (in iPhoto) all these newly uploaded photos with the other users
    So many questions, but If I do it right now it will save me hrs of work sorting all the photos out and renaming them all when they are in iPhoto

    and lastly the iMac is set up with 4 users accounts on it - how do I share (in iPhoto) all these newly uploaded photos with the other users
    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • Importing into iPhoto from large external storage

    I am sure this has been answered before but I confess I cannot find an answer that allows me to do what I would like, so I apologize if this is redundant and in which case a pointer to the right place would be appreciated. Here is my problem, I have been taking digital photos since the start of digital photography, I have around 40,000 nicely filed and categorized. I have a master Photo directory which contains a bunch of generic subject matters, family, kids, etc. Then there are folders named simply by year, one set for business, one for family, and a few more for special circumstances. These each contain folders with subject matter with each subject matter folder name preceded by a 6-character date (yymmdd), so I'll have "090812 Trip to Estonia", and then maybe "100828 Bertie's Birthday Party" and so on. Thus everything sorts nicely on a calendar-time basis and I can find stuff easily and quickly. I have been doing this for decades. I use Photo Mechanic as a file manager because I have found nothing faster or more complete - JUST for photo management, which is exactly what I want, and I use Photoshop for fiddling and messing around.
    But - I would LOVE to use some of the iPhoto features.
    So - How can I get iPhoto to manage some of my photos. Not all of them, that would be excessive, but say the last 10 years of family pictures and maybe some selected other folders.
    I really do not want to duplicate everything in two places, can iPhoto use links to the originals and then manage the links in its own manner? I do not want to change my current organization structure, for one thing it is duplicated automatically on two computers and a NAS, then backed up automatically from the computers - all Macs. Also there are two PC users that access and jointly administer the NAS. The Macs then sync-up automatically. So the structure is really not something I can change. But I could do something locally to the Macs to use iPhoto that does not impact the main storage structure.
    Does anyone have any ideas how I might accomplish this? Can iPhoto manage photo collections in the tens of thousands? Any suggestions?
    Thanks - Lawrence

    I have a similar naming convention where the file name is preceded by the YYYYMMDD and the files are located in an event folder (i.e., 2nd birthday, pumpkin picking). Each event is then located in a folder by year. I currently use Canon's software to do this on a PC. (EOS Rebel XTi)
    You can not control the folder structure of iPhoto and should never be going into the iPhoto library so it makes no difference. iPhoto uses the file name of the file when you import so you can control the file names by (and only by) naming the files the way you want and then importing
    For clarification, is this possible using iPhoto?
    As to file names -as to folder names and structure no
    Can I direct iPhoto to do this whenever downloading new pics without using the Canon software and store these files within iPhoto?
    no
    Or is there a way to direct pics into "the iPhone library" using the Canon software?
    No - search the forums - there is a recent topic on scanning to a folder and using Automator to watch the folder and import photos place in it into iPhoto - that would work for what you wnat I believe
    LN

  • Can I import CD's into iTunes from an external Firewire CD/DVD player?

    The CD/DVD player on my iMac G4 broke and just wondering if I can hook up a cheap external Firewire CD/DVD drive (with RW capability) to my iMac and still be able to view DVD's and import CD's into iTunes?
    Thanks for any answer to this question.
    Thanks,
    Dave

    Yes - connect the ext device - open iTunes - load a CD - it shouold appear in the left most column of iTunes under Devices - rip away.
    To use that same ext device to burn then go to iTunes prefs>Advanced>Burning and select it from the drop down menu.
    MJ

  • Unable to load LabVIEW VI into TestStand using LV Run Time only

    I'm unable to load some of my VIs into TestStand from LabVIEW.  I am using:
    TestStand 4.2.1
    LabVIEW 2010
    I have the appropriate patches installed for both TestStand and LabVIEW, and I still get the error.
    Attached is a message that I get when I hover over the "!" to explain my error.  The VI has the "Simple Error Handler.vi" as part of the build, and when I eliminate this VI from my VI, TestStand then loads correctly.
    Thanks,
    Eric
    Solved!
    Go to Solution.
    Attachments:
    TestStand_LoadError_Hover.png ‏16 KB

    This fixed my issue as well. Thank you for posting this. I have repaired LabVIEW 2010 sp1, LabVIEW FPGA, LabVIEW RT, DAQmx, and VISA 5.0. These are not small programs to do repairs on. Even after doing all of these repairs I still had issues with just labview coming up.
    Just by clicking on my lv shortcut to run the labview.exe I would get a loading screen for gws_int.vi This was before opening any projects or VI's. Labview was having many issues. Once the loading vi screen went away the standard labview 2010 startup page was present. But this page was dysfunctional. For example if you clicked tools and then options it would just totally crash LabVIEW, no error message or warning.
    Many people are suggesting to mass compile to fix this, but that is not an option. If you went to tools>advance>mass compile the same loading vi screen would come up (pic A), but then the mass compile program would have a broken arrow (pic b) I included a image to show people this. 
    The error list will always pop up, but there are no errors.
    I called NI tech support and they suggested that I repair all of my programs starting with the largest programs first. During the repairs I found this forum. I have over 30 different NI modules installed on this machine, I would have been at this for the next two days.
    Thank you very much for this.
    A good question is why didn't the repairs of these large programs find this, and would any repair of any module have fixed this?
    Attachments:
    b.png ‏116 KB
    a.png ‏46 KB

  • Updating Locals in TestStand from C#

    Hi,
    I want to update a variable in TestStand from C#.
    I have problems with synchronization, after updating the variable in C# and reading back the variable, it seems to work in Visual Studio.
    But the variable is not updated in the GUI of TestStand, only if the test is stopped in TestStand, de variable gets updated.
    I have changed TestStandDialog example to show this behavior, attached TestStandDialog1.
    If the demo sequence is executed in TestStand, all tests will fail, if the execution is stopped then the local variable strTextBox gets updated!
    If you step through the code in Visual Studio it seems to be that it is possible to set a variable and to read back, but the TestStand GUI is not updated.
     string strVarNameTextBox = "Locals.strTextBox"; // Update the TestStand variable 'Locals.strTextBox'm_propertyObject.SetValString(strVarNameTextBox, 0, strTest);
    // Readback the content of TestStand variable 'Locals.strTextBox' string strContentVariable = m_propertyObject.GetValString(strVarNameTextBox, 0); // Check the value of the TestStand variable if (strContentVariable != strTest) {MessageBox.Show("Problem detected"); }
    Does someone now what the reason is for this behavior?
    Best regards
    Attachments:
    CTestStandDialog1.zip ‏13 KB

    Hi Doug,
    I am setting the runtime copy of the variables.
    If I understand you correctly, there is no additonal action needed for the runtime locals, but my sequence still fails?
    I want to change locals from C#, what do you recommend, do I have to use the runtime copy or the edit time copy of the locals?
    public class DialogMaster : IDisposable{# region private Membervariablen private PropertyObject m_propertyObject = null;#endregion # region public Constructor public DialogMaster(NationalInstruments.TestStand.Interop.API.SequenceContext sequenceContext) {
    m_propertyObject = sequenceContext.AsPropertyObject();
    }#endregion# region public Members public void Test(string strTest, out bool errorOccurred, out int errorCode, out String errorMsg) {errorOccurred = false; errorCode = 0;
    errorMsg = String.Empty;
    try
    {string strVarNameTextBox = "Locals.strTextBox"; // Update the TestStand variable 'Locals.strTextBox'm_propertyObject.SetValString(strVarNameTextBox, 0, strTest);
    // Readback the content of TestStand variable 'Locals.strTextBox' string strContentVariable = m_propertyObject.GetValString(strVarNameTextBox, 0); // Check the value of the TestStand variable if (strContentVariable != strTest) {MessageBox.Show("Problem detected"); }
    }catch (COMException e) {errorOccurred = true; errorMsg = e.Message;
    errorCode = e.ErrorCode;
    }#endregion#region IDisposable Members public void Dispose() {
    }#endregion}Best regards

Maybe you are looking for