CVI UI Panel updating from TestStand

I'm experimenting with using a CVI graph strip chart in TestStand(4.0).   I'm new to threading in TestStand. I would like to do two simple things at first:
1.Load the CVI UI graph panel
2. Update the graph attributes.
Attached is a solution that uses a separate thread for running the CVI GUI and the main thread for updating the title,axis names and data . For some reason, I seem have to have a generic wait to allow the separate thread to update the seqcontext (FileGlobals being updated in TS). If I don't wait, the FileGlobals have not been updated yet, so the UpdateGraph function fails.
Is there anything besides a blanket wait statement that I can use to know when the separate thread has updated the FileGlobals so that I can continue with my UpdateGraph function? I thought about a loop/timeout function, but I thought maybe there was some other thread/synch mechanism that I missed.
Attachments:
CVIGraph.zip ‏1191 KB
GraphTest.seq ‏7 KB

Hey jsmalley,
A Wait step is definitely a good and simple solution to your challenge, however, you could also try taking a look at some of the other TestStand Synchronization steps, which are often used when multithreading.  Documentation on these steps can be found on your machine by browsing to Start»Programs»National Instruments»TestStand»Online Help»Manuals»TestStand Reference Manual.  The documentation I'm referring to can be found in Appendix B of this document.
Furthermore, there should be some synchronization examples found on your machine at <TestStand>\Examples\Synchronization.
I hope this helps!
Derrick S.
Product Manager
NI DIAdem
National Instruments

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

  • Update a front panel indicator from a loop inside a called vi. Without exiting

    I am looking for the best way to update some indicators from within loop within a called .vi.
    I need to update the front panle without exiting the loop.
    I am able to use functional global vi to update the values of front panel indicators from within my nested loops, but I am looking for the best way that these values can be read to update my indicators.
    Thanks

    Or a cluster of references, that way each reference can be named, and can be different types to match the respective indicator.
    There are also methods where you can just send in a VI reference, and in the subVI traverse all the controls and search for the appropriate references by name.
    Take a look at this long nugget.

  • Present a dialog screen to the user that always stays open and gets updated with values from teststand.

    Hello,
    I'm new to TestStand and just created my first sequences with TS and LV.
    The program is running fine but now I need to implemented a dialog screen with some progress results for the user.
    This dialog screen must stay open (unless closed by the user) and gets refreshed with the latest analysis results from TestStand.
    Is there an example of something like that. (starting from a working example is always easier)
    So I need a mechanism to give some results from TestStand to a custom made dialog screen in LabVIEW.
    Any thoughts/examples/recommandations ???
    Thanks!

    Hi noxus,
    The basic design you are looking for is a daemon, This is basically a VI that runs in the background (your dialog VI for example). This VI is launched dynamicly when needed. And there should be a way of detecting if the deamon is running.
    You can use various ways of communicating between VI's. The two most use full I find either Queues or TCP. The added bonus for TCP is that it also works over the Network, but could also be slower and blocked by Firewalls. Queues only work within the LabVIEW Process running on the Local machine and provide a nice way of detecting if the daemon VI is running.
    Attached a example that show how you can implement something like this. The 'sent new value.vi' obtains a queue reference, we check if it has created a new queue or if it returned an existing queue reference. If the obtain queue created a new queue this means the daemon is not running and we launch the deamon.vi.
    The daemon also connects to the same queue and maintains the reference. If the deamon is closed the referenced is closed as well and the queue is destroyed.
    You can run the example VI. (in LabVIEW 8.2).
    Hope this helps.
    Thanks
    Karsten 
    Attachments:
    Daemon.zip ‏35 KB

  • Ni-DAQ 7.1 and CVI Function panels

    I have an XP system running TestStand 1.0.3 with CVI 6.0, and hardware NI-4070 and NI-6713. I have downloaded NI-DAQ 7.1 driver. However, I cannot find any CVI function panels for the DAQ. During the installation, I selected CVI and all it's subfeatures, but I did not see any installed.

    Hi,
    To offer support for driver upgrades. the NI-DAQ installer is the one that installs the DAQ libraries for CVI. The first thing to try is to run the NI-DAQ installer from the add/remove programms applet and make sure that support for CVI is selected.
    FYI: CVI 6.0 only supports the Traditional DAQ driver, to use DAQmx you would need to upgrade to CVI 7.0; click here for more info.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.

  • Automating Xilinx JTAG Programmer from TestStand

    Hai,
    I am using TestStand versions 1.0.2 and 3.0 to test some of the processor driven electronic panels. I am trying to automate the programming of those processors on ATE with TestStand. I was able to load the Xilinx JTAG programmer(which is required) by calling .EXE file. Now I am struggling to create a set of ket board commands to start programming. how can I do this? Is the ActiceX control solution for this? can any onehelp with this please. I use Labwindows CVI with teststand.
    Thanks

    Hello James,
    Instead of the ActiveX, I tried to use the "FakeKeystroke" CVI built-in library function to automate the process.I got it working during interactive execution of function panel i.e by passing key codes for & , I got the File pull down menu of CVI function panel. But when I call the function from Teststand, it didn't worked.Can you able help me with this problem please. Is it the the proper way to use this function.
    Thanks for your responce regrading ActiveX control.

  • How can I convert a Database Handle from TestStand to LabVIEW?

    I want to use a Database Handle (already created in TestStand by an Open Database step) in a LabVIEW-VI (called from TestStand) to connect it with the "Connection Reference" input of the "Easy SQL.vi"? If I use a directly connection via the "TestStand - Get Property Value (Number).vi" I get back the error message 4101 in LabVIEW. How can I convert the Database Handle?
    Test Engineering
    digades GmbH
    www.digades.com

    The TestStand database step types use the CVI SQL Toolkit to talk to databases. The handle that you are referencing is an internal memory location and not a actual handle that you can directly use. Currently as implemented the handle that is stored in a numeric TestStand property for the connection and the SQL statement are the handle values returned from the CVI SQL Toolkit. So for the connection handle, you could call the CVI SQL Toolkit function
    DBGetConnectionAttribute (
    int Connection_Handle,
    tDBConnectionAttr Attribute,
    void *Value);
    and get the CVI CAObjHandle reference. With this you could then call the CVI ActiveX function
    CA_GetInterfaceFromObjHandle(
    CAObjHandle Object_Handle,
    const IID *Interface_Id,
    int Force_AddRef,
    void *Inte
    rface_Ptr,
    int *Did_AddRef);
    to get the actual ActiveX interface reference. This would have to be converted into a LabVIEW reference.
    You may want to consider just using LabVIEW to open a new parallel reference only using the toolkit.
    Scott Richardson
    National Instruments

  • Is it possible to step into a CVI dll when called by TestStand?

    As the question says: "Is it possible to step into a CVI dll when called by TestStand?"
    I am sure Ray F. may have a few tricks up his sleeves...  Hope you see this post, Ray!
    I compiled a dll using CVI.  The dll is called as a test by TestStand.
    I do have an "exe" version of the code that I use for debug with a testbed, but the behaviour is not the same as testing the actual target while running TestStand.  My goal is to get as close as possible to the real events.
    Thanks,
    JLV

    Sorry about that,
    There are two ways as I was saying:
    1. You can configure the CVI adapter to Execute Steps in a External Instance of CVI (requires CVI 6.0 or greater).
    Only go to Configure->Adapters and select the LabWindows CVI adapter and click on configure and select the corresponding option.
    After that set a break point in the step that you want to debug.
    An external instance of CVI will be launched where you can set break points and step into the code.
    2. From CVI Specifying an external process:
    In CVI go to Run Specify External Process and enter the seqEdit.exe as the program name (you have to browse to the location <TestStand>\Bin\SeqEdit.exe).
    As the argument you enter the name of the sequence file you want to debug.
    Now just select Run->Debug SeqEdit.Exe
    The Sequence Edtior will be launched and you can set break point in your CVI code and step into it when the step is executed.
    Check the Using LabWindows/CVI with TestStand reference manual for more information.
    I hope it helps you to get started.
    Regards.

  • Need new pro key to update from 7.0.4 to 7.1.6?

    Greetings,
    Have QT Pro v7.0.4 installed. Would like to update to v7.1.6 without having to buy a new key for QTPro. Intuition says I should be able to do this, but conflicting info from Apple makes me question my intuition and hesitate to install v7.1.6.
    - Apple site says this v7.1.6 update is recommended for all v7 users.
    - legal agreement text at beginning of v7.1.6 installer says that continuing installation will require purchase of new key for pro users.
    - QT "help->about" box says I am using v7.0.4, but "help->update" says "your quicktime software is up to date", even though the Apple site says there is a v7.1.6 available.
    Can I update from v7.0.4 to v7.1.6 without having to purchase a new key to retain Pro level? If so, is running the v7.1.6 installer downloaded from the main Apple site the appropriate way to do this?
    I'd rather be more sure of the answer before any trial and error experiment that obliterates my existing Pro key.
    Thanks

    If you were going from QT6 to QT7 you would need to purchase a new QT pro key. In other words when Apple releases a new version of QT a new key is required. QT7.0.4 to 7.1.6 is just a update of the exsisting version. So your QT7 key is good untill the release of QT8.
    I would open the QuickTime control panel click on the Update tab then click on the Update... button for the QT7.1.6.200 update, your key should remain intact. But it wouldn't hurt to write down the registration info anyway.
    If you want to put a check in the box-Check for updates automatically-Apple will let you know when there is a new one.

  • Is it possible to defer panel updates on the PDA?

    Dear comunity members,
    I have performance problems with my PDA application.
    Mainly while LEDs are blinking, properties change, tab
    indicators change and string changes.
    At this very moment I stil use the 8.0.1 PDA toolkit because
    I cant get the 8.2 running on my target but this is another
    story.
    I would like to defer panel updates while changing proberties and
    other things. Is this possible with the PDA toolkit?
    With kind regards
    Martin Kunze
    KDI Digital Instrumentation.com
    e-mail: [email protected]
    Tel: +49 (0)441 9490852

    Dear Philipp
    You are right the function does what it should do but where is the sense?
    You defer the panel updates to inc. speed. OK
    Why is it nessesary to make a redraw before the panel is froozen?
    When we talk about performance we talk about embedded conputers too.
    They are mostly passive cooled and they have less performant CPUs.
    If you do a panel redraw without the need you loose performance again.
    From my point of view it doesn't make sense and it is a bug even when the
    maual descibes the function as is.
    With kind regards
    Martin Kunze
    KDI Digital Instrumentation.com
    e-mail: [email protected]
    Tel: +49 (0)441 9490852

  • Windows Media Player keeping Automatic Maintenance window/Windows Updates from doing auto-restart

    I have a system that is connected to a domain, and it runs a video playlist in Windows Media Player for digital signage upon bootup (and auto-login).  WMP is set to loop the videos over and over again, but it also is preventing automatic updates from
    installing and/or auto-restarting at 3:00AM in the morning (and yes, the system power management is set to keep the computer on all the time).
    How can I fix this?
    I have a GPO set up to install updates and restart automatically (option 4).  I tried the GPO option to use the Windows 8 maintenance window to install updates, and also tried turning that option off and just using a 3:00AM restart period.  Neither
    option seems to work, so it looks like Windows Media Player is preventing an auto-restart to finish the update installation.  Is there any way around this, so that Windows Media Player doesn't stop Windows Updates from doing its job?  I don't care
    if that means the video stops playing because it just starts up again on the next bootup.
    I looked at the WMP GPO's and the only option that sounds like it's related is the option to turn on or off the auto-updating of media info for WMP, but it has nothing to do with what I'm trying to accomplish.  If I missed something, let me know. 
    If there is some other way to accomplish this, such as associating and launching the playlist file with the Xbox Videos app, I would be fine with that, but I need it to loop the playlist continually (I also use the Shuffle option
    in WMP - ***see note below for another question).  I still want the system to automatically install updates and reboot on a regular schedule despite the video playing in the foreground.
    ***Side question: is there any way to turn Repeat and Shuffle options on in WMP without having to load the GUI (for scripting a playlist)?
    Just FYI: this system is actually using Windows Embedded 8.1 Industry Enterprise (from a MAPS account), but it isn't customized aside from not having the standard WinRT apps from a stock Win 8.1 install loaded - it is a stock install from the ISO. 
    From what I understand, it is the same as Windows 8.1 Enterprise, except that it is only licensed to be used as an "appliance" machine for a single role - which it is.  So I'm assuming that there are no actual differences from a "regular"
    Windows 8.1 SKU that would cause this issue.  If I am completely mistaken about this, please notify me on it.  The reason I'm making this statement is in case there are any differences in Embedded 8.1 Industry Enterprise that I am not aware of. 
    Otherwise, I welcome any assistance that would target a "regular" version of 8.1 Enterprise.  NOTE:  Someone said to post this into the Windows Embedded forum, but the only one that exists is the one for POSready - and this is HARDLY the
    POSready version of Windows Embedded that I'm using.

    Hi,
    Did you use the policy Local Computer Policy\Administrative Templates\Windows Components\Windows Update\Always automatically restart at the scheduled time?
    I noticed an description "restart with logged on users for scheduled automatic updates installations" policy is enabled, then this policy has no effect." it means if system installed some updates which unneeds restart computer, this policy would has no effect.
    In my opinion, your problem should not caused by WMP setting. please check your installed updates whether they need restart computer.
    In addition, Power Managment in Control Panel also can prevent the schedule task running.
    Control Panel\System and Security\Power Options\Edit Plan Settings\Change advanced power settings\Sleep\Allow wake timers
    Please make sure this option is enable.
    Roger Lu
    TechNet Community Support

  • Poor performance since 10.3.9 update from 10.3.8 -- need tune-up?

    I've tried 10.3.9 for most of this month, just booted from my 10.3.8 backup, and there's just no getting around the fact that performance has suffered greatly since I updated from 10.3.8 to 10.3.9.
    I can go back to 10.3.8 but it will be a long and tedious process (and will keep me from using an important application AFAIK) if anyone can help tune up 10.3.9 I'll be grateful.
    Here's the problems.
    1. Extraordinarily slow internet. Doesn't matter if I'm on dialup or using the library's wi-fi broadband. Safari is practically unusable. Firefox is barely better.
    * Safari times out 7 or 8 times out of 10 urls. It first drops down a dialog box saying the server can't be found and when I click OK it then proceeds to load the page. This is on dialup or the free library wifi.
    * iTunes - it takes 2 hours to update my podcasts at the library under 10.3.9 (no updates to iTunes) and I never had it take longer than 40 mins under 10.3.8.
    * FTP - I don't recall the times anymore, but I've given up trying to use FTP at the library because it seems as slow as at home on dialup. If I need to FTP I do it over night on dialup.
    2. Applications startup very slow. No less than 10 or 12 bounces before anything launches.
    3. I can't burn CDs from iTunes any more.
    Before updating to 10.3.9 I backed up, ran Disk Warrior, repaired permissions, and quit all other applications. I used Software Update to install the updates including QT 7.1.6 but not iTunes 7. [Software Update is showing the installed updates log as empty. :/ ] I repaired permissions and ran the crons afterwards.
    Since then I've run Disk Warrior, ran Onyx to repair permissions, run chrons, empty all caches numerous times. I've zapped the PRAM. Checked for font duplicates. Disk Warrior again. Onyx again. Repeat.
    Anything else I can do? Thanks.

    Marlinespike:
    I have been following the conversation, although not responding. Here are the options as I see them:
    You can continue to trouble shoot your affected user account in the hope you can sort it out somehow.
    You can create a new user account and move your data over.
    You can backup, reformat, zero all data, re-insstall and restore.
    Since there is obviously some kind of corruption of your user account, I think it best to go to one of the other two options.
    I favor the last one. It is a bit more onerous, but it will start you out with a clean slate. If you are interested in going that route, here are some directions you might find helpful
    Formatting, Partitioning Zeroing a Hard Disk Drive
    Warning! Be sure you have a tested backup of at least your Users folder and any third party applications you do not want to re-install before attempting this procedure.
    Boot from the install CD holding down the "C" key.
    Select language
    Go to the Utilities menu (Tiger) Installer menu (Panther & earlier) and launch Disk Utility.
    Select your HDD (manufacturer ID) in left side bar.
    Select Partition tab in main panel. (You are about to create a single partition volume.)
    Select number of partition in pull-down menu above Volume diagram.
    (Note: 1 partition is normally better for an internal HDD. External HDDs usually have more than one)
    Type in name in Name field (usually Macintosh HD)
    Select Volume Format as Mac OS Extended (Journaled)
    Click Partition button at bottom of panel.
    Select Erase tab
    Select the a volume under Manufacturer ID (usually Macintosh HD).
    Check to be sure your Volume Name and Volume Format are correct.
    Select on Security Options button (Tiger) Options button (Panther & earlier).
    Select Zero all data. (This process will map out bad blocks on your HDD. However, it could take several hours. You could just do a simple Erase, but I think zeroing will be valuable in your situation.)
    Click OK.
    Click Erase button
    Quit Disk Utility.
    Open installer and begin installation process.
    Choose to Customize and deselect Foreign Language Translations and Additional Printer drivers.
    Check box to install BSD Subsystems.
    Proceed with installation.
    After installation computer will restart for setup.
    After setup, reboot computer.
    Go to Applications > Utilities > Disk Utility.
    Select your HDD (manufacturer ID) in left side bar.
    Select First Aid in main panel.
    Click Repair Disk Permissions.
    Connect to Internet.
    Download and install 10.3.9 Combo Update
    Computer will restart after updates.
    Go to Applications > Utilities > Disk Utility.
    Select your HDD (manufacturer ID) in left side bar.
    Select First Aid in main panel.
    Click Repair Disk Permissions.
    Good luck.
    cornelius

  • After auto update from 3.6.3 to 3.6.13, "proxy server refuses connection". I have to uninstall 3.6.13 and install 3.6.3 in order for it to work again.

    I have been very satisfied with Mozilla Firefox until recently. I have Firefox 3.6.3. Every time a box appears with "installing updates" it installs updates then the screen goes to "problem loading page" and "the proxy server is refusing connections". The only way I can get internet access is to go to "control panel" then "add or remove programs" then I have to "uninstall mozilla firefox 3.6.13. Then I click on my "Firefox Setup 3.6.3, and I install that version. Once I do that, everything works fine again. It is such a headache because I can't prevent the "installing updates" from happening and once it happens, it does not work, as described above.
    Any thoughts???????
    Russ Carlson ''moderator removed email address and cellphone number''

    I have this problem also.
    Can't bring up the Hotmail screen.
    I am looking for a simple way to
    get rid of 3.6.13.
    I tried restoring to a point
    before the Dec 10 upgrade but when system
    restored Firefox was still 3.6.13
    I guess I will have to abandon MOZILLA FIREFOX
    and start using MICROSOFT IE

  • Folio preview does not work!! since Mandatory Folio Builder Panel update!

    hi everyone
    my grafic team told me that the folio preview in indesign does not work anymore since the required folio builder panel update!
    working on mac and cs 5
    please help
    best regards michael

    I just spoke with a member of our team and they were able to reproduce this issue: invoking folio preview from the file menu brings up an empty panel instead of launching the desktop preview tool. Thanks for bringing it to our attention! There are two ways you can work around this and get the desktop preview application up with your content:
    1) Use the preview button in the Folio Builder panel (this will preview the entire folio)
    2) Use the preview button in the Overlay Creator panel (this will preview the active InDesign document)
    This problem only affects CS5 and CS5.5. If you are on CS6 the menu will work correctly.
    Neil

  • Client not receiving the software update FROM SCCM 2012 R2

    We have SCCM 2012 R2 installed and configured for SUP.and i have synchonice the SUP with WSUS server in the same which is there in the same machine.
    Now i can able to deploy the software update from SCCM 2012 R2 without any erro to the windows 7clients, but client side when i check there is no update installed in the clients , but seems there is no error in the client logs

    Hi,
    I'd start with running a "Software Updates Scan Cycle" from the configuration manager control panel applet and check the log file Windowsupdate.log, WUAhandler.log.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for

  • MacBook Pro 15 inch Mid-2010 keeps randomly restarting

    So, I got this Macbook back in August of 2010, and this random restart problem just started occuring after I updated to Mountain Lion. It usually occurs when I open up heavy usage applications, such as Photoshop, iMovie, iPhoto, FaceTime,etc. When I

  • Please explain plan with 'BITMAP CONVERSION TO ROWIDS'

    Hi, in my 9.2.0.8 I've got plan like : Plan SELECT STATEMENT  CHOOSECost: 26,104                                 7 TABLE ACCESS BY INDEX ROWID UMOWY Cost: 26,105  Bytes: 41  Cardinality: 1                                 6 BITMAP CONVERSION TO ROWIDS

  • NORBM, APLFZ, EKGRP in other tables

    Dear Experts, I want the field of NORBM, APLFZ, EKGRP in other tables except EINA, EINE and ENT5035. Because WERKS and NORBM will not update constantly in above tables i.e. EINA, EINE and ENT5035. regards, Madhuri

  • How to get Jxl.jar file

    Hi, Can any one tell me how to get Jxl.jar file. Thanks & Regards, Laxmi

  • The inserted SD card will not allow me to upload or delete from it. Also with other SD cards

    I have placed multiple SD cards in to the SD slot of my iMac and all are unlocked (enabled to be edited). Every single one does not allow me to add documents or delete documents from them. I am starting to think this is an iMac issue. Please help