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

Similar Messages

  • IPod Classic 160GB film library sync problem -  trying to sync films that have converted from purchased DVD to mp4 format locally, not purchases from the online store - all other libraries sync perfect - why?

    Hello Apple and the iTunes Windows PC users community.
    I am trying to sync films that I have converted from purchased DVD to mp4 format locally, not purchases from the online store. The mp4s all appear and play successfully in my iTunes application but will not sync across to the iPod film library folder.
    For your information: I am using iTunes 11.1.3.8 on a Windows 7 64bit machine with 500GB hard disk and 8GB of Ram in the UK.
    I have restored the iPod classic 160GB three times now to see if it was a hardware problem with no joy. Each time all the music restores properly as do the podcasts and all the items in TV programmes all appear to sync and work fine.
    I have also tried to copy films into the TV Programmes to get around it with no joy. They always go to the films section to start with. It is just the Films library that does not sync - all others work perfectly. As a last resort I have uninstalled and re-installed iTunes with no joy either.
    I am technically savvy and have gone through the itunes and ipod settings but nothing appears to make a difference - This is the first time I have had to post here as I can usually solve the majority of the ipod anomilies but this one has me flummoxed.
    Has the film encoding type changed in the newest itunes update? - Has this happened to anybody else and is it a hardware, software, or operating system problem.

    Having uninstalled the current version 11.1.3.8 and loaded and older version of iTunes 10.7.0.21 I can now categorically confirm that the newest update seems to be causing the problem as the films and TV Programmes are syncing perfectly on this older version.
    If you are going to do this please dont forget to remove the  ' iTunes Library.itl' file as this stops the older versions from running as I've just found out

  • 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

  • Unable to view local HTML content from "Help Content Only" SSL  iFrame

    Hi
    Can anyone confirm whether it is possible to view local HTML files within an iFrame when generating Help Content Only SSL content which is also locally deployed?
    I have had no problem viewing local html files from within an iFrame with a locally viewed Browser-Based Help project but despite trying a number of variations on the syntax, I simply cannot obtain the same result from a Help Content Only SSL that is then incorporated within a merged help system. I can however create hyperlinks to view local content using the following syntax (file:/C:\folderName\fileName.html - the only drawback for local preview is that you must right-click and select "open in new tab"). Essentially, I am trying to eliminate the requirement to have to right-click and open in new tab to view local html files.
    The project I am working on is deployed both locally and remotely and this whole process is necessary for emergency management and business continuity purposes.
    I hope my explanation isn't too convoluted and would be glad to clarify it further if required. I would appreciate any assistance!

    Hi John
    I appreciate you and Peter obtaining this  information from Adobe and I appreciate your continuing patience in  trying to understand what I am doing.
    I will start  from the beginning and hopefully clarify my process when deploying my  application locally (my remote process differs somewhat but is not  germane to this discussion). Obviously this will contain some repetition from previous posts but I hope it helps...
    The project itself integrates content created from Adobe RoboHelp with content created within Adobe Dreamweaver
    First, I should mention that I am using RoboHelp 8 as I don't believe I have addressed which version I am using. There's nothing particularly unusual about the project itself.
    Utilizing Dreamweaver I have created a self-contained HTML-only (no server-side functionality) website which is placed at the root level of the C: drive
    Within the RoboHelp project I create a hyperlink to access the local HTML files from the RoboHelp topic pages. The process I use to do so is from within the HTML view of the specific topic page and I use the following file path: "file:/C:\folderName\fileName.html". The only end-user requirement is that they must right-click and select "open in new tab", otherwise the link does not work. Please note, this is ONLY required for accessing the local HTML files.
    I output my RoboHelp project using the Adobe Air SSL, with the output type set to "Help Only Content" which creates the .rha files. I utilize multiple .rha files within my project as each .rha file constitutes a module specific to an individual municipality (in my particular instance)
    I use the Help Viewer Wizard from the RoboHelp "Toolbox" pod to create what I refer to as the "shell" .air file. Once the "shell" .air file created from the Help Viewer Wizard is  installed, it creates a shortcut on my desktop.
    I place an XML .helpcfg file within the directory on C:Program Files where my "shell" .air file has been installed to reference each .rha module which must be placed at the root level of the C: drive in order to be properly referenced by the .helpcfg file
    By double-clicking on the desktop shortcut created in Step 6 it opens the "shell" module which, in turn, loads in each individual .rha file which can be accessed individually from the drop-down menu in the top-right corner
    Why do I do it this way?? My organization severely restricts admin privileges on our workstations. We have one IT person / several hundred officers so I needed to create a system where the only time we need IT assistance is in the initial installation of the "shell" .air file created from the Help Viewer Wizard and placement of the .helpcfg file within the C: Programs folder. Once this is done, because the .rha files are on the C: drive, I can swap these out and update as necessary (we currently have an annual renewal cycle) and we require no further IT intervention. The local system I have just described has hyperlinks to the online browser-based help so that users can also access it and see any content updates made throughout the course of the school year
    Having said all that, based on the model I have just described, I have been trying to create iFrames from within my RoboHelp 8 topic pages (placed on my C: drive) to access the local HTML Dreamweaver site (also on my C: drive). The problem I have been having is that the resultant iFrames display only a blank white page and I have tried a number of variations on the syntax of the file path without success.
    The process I have been using to create the iFrame is as follows:
    In Design view, select Insert >> HTML >> iFrame
    In the iFrame dialog box, provide a name for the iFrame and then navigate to the local file on my C: drive level Dreamweaver HTML-only website that I want to link to.
    Click "Apply" and from the resulting dialog box states that "This action will create an external link to the help system... Do you want to continue?", I click "Yes"
    The resultant file path is "../../../../../folderName/fileName.html" which obviously won't work but I have created the iFrame and now I switch over to HTML view and insert the file path that I have been using for the hyperlinks ("file:/C:\folderName\fileName.html"). I also modify the width to 100% and the height to 1000 px
    The user is not being directed to a different domain. So, if as Adobe states, that iFrames are "supported in local AIR Help (.rha) as well" then I don't know why it will not work for me. Again, this is the file path that allows me to create a hyperlink which will access my local Dreamweaver HTML files: "file:/C:\folderName\fileName.html" so if that syntax works for a hyperlink, why will it not work for the iFrame?
    The videos I referenced are also contained within the local Dreamweaver HTML site
    My usage of the term "merged help" may have been unclear and hopefully steps 1-8 outline what I am doing
    Again, I am very grateful to all who have joined this discussion to try to help me! I think it should be manifestly evident by now that I am self-taught and basically that's the only excuse I can offer in my defense for my poor articulation. Not too many years ago I wanted nothing whatsoever to do with computers!

  • I can't update/downloads an app from app store by using by iphone 4s. The icon will change to blank keep waiting, this problem was trouble me for 1 week. pls help me.I try all the method (reset/change date setting)no help my network is ok.

    I can not update/download an app from app store by using my iphone 4s. I try every method by re-setting date/time and reboot the phone etc.NO Help.
    The icon will change to blank keep waiting & can not go in & use in. Anyone have solution for this. pls help me...tks

    .local indicates local activity by the computer host Williams-macbook-pro.local=hostname@domain . The UID of 501 is the standard UID of a local computer administrator.
    Copy and paste this little script in your terminal:
    if [ "SSH_CONNECTION ]; then
         echo I am remote
    else
         echo I am local
    fi
    A return of "i am local" ensures there is no remote connection to your machine (through SSH).
    In the future, to avoid remote entry, I would recommend not posting your IP address though.

  • I have an iMac 2.66 GHz Intel Core 2 Duo computer and have to update my system software from Leopard V 10.5.8 to OX Snow Leopard V 10.6. Where do I find it?

    I have an iMac 2.66 GHz Intel Core 2 Duo computer and have to update my system software from Leopard V 10.5.8 to OX Snow Leopard V 10.6. Where do I find it?

    Apple Store, Apple on-line store, or local computer store that sells Apple stuff.

  • Update locals and limits in the runtime sequence

    Hi All!
     I'm trying to update locals:
    Engine my_egine = axApplicationMgr.GetEngine();
    SequenceFile seq_file = my_egine.GetSequenceFileEx(seq_file_path, TypeConf​lictHandlerTypes.ConflictHandler_UseGlobalType);
    Sequence seq = seq_file.GetSequenceByName("MainSequence");
    seq.Locals.SetValString("strTextBox", 0, "my new string");
    string str = seq.Locals.GetValString("strTextBox", 0);
    MessageBox.Show(str);
    I see "my new string" in message box but in the sequense the text is "Hello World".
    As i understand there are run time and edit types of  sequence. How can i get run time  sequence?

    Hi John,
    Check out the following link:
    http://forums.ni.com/t5/NI-TestStand/How-do-I-get-local-variables-to-update/m-p/579859/highlight/tru...
    Regards
    Ray Farmer

  • How to Automate Updates Locally?

    Does anyone know of a way to have the update manager update locally from all available downloaded updates similar to the adobe updater but it does not need to access the internet?
    Occasionally some updates seem to cause problems so I would like to maintain a local list of updates and run those automated instead of having the user update it individually or access the internet to update it.
    Thank you for any info.

    Which server-side programming languages can you use?
    Nancy O.

  • [svn:fx-trunk] 15638: update locale name zh_tw to zh_TW.

    Revision: 15638
    Revision: 15638
    Author:   [email protected]
    Date:     2010-04-21 12:59:36 -0700 (Wed, 21 Apr 2010)
    Log Message:
    update locale name zh_tw to zh_TW.  This was done directly in the repository and should be considered the merge from 4.x rev# 15552
    QE notes: no
    Doc notes: no
    Bugs: sdk-26181
    Reviewer: no
    Tests run: no
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-26181
    Added Paths:
        flex/sdk/trunk/frameworks/locale/zh_TW/
    Removed Paths:
        flex/sdk/trunk/frameworks/locale/zh_tw/

    I had downloaded it for test, and requested for evaluation license...
    But I haven't got license, and also I am not able to find Flash Builder Plugins from HFCD site....
    I think those plugins are removed from site....
    Please help me, if anyone have those plugins...

  • Problems updating Acrobat 6.0 (from CS Premium package)

    Hi -
    I installed Adobe Acrobat 6.0 as part of a CS install.
    But when I try to update it (6.0) I get to the point when it says something like "insert disk 1 Adobe Acrobat" and is looking for an AcroPro.msi file.
    I don't have this file - I have an exe file that installed Adobe Acrobat 6.0.
    So what can I do to make get these updates to work? I'm sitting here with the disks for Adobe Creative Suite Premium and CANNOT update the darn Acrobat.
    What do I need to to - I've searched all over the internet and these forums and can't find anything .
    Please help!!

    I don't know about within CS. However, with older versions it is often best to download the updates from Adobe (the Download>Updates site) and do the updates locally. Also, you must do them in order, unless it says otherwise.

  • Stock value is not getting updated in APO system From ECC automatically

    Hi All,
    Stock value is not getting updated in APO system From ECC automatically but if we do it manually from transaction CFM2 it will get updated.
    for this we are using EXIT_SAPLCSTK_001.
    I am using VL10A for delivery and VL06G for PGI
    I have also checked integration model for material and stock.
    Please help me out as it is very urgent.
    Thanks,
    Gaurav Mittal
    Edited by: GAURAV MITTAL on Feb 6, 2008 6:09 PM

    Hi,
    for transferring the stock data from R/3 to APO automatically, you need to have the integration model for material and stock activated.
    please check the same.
    if this does not help, let me know in detail the steps which you are following..
    Ram

  • My iPhone 4s iOS 7.0.4 will not update music or apps from iTunes 11.1.3.  this was true of my pc and the new MacPro.

    My iphone 4s ios 7/0/4 will not update music or apps from itunes 11.1.3.  this was true with my pc since ios 7.0.3 even with update 7.0.4 and now continues with my new MacPro also runing itunes 11.1.3.   as most state in previous threads, syncs all non itunes related data with no issue and appears to work correctly on itunes data but then hangs on the last step of updating until it times out.  i have tried marking specific music to transfer, setting up new playlist, deleting some old playlist on phone but stopped short of restoring my phone back to new due to the amount of non itunes data that i will lose.  The itunes setup on the macpro was completely with the download of all music from a previous external backup and the creation of new playlist - on the first sync with existing phone it did ask to overwrite all phone itunes data with macpro itunes data which i did accept - no different result - no changes on phone.

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved. 
    If the problem continues, take the device to Apple for evaluation and possible replacement.

  • I'm using a late 2006 2.33GHz imac.I clean installed 10.6 from disc then updated to 10.7 from download.Now every time my computer goes into sleep it won't wake up.Anyone know how to cure this problem please??

    I'm using a late 2006 2.33GHz imac.
    I clean installed 10.6 from disc then updated to 10.7 from download.
    Now every time my computer goes into sleep it won't wake up.
    The only way it will restart is to pull the mains lead out of the imac, put it back and try until it will start.
    This only happened after reinstalling.  Only Apple OS was on the imac and so it must be an issue with the software I believe.....
    Anyone know how to cure this problem please?
    Thanks
    paul

    This isn't a fix, more a workaround I used when I had wake from sleep problems that lasted from some point in 10.6.x, through 10.7 and into 10.8 (got fixed for me in 10.8.2). It seems to be connected with Bluetooth failing to wake up properly:
    System Preferences>Energy Saver and set 'computer sleep' to 'never'.

  • HT5071 Is it possible to call a locally installed ibook from a hyperlink? What about to a bookmark?

    Is it possible to call a locally installed ibook from a hyperlink? What about to a bookmarked page?
    I have 2 questions..
    1. Can I send a link via email that when launched will open an ibook that has already been downloaded to the bookshelf?
    2. If question 1 is possible, can I take it a step further and call a bookmark, i.e. chapter 3.
    Our company has it's own appstore and I want to send out links to sections of the ibooks using bookmarks or at the very least take them to the start of the ibook.
    I don't need to give them a link to install the ibook as they already have it installed.
    Any help would be much appreciated.
    Chris.

    That would be cool, but it's not possible. The ibook is not accessible by URL in the user's bookshelf.

  • Need help!  I have a plug-ins issue in illustrator CS4 after updating my MAC OS from Mavericks to the new YOSIMITE

    Hi,
    My Adobe CS 4 ran perfectly find up until I updated my MAC OS from Mavericks to the new YOSIMITE. When I launch illustrator CS4 I get a window message the reads   "some plug-ins in the additional Plug-ins folder are conflicting with application or user plug-ins. It will skip loading plug-ins from additional plug-ins folder."  there is a OK button that I must click on to close the message window and then illustrator will continue loading process, then a second window will appear reading  "Error loading plug-ins.  PhotoshopImport.aip"  there is a OK button that I must click on to close the message window and then illustrator will continue loading and launch.
    The problem is when I open a current file that has a psd link I will get a window message reading  "could not find a plug-in to read the link file _______ choose repair to locate the missing file, replace to select another file, or ignore to leave the link unchange."   When selecting a psd link /file it is greyed out which I cannot select it.  I can not select, choose, import or open any files/links that is a psd.
    Would someone please help me resolve this issue please!!!

    I have the same issue! Did you get a solution yet?

Maybe you are looking for

  • Safari doesn't open properly at startup

    Hi everybody, I've been browsing the forum a bit, but didn't find an answer to my question. Here it goes: I have Safari added in my dock, and I marked it as 'open after login'. The same for Mail. When my mac has started up my Mail indeed opens, but S

  • Transfer posting using MM and SD

    Hi people, In the transfer postings using MM and SD, we have the following steps: Create the PO type UB Create the delivery document using VL10B Create MIGO and J1B1N using VL02N I would like to know about the information of tab "Value with taxes" of

  • What is the best way to get PATHS from one Photoshop psd file to another?

    Hi! New on the site, and I signed up specifically to ask the best way to import one .psd file into another, including the paths on the paths palette. Almost all of my Photoshop drawings make heavy use of vector paths, which I then stroke using using

  • Installing Repository Creation Utility (RCU)

    I am running the Repository Creation Utility (RCU) to create the schema object for Portal, Forms, Reports, and Discoverer in my database. However, I get the error message: "The database you are connecting is with non-AL32UTF8 character set. Oracle st

  • HT4623 how can i update iOS 3.1.2 to 4.3.

    how can i update iOS 3.1.2 to 4.3.