Labview gui control using teststand

Hi,
i am using TestStand for controlling the LabVIEW gui, gui includes the state machine with user interface event handler architecture. For controlling the gui input i have used the TestStand file global's linking with Set and Get property vi in LabVIEW, and for the event structure i have used Val(Sign) property to execute the event in labview. but i am getting problem with some event missing and not synchronizing well between TestStand and my gui.
please help me to resolve this..
Regards,
Manju G

Use a while loop step type
while loop step type ( locals.boolvalue==false)
start
Wait 1 sec ( This wait is required else it will be a very tight executed loop)
end
Check out the attached sequence.
Ravi S
Attachments:
Looping till signal present.seq ‏59 KB

Similar Messages

  • Storing labview TCP connection in TestStand object reference

    I have a LabVIEW routine (GetFileGlobal) that uses the TestStand SequenceContext->FileGlobals to do a lookupString and determine the GetType if the string 'Exists'.  I have a LabVIEW case statement that captures values of '1' for GetValString, '2' for GetValBoolean, and '3' for GetValNumber.  I have a LabVIEW TCP connection that gets opened that we need to store in TestStand in a FileGlobal.  What type is necessary in TestStand to store a TCP Conn?  AND, given the (tbd) type in TestStand, what is the value I would need in my case statement to capture this new (tbd) type coming out of the GetType?  

    I've asked this on another thread, but I'm just not understanding the exact implementation.  In TestStand, the LabVIEW IO Controls type is made up of a DeviceName and a SessionNumber, but in LabVIEW I have a TCP Network Connection.  I have routines that let me Get/Set TestStand File Globals if they are Boolean, String, or Number.  Now, if I use LabVIEW IO Controls in TestStand, what is the exact way I stuff a TCP Network Connection in there.  I've attached a VI that I use to GET the FileGlobal value from TS.  I need to grow it to allow me to get the TCP connection (i.e. LabVIEW IO Controls), but I'm not sure how to do that.  The types are messing me up.  Also, I'm not sure what the 'GetType' wants to see
    Attachments:
    FTW_ATE_UTIL_GetFileGlobal.vi ‏25 KB

  • How to use ExpressionEdit Control in teststand with labview

    Hi
    I am trying to get the ExpressionEdit Control to work in a labview custom step in teststand, but i have no idea how it works and cant find a solution.
    What I need is a simple example.

    Hi,
      that would really depend on how you want to use it. Do you just want the text from it? In which case there's a property of Text you can get from the control. Architect your code so that when you hit your OK button etc, it grabs the "text" information from the control.
    All of the properties and methods are documents (right click the control's fpterm on the block diagram, create >> property (so it created a property node for the activeX control, not a property for the LV control it's buried in) and select things like Text, or an invoke node, and things like DisplayBrowseExprDialog.
    You can then right click those, and go to "help for ...." for that property or method.
    Unless we know what you propose to use it for, then we can't really help with sample code, since it might not be applicable to your setup. (i.e. text out versus evaluation of the expression, versus displaying the browse expression dialog etc).
    You'll probably need to write to the context property to get the correct sequence context to browse with (pass in the "thiscontext" to your vi, and write to the context property of the dialog box.)
    Hope that helps
    Thanks
    Sacha.
    // it takes almost no time to rate an answer

  • Using ActiveX controls in GUI application, which uses TestStand API

    When using ActiveX controls in TestStand Operator Interface GUI,
    CVI reports User Interface Library error no.-143:
    "ActiveX control Error" on attempt to load panel, which contains ActiveX controls.
    The same code, which takes care of user interface, but not references
    TestStand ActiveX API (i.e. not creates TS Engine), works properly.
    What's wrong?

    Hello again Misha,
    Sorry about my previous answer, I overlooked the fact that you were saying this error was caused by placing ActiveX controls in your Operator Interface (OI) GUI (as my example shows I thought the problem was with GUIs displayed from step code modules).
    Nevertheless, the problem is still being caused by the same issue, and is solved in a similar fashion. The source for the CVI OI initializes the TestStand engine before it loads/displays the UI panels. The calls to initialize the engine seem to be CoInitializing the main GUI thread as multithreaded apartment (MTA) mode whereas you will need it to be single threaded apartment (STA) mode in order for the ActiveX control container to work properly. The TestStand engine is compatible with either modes, but only one can be in place at a given time. If we CoInitialize the OI's main GUI thread as STA this will solve the problem (the subsequent attempts of setting it to MTA will fail, but again this is ok since the engine is compatible with STA).
    In order to perform this functionality you will need to put a call to CoInitializeEx in the main function of the CVI OI source (this will also require that you #include the "windows.h" file at the top of the source also). Here is what the main function in your main.c file for the CVI OI will look like once you have done this:
    int main(int argc, char **argv)
    int retval = -1;
    sArgc = argc;
    sArgv = argv;
    if(InitCVIRTE(0, argv, 0) == 0) /* Initialize CVI libraries */
    goto Done; /* out of memory */
    // Intialize main GUI thread as STA to prevent other attempt to make it
    // MTA, which will not allow ActiveX controls to be used.
    CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
    /* initialize the test engine */
    if(!InitEngine())
    goto Done;
    if(!InitErrorDialogStrings())
    goto Done;
    if(!InStandaloneExecutable() && !DisplayRunningInEnvironmentWarning())
    goto Done; // get out now
    if(!ProcessPreLoginCmdlineArgs())
    goto Done;
    if(!CfgFile_Load())
    goto Done;
    if(!CfgFile_RestoreOptionSettings())
    goto Done;
    if(LoadGUIPanels() < 0)
    goto Done;
    if(!InitFileQuickList())
    goto Done;
    /* set initial gui state */
    if(!InitGUI())
    goto Done;
    RunUserInterface();
    retval = 0; /* normal exist status */
    Done:
    /* cleanup */
    SeqFileList_DeleteAllSequenceFileRecords();
    ExeList_DeleteAllRecords();
    IconList_DeleteIconList();
    SaveAndCleanupFileQuickList();
    CfgFile_SaveOptionSettings();
    CfgFile_WriteAndCleanupForExit();
    AdaptList_DeleteAdapterList();
    DestroyToolMenus();
    CloseEngine();
    FreeErrorDialogStrings();
    return retval;
    Note: Remember to #include "windows.h" at the very top of the main.c file and to include ole32.lib in your project file list in order to link in the definition for CoInitializeEx.
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • Control LabVIEW GUI via TestStand sequence

    Hello,
    I have a VI with several buttons(controls) that the user can change during the test.
    How can I associate these buttons(controls) with TestStand sequence so that during the sequence depending on a variable I set In TestStand the buttons(controls) in the VI will be activated.
    Thank you,
    Lev Kolomiets

    Lev,
    Are you talking about your User Interface?  Or is it just a VI that you call from your test sequence?
    If it's the User Interface then you should use UI Messages.... (Google or Bing: TestStand UI Messages.  let me know if you have more questions on that).
    If it's a VI you call in a different thread from your test sequence then you will want to pass in the sequence context.  Then you can use the VIs on the TestStand palette (specifically TestStand - Get Property Value.vi). 
    Hope this helps some,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • NI 5660 Driver DLL Errors when using Teststand 2010 and LabVIEW Run-Time Engine 2010

    This problem seems similar to the post "Resource not found error in executable on developmen​t machine." but I didn't want to repost under that thread because I only happened upon it by chance and none of my searches brought me there... so I made a more descriptive Subject.
    I am working on a system that uses a PXI Chassis with a NI 5600 Downconverter and a NI 5620 high speed digitizer, among other PXI Cards. 
    I inherited working code written in LabVIEW 2010, running with the LabVIEW Run-Time Engine 2010.  The code was using a custom executive and my task was to rewrite the test using TestStand 2010.  I reused the majority of the old code.  The old code used NI-5660 to control the 5600 and 5620.  When I run my sequence using the LV Development System and TestStand, it runs without any issues.  When I change the adapter over to LabVIEW Run-Time Engine 2010, all of my NI5660 VIs become broken due to DLL issues.  It warns that the nipxi5600u​.dll was not initialized correctly.  Many of the errors are associated with the NI Tuner and NI Scope. After this LabVIEW will crash randomly, and the seqeunce will not work in TestStand even when back with the LV Development Adapter.  The only way to recover after this is to restart the computer - TestStand automatically reverts back to the development system, the VIs are no longer broken and the sequence works again. 
    I have all of my VIs associated with a project. After reading a little bit about DLLs and TestStand, I found all of the DLLs in the dependencies section of my project and added them to my TestStand workspace.  I also used Dependency Walker to track down the problems with the nipxi5600u​.dll, the 2 DLL files that it said were not found already existed in the same folder as the original DLL (C:\Windows\System32).  I have also performed a Mass Compile to make sure everything was running in LV 2010.  If I skip the steps involving the 5660, my entire sequence runs fine. 
    The previous code was running with the LabVIEW Run-Time Engine without any issues.  Is there just a step I am missing?  Has anyone seen anything like this before?  I can send screenshots of errors to provide more detail if necessary. 

    I have tried some more things and still can't get it to work.  I have added the VIs mentioned in the Notes On Creating Modulation Executables KB both to the TestStand workspace and the LabVIEW project holding all of my VIs.  This did not change the results. 
    When I try to run my sequence, The first error I get is shown in Error 1445.bmp.  This happens when I try to use the NI 5660 initialize.vi.  If I click ignore, the next error I see is shown in Error -20551.bmp.  When I try to open the VI to look at it, I get the 2 DLL errors shown in Error loading nipxi5600u.bmp and Error loading nidaq32.bmp.  When I close TestStand, I get the error LabVIEW Fatal Error.bmp. 
    Attachments:
    Error1445.JPG ‏164 KB
    Error -20551.JPG ‏174 KB
    Error loading nipxi5600u.JPG ‏9 KB

  • Creating Active controls using opengl libraries in LabVIEW

    Hi,
    I want to create a 3D representation of the some geographic data on LabVIEW GUI. The need is to achieve something beyond the dumb representation. I would like to be able to choose any one of the points represented on the 3D GUI and do some activity like give a POP-UP etc.
    I believe labview 3D picture control allows to create the view in various ways like mesh and bars etc. But doesn't allow to create a active control.
    Attaching a sample pic. Of what am I expecting. I want to be able to click on each of the intersection points in the graph and get the pop-up.
    Since this seems to be not possible just using inbuilt 3D picture capabilities of LabVIEW, plan is to use a opengl libraries to achieve this.
    Will it be possible to create this in LabVIEW?
    Has some one done this before? A sample code will be of great help.
    Attachments:
    Example 3D view.JPG ‏69 KB

    Ayman
    Take a look at this thread http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=2391  where Joe Hoskins has kindly donated his collection of activex vi's for excel.
    There are a couple of examples shipped with labview. Goto menu Help -> Find Examples. The NI Example finder will appear. Goto the search tab and search for excel.
    And, there are plenty of examples on the forum you just need to search for them.
    Trying to get you started ...
    David

  • How to use LabView to control Primera Bravo II CD burner?

    I am trying to use LabView to control the Primera Bravo II CD burner and label printer. The software that controls the Bravo II is PTPublisher. How to use LabView to communicate/control the PTPublisher? Please help, Thanks

    Hi Qian,
    I installed PTPublisher on a virtual machine, and I was wondering what kind of tasks you wanted to control within LabVIEW.  From the program GUI, it appears like the only way to access functions is via mouse clicks.  Do you know of any other way to control the Bravo II CD burner besides the PTPublisher software?  If not, does the PTPublisher allow you to control it in some way other than clicking?
    Peter K.
    National Instruments

  • Building SCADA software for substation automation control using LabVIEW

    Hi, I would be interested to know if anyone has built or developed a SCADA software for substation automation control using purely LabVIEW and its add-on tools (beside NI LookOut). The SCADA software, somehow similar to WinCC, should fulfill basic SCADA function for substation such as monitoring and interlocking control of CB and DS (single/double point), generate event or alarm list which includes information such as topical/not topical, valid/invalid...., archiving, redundancy, etc.

    Hi Remzi,
    Thank you for your information.
    I understand that the DSC Module is a tool capable of developing monitoring and control system. Using the module would enable me to build a SCADA software (similar to LookOut) according to my requirement. But I think it's quite a difficult task to design and build a SCADA software from the scatch. Unlike a SCADA software, the DSC module is not really a SCADA software where user can directly parameter the I/O points and graphics via GUI. I've actually tried the LookOut software, but found that it's not really suitable for substation automation & control field. Hence, I would be grateful to know if anyone in this field has developed similar SCADA software for substation automation.
    Best Regards,
    Edmund

  • I'm using TestStand/Labview to do a string value test. Is there any way to use a variable in the edit string value test?? This forces you to hard code a string to test against.

    I'm using TestStand 2.0/Labview 6i to do a string value test. Is there any way to use a string variable in the edit string value test instead of an actual string?? This forces you to hard code a string to test against.

    Hi ART,
    You can also use the LimitLoader step to load your string into to step similar to the Numeric Step type.
    There should be an example of this in the Resource Library | TestStand
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Need help in SQL Queries using GUI controls or variables

    Hello, all
    I have a big problem (I have already had with Visual Basic a few mounths ago) with Java while writing my SQL Queries.
    I would like to know how I must do to use variable data or GUI control data in my SQL Query to select only some records.
    Here, my first Query that works without any problem (no WHERE clause !!!) :
    Statement requeteBedes = connectBedes.createStatement();
    ResultSet resultatSeries = requeteBedes.executeQuery("SELECT * FROM Series");
    initComboBoxSeries(resultatSeries);the method "initComboBoxSeries" fills a JComboBox with all the names of the series in my database.
    Here comes my problem.I would like to use the value of the selected "series" in the JComboBox to search in another table of the same Database. I made another statement but it returns a Null ResultSet :
    ResultSet resultatSearchAlbumsFromSeries = requeteBedes.executeQuery("SELECT * FROM bandes_dess WHERE  ser_nom = '" + strComboBoxSeriesSelected + "' "); The variable strComboBoxSeriesSelected contains the value of the selected line in the combobox with all the series, filled after the first query that is here above and that works very well.
    Could some one help me and tell me how I must use variables or GUI controls values in my SQL Queries or tell me if there is a place where I could find an explanation of that kind of problems (like more "advanced SQL Queries", as the ones currently used in all the Learning Java 2 books)
    Thank you all for your help.
    Christian.

    executeQuery() will never return null. At least that's what the spec says. You are probably catching an exception (probably a syntax error caused by a single quote in strComboBoxSeriesSelected) and ignoring it. Or do you mean the ResultSet contains no rows?
    Anyway, to use parameterized queries, take a look at PreparedStatements. Your code should look like this using PreparedStatement:Statement requeteBedes = connectBedes.prepareStatement("SELECT * FROM bandes_dess WHERE  ser_nom = ?");
    requeteBedes.setString(1, strComboBoxSeriesSelected);
    ResultSet resultatSeries = requeteBedes.executeQuery();Alin.

  • Help me in my mini project about dc motor control using labview

    hi,
       actually the idea is that  using pid controller in labview.. controlling motor.i.e giving a setpoint to pid... n checking whether motor is running accordinly using a sensor.. i.e feedback n/w...  i dnt knw hw to proceed.. can u help me with the circuit diagram

    Hi swats,
    "i dnt knw hw to proceed.."
    I suppose you mean "I don't know how to proceed..", something is wrong with your "o" key
    I would suggest going to the library of your school or university and get a book on basics of electric devices. There you will find a lot of hints on how to measure speed of motors and how they work. In fact your question covers several seminar hours in "Electrical Measurements" course at university...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I need to program a Hittite Fractional​-N Synthesize​r Evaluation Kit with a HMC702LP6C​E an external YIG oscillator​. Not sure how to use Labview to control the PLL.

    I need to program a Hittite Fractional-N Synthesizer Evaluation Kit with a HMC702LP6CE an external YIG oscillator.  Not sure how to use Labview to control the PLL.

    Here is how to use the PLL. But I don't know of how to interact with that device
    http://zone.ni.com/devzone/cda/tut/p/id/3781
    And for thouse who don't know what a PLL is a free bonus link is here:
    http://digital.ni.com/public.nsf/allkb/07BC8D77D4E​9AE258625708B007CE74F?OpenDocument
    and a second one on what that device is: http://www.hittite.com/products/view.html/view/HMC​702LP6CE
    Now we are all caught up to speed.
    Sam S
    Applications Engineer
    National Instruments

  • Can you call a built-in labview VI using teststand directly? For "File last modified"...

    I am trying to use Teststand to retrieve the "last modified" timestamp property for the sequence file that is running. The purpose is to determine whether a modification has been made since the last time a sequence with the same file name was run. The "saved count" property is not a viable option since mulitple people may be working on the same sequence, and in theory two people could have started with the same sequence file, made a change, and then saved (making the saved count property the same even though they are now different sequences).
    So, unless someone knows of an easy way to do get this info (file last modified information) within Teststand, here's my question:
    LabVIEW has a built-in VI that provides this information (Programming Pallete->File IO->Advanced File Functions->File/Directory Info). This gives a "last mod" output which is exactly what I need. However, this is in Labview, not teststand where I prefer to call it and retrieve the information. I could easily just place this built-in VI into a new blank VI, and then call that with TestStand, but that seems very redundant. The built-in version is exactly what I need.
    Is there a way to call this VI directly from TestStand without having to put it into a blank VI and save it as a seperate file? I can't seem to locate it within any of the labview directories or libraries, but maybe I'm not searching for the right name. Is there an easy way to find a VI on the harddrive that is on one of the buit-in labview palletes ?
    This seems like such a simple thing but it's giving me a lot of grief!
    Thanks!

    That is one of the built-in functions and not a stand-alone VI and the best way to call it is to create a VI with it on the block diagram.

  • When using Teststand, how do I prevent the LABView splash screen from appearing?

    It comes up even if I have the "Don't show this screen" checked !

    I'm excited to see TestStand is a celbrity product.
    Typically when you run a sequence in TestStand, LabVIEW is launched by TestStand when the sequence contains steps that use the LV adapter. In this case LV is launched through its ActiveX interface and the LV splash screen is suppressed. This is in contrast to launching LabVIEW manually in which case the LV splash screen will be displayed.
    In your case I'm not sure how LV is being launched. You might want to shut down LV and then run your sequence to see if the splash screen is then suppressed.
    You may also want to read NI Knowledgebase article 28MEPUXL, "Why Does the LabVIEW Startup Screen Appear When Using the Dialog Box Function from Within My VI?". In this case LV has been opened manually and not be Test
    Stand, such that the splash screen is not suppressed.

Maybe you are looking for

  • Getting audio but can't view movie in Itunes 8 - but all fine on Ipod..

    I'm trying to view my converted mpeg-4 movies in I-tunes v8.0 but although Ican hear the audio, the screen just seems to be scrambled/fuzzy. How do I view these movies ? Something strange going on as everything works fine on my 60GB Video ipod. I'm u

  • Untrusted server cert chain Error

    I am trying to connect to a HTTPS server using a jsp page, running JRUN 1.3 and JSSE 1.0.2. I have an error message consistenly that says: "untrusted server cert chain". I believe that the certificate is ok, and JSSE is configured properly. Here is t

  • Urgent help needed to setup Forms 6i Server on Windows Server 2003

    Hello, I am trying to install Forms 6i Server from the Forms/Reports 6i Release 2 CD onto a server with Windows Server 2003 Standard Editon (services pack 1) installed. The Oracle Installer produced the following error when I tried to install the For

  • Add text field into the 'subject' of a email submit button

    I have a form where the client will enter their name, organisation, query and details of their query into text fields.  I would like the text in the 'query' field to be added to the 'subject' of the email submit button.  This will identify different

  • Installing previous versions of ilife on (mid 2007) imac

    deciding about ordering my a new 20" imac 2.4GHZ to replace my G5 imac. I enjoy ilife '08 for some things and still use imovie HD 6.3 for my video editing. I even use the themes from earlier imovie's. Can I install earlier versions of imovie from my