Controlling dialog boxes in a DIAdem script from LabVIEW

I have a DIAdem script that prompts the user for the data file it will process. The datafile was created from a labview test routine.   I can now run the script from LabVIEW using the "DIAdem Run Script.VI", but in the interest of automation, I would like to have LabVIEW place the filename in this dialog.  I would like to keep the dialog in the script, since sometimes we run this script manually. (without LabVIEW)
Bill W.

Bill,
Which dialog are you using to prompt for the file name?  It
appears that you cannot send any information to the script through the
Run Script.vi.  However, you can call automation commands using
the "DIAdem Run Automation Command.vi".  If you want to pass data
to the script, then you can set a Global Variable, or a DIAdem Script
Variable.  As an example, you could use the global variable, T1,
and send "T1 := 'myfile'".  When the script is executed, that
variable will be accessible within the script and it will be set to
"myfile".  You could also set the FileDlgName variable to your
file name.  Then it may be possible to send those variables to
your dialog so that they are automatically populated.
Good Luck!
Tyler Tigue
NI

Similar Messages

  • Trigger&Ga​te Express VI. Is it possible to control Dialog Box parameters on the frontal panel?

    When you use a Trigger&Gate Express VI the Dialog Box Options permits you to configure the VI. I am asking if it is possible to control Dialog Box parameters with controls on the Frontal Panel. I am especially interested on Start Level Threshold.

    open the VI that the trigger and gate is in. Right click on the express VI and select open front panel. Then find the control that you want and edit the connector pane to be able to input the parameter that you want. Attached is a modified version that I came up with for you.
    Hope this helps you.
    Joe
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    example_trigger_and_gate.llb ‏92 KB

  • Calling Python Script from LabVIEW

    Hello Everyone,
    I want to call the Python script from LabVIEW.
    I tried with using at the command line but i am unable to run that script file..
    i have gone through LabPython but i am unable to call the scripts from there also..
    If someone has an example of a VI which invokes a python script, it will be very helpful...
    Thanks a lot in advance
    Regards
    Avni

    avni wrote:
    I have to invoke the Script file at command prompt.
    Can you descriobe your restriction(s) concerning "invoke the script at the command prompt"?  There may be ways around that.

  • Calling perl script from labview

    Hi,
    I have a perl script and I would like to call the perl script from Labview
    anyone can help me with that?
    I used system exec but I'm getting an error.
    Anyone have a working example like calling a simple perl script from Labview.
    Thanks
    SL Ong

    Hi,
    Thanks for the reply from everyone.
    The attached is my code to call Perl script and after calling this, I need to query the Perl Script by sending command like @help. Do they have a way to query the Perl script by sending command like @help and get the return result. 
    I think Joseph you are right, but how do I get the return result if I invoke it in a separate dos session.
    SL Ong

  • Error while runing diadem asynchronous script from labview on dual core processor

    Urgent need of some help / advice here!
    Single core runs fine... dual core produces error: Error in <XYaxis.vbs> (line: 17, column: 1): Error while opening object. The object currently open has no subobjects. Forgotten ObjClose?
    The main software built in labview used for daq and analysis generates a PDF report on completion of a test, utilising diadem. For this I use the diadem express vi in labview to generate a multi page report, whereby I use for loop to iterate an array of channels for each page. This for loop has a shift register too. After each page I run a script to adjust a few parameters like linear/log, begin/end and line thickness using the diadem connectivity tookit. See script below:
    Call GraphObjOpen("2D-Axis1")
    Call GraphObjOpen("2DXAxis8_1")
    D2AxisXDivMode = "linear"
    D2AxisXScaleType = "begin/end manual"
    D2AxisXBegin = 20
    D2AxisXEnd = 20000
    Call GraphObjClose("2DXAxis8_1")
    Call GraphObjOpen("2DYAxis8_1")
    D2AxisYDivMode = "linear"
    D2AxisYScaleType = "complete automatic"
    D2AxisYBegin = 0
    D2AxisYEnd = 0
    Call GraphObjClose("2DYAxis8_1")
    FOR c = 1 TO CurveNoMax
    If D2CurveObj(c) = "" Then Exit For ' c
    Call GraphObjOpen(D2CurveObj(c))
    D2CurveLineWidth = 0.75
    Call GraphObjClose(D2CurveObj(c))
    NEXT ' c
    Call GraphObjClose("2D-Axis1")
    There is also a screenshot of the vi: (script file is generated by the Dscript vi and saved to disk. then path is passed to the diadem script vi.)
    What I find is, after the first report page is complete in diadem the second page ALWAYS shows the error as shown at the top. However, on my P4 laptop with single core (no hyperthreading) its runs FINE EVERY TIME with any given number of channels/pages in the report.
    My current chain of thought is that the superfast dual core is doing something in parallel therefore not waiting for the previous page to complete or finish closing its object!? however, in my for loop I use a shift register as named before, surely this kind of loop cannot be divided over more cores/parallel threads? as it has to wait for the response of the previous.!?!? Im running LV 8.6 on WinXP for this project and I didnt even think multicore processing for for loops is included in this version.
    The other thing is... this script used to run fine on the dual core until I added the last part that uses a for loop to get every line of the graph to be the thinkness I need. Is this for loop the culprit? Can I stop it from executing over multiple cores/threads? I read a post saying that from diadem 8 there was multi core support. this triggered my doubt
    As always any comments are most appreciated
    AL
    :. LV2010 SP1 ... W7 .:
    Solved!
    Go to Solution.

    Hi Al,
    I have a theory, but only you can test it.  In your VI screenshot, you have the boolean input for the DIAdem Execute Script.vi set to asynchronous=TRUE.  My theory says that if you change that boolean (and all others like it) to asynchrous=FALSE that the error will not occur on the multicore computer.  The other thing you could try would be to consolidate all REPORT commands that pertain to one REPORT page into a single ActiveX call to DIAdem.  In the screenshot below you have at least 2 separate VIs calling DIAdem, so that's at least 2 separate ActiveX calls for one REPORT sheet.
    Here's what I think is going on.  On a multicore computer there is the potential for different ActiveX commands from LV to DIAdem to execute on different cores, which may result in a timing problem on the DIAdem side.  DIAdem 11.x and earlier runs exclusively on 1 CPU, so the incoming ActiveX commands should be sequenced correctly by DIAdem's ActiveX to-do list.  Theoretically DIAdem should serialize all the incoming ActiveX commands (regardless of which CPU processed them) in the order that they arrived at the DIAdem ActiveX server(s).  On the sending side, LabVIEW's dataflow execution should theoretically guarantee that all the ActiveX requests are being sent in the correct order.  But it is theoretically possible that the operating system's ActiveX processing queue might not send all the ActiveX commands to DIAdem in the order that it receives them from LabVIEW-- IF YOU'VE SELECTED ASYNCHRONOUS PROCESSING.
    See if these clues help,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • I would like to replace the file dialog box with a programmab​le dialog box, that generates its selections from Database Informatio​n

    Where would be the best place to achieve this?
    I have been thinking about these options:
    - Modification of the Operator Interface.
    - Modification of the Sequence Model.
    - Use callbacks to modify the sequence model.
    - Use callbacks to modify the Engine (ie the Auto.seq example)
    Or combinations of the above.
    The biggest requirement I have in developing this project is in the reuse of code and I believe that callbacks in the seq would be the way to achieve this.
    But I am not familiar with the usage of callbacks in teststand (yet) and I don't know where to look for information/examples on what I can do with them.
    Has anybody done anythin
    g similar?
    Any suggestions would be great!
    Tim

    I am trying to replace the operators interface's sequence file dialog box. I am also trying to hide the standard operators interface.
    What I am after is to replicate a user experience!
    Teststand is being used to replace an ATE written in LV where each of the tests are hardcoded in. The user selected the product and test types from a button based dialog boxes.
    I am using TS to overcome all of the limitations of the original ATE, but one of the requirements is the system has to have the same look and feel of the original.
    I originally though that I would have to modify an operators interface, but I would prefer not too, and would rather change the process models and use engine and station callbacks.
    If I have to change an operatos interface, I would pre
    fer if the changes didn't affect the normal running of standard TS sequences.
    I have attached the process model, i am trying to achieve, (its in Visio).
    Tim
    Attachments:
    ATE_Process_Model.vsd ‏123 KB

  • Reader 9, blank dialog box, can't open PDF from web

    I have a newly custom built computer running XP Pro (Quad-core with 3g of ram). I have a fresh install of Reader 9 and Firefox 3.0.1. When trying to open a PDF shipping label from USPS.com, Reader opens and an empty dialog box appears with only the OK button. When I click OK, Reader closes. I cannot print my shipping labels. Please help.

    Same problem here. It took me a while, but I got it to work.
    Changing on how the content type would be handled did it for me.
    Check the image here:
    http://kb.mozillazine.org/Image:Fx3Applications.png
    I needed to change the entry for 'PDF Document'. I set it to the top option. Doing this and testing it right away yielded in a crash. After restarting firefox the problems were gone.
    More info on the image above: http://kb.mozillazine.org/Adobe_Reader
    My guess is that the Adobe reader couldn't handle the fact that firefox hadn't downloaded the document yet, but was still trying to get it to open.

  • I get a dialog box to allow a cookie from Yahoo mail but it does not respond and locks up the entire browser. All other sites work fine.

    The sign in page for yahoo mail wants to set cookies. I get a dialog box that asks to set a second cookie but it is unresponsive, eitehr to check allow or close it. Going to task manage says the site is waiting for input from me but I cannot get the browser to respond in any manner whatsoever.
    All other tabs work fine and the yahoo site can be opened with IE fine.

    Set up to "Ask me every time" in the Privacy elections. I think I found the problem. Looks like there were two dialog boxes, the second right on top of the first so I could not check the first one so it never got the OK and kept waiting for input.
    Seems OK now.

  • Wie Diadem Script im LabView am besten erstellen?

    Guten morgen zusammen,
     ich bearbeite im Moment ein Projekt, in dem Messdaten aus LV in Diadem Report umgewandelt werden, dazu übergebe ich die Messkanäle und ein Script. Das Script habe ich in einen großen String getippt, der Schlüsselworte wie "PFAD1" enthält, die dann mit "String suchen und ersetzen gegen die richtige Werte ausgetauscht werden. Dann wird dies in eine Script Datei gespeicher, die an Diadem übergeben wird.
    Gibt es eine Möglichkeit dies "eleganter" zu lösen?
    Ich fände es praktisch, wenn man Diadem Code so erzeugen könnte, wie mit dem "Formelknoten", dies wäre viel übersichtlicher.
    Gruss
    N.Schnitzler

    Ja das wäre eine Lösung, aber ich kann es den Usern nicht zumuten sich selber mit Diadem-Script zu beschäftigen, die Möglichkeit mit den String Konstanten habe ich als erstes getestet, dies wird aber viel zu unübersichtlich.
    Meine jetzige Lösung sieht so wie im Anhang aus. 
    Ein VB-Script/Diadem-Script - Knoten wäre eine sinnvolle Ergänzung, da man ja den Export eines Scriptes an Diadem anbietet, sollte man auch die programmatische "Konstruktion" des Scriptes ermöglichen.
    Gruss
    N.Schnitzler
    PS. Dies ist nur ein kleines Script als Beispiel
    Message Edited by N.Schnitzler on 01-16-2009 04:46 AM
    Attachments:
    Script.JPG ‏163 KB

  • How to display non modal dialog box in a Dll call from TestStand implemented in visual c

    Dear Jason F.
    Applications Engineer
    National Instruments
    Hello
    I did the same way you told me
    the non modal dialog appeared and
    system hangs and
    giving the error message
    ""SeqEdit.exe-Application Error
    The instruction at �0x047fc5b0� referenced memory at �0x047fc5b0�. The memory could not be �read� ""
    please solve my problem
    and thanks for yours early response
    you can email me at
    [email protected]

    Hi Mkehret,
    Does your dialog have ActiveX controls on it? If your DLL dialog uses ActiveX controls and is not programmed in a certain manner it can hang because of a conflict in the threading model used by the TestStand Engine that is calling into your DLL and the model that is required by the MFC ActiveX Container. If you are using ActiveX controls in your dialog, you need to make special considerations for the threading model MFC dialogs that use ActiveX controls need in order to work properly. The example under \Examples\MFCActiveXContainerDlg illustrates how to appropriately handle this situation as well as explaining why it is necessary.
    Note: The above example displays the dialog as modal, but this is irrelevant to the problem I am describing.
    Again for information on properly creating a dialog class object and displaying it as non-modal refer to the information on MSDN that I referred you to in this post:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000E98A0000&USEARCHCONTEXT_CATEGORY_0=_8_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_8_&UCATEGORY_S=0
    If your dialog does not use ActiveX controls or after trying the programming method illustrated in the "MFCActiveXContainerDlg" example TestStand still hangs when calling your DLL, try calling your DLL from another environment just to make sure whether the DLL works at all. If the DLL works properly when called by another environment (e.g. VB, VC++, LabVIEW, or CVI), please submit a MINIMAL and REPRODUCEABLE example source project for your DLL for us to look at (please exclude all unnecessary code not required to reproduce the specific problem of displaying the dialog, and include all files necessary to build your dll with any
    specific instructions needed to do so).
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • In the Firefox Downloads dialog box, does the option "Remove from List" mean that the selected download will be deleted? (I want to delete it.)

    I am using Windows XP Professional, Version 2002, Service Pack 3, on a Dell_GX620. I went to the Addictedtoradio.com website that I had used on my Samsung phone yesterday for the first time. I was able to play 1980's music on the phone without any special adaptations to the phone. I tried to do the same on my home computer. I went to the website but when I tried to access the music, it directed me to download a file, Xvidinstall.exe, and I did that. It is described as 382 kb - totalvidplayer.com. I am using AVG Anti-virus free edition that is supposed to protect my computer when web browsing. However, once I had downloaded the file, I got the standard Windows message that it is an executable file that might contain viruses that could harm my computer. At this point I began to wish that I had not downloaded it, I don't want to take the risk. I'll get my music another way. I have not opened the download but I assume it is now on my computer and I want to get rid of it, without opening it. When I right-click on this file (in the Firefox downloads list), one of the options is "Remove from list". There is no "Delete" option. If I remove it from the list, will it be deleted? Or will it still be present on my computer but just not shown in the list? I would like to remove it from my computer because it might contain viruses. How can I be certain to remove it safely?

    The remove from list just removed it from Firefox's download list, the file will still be on your computer. You'll have to find wherever you download the file to on your PC (right click it in Firefox's download manager and click "Open Containing folder") and delete it there to remove it from your computer.

  • I'm trying to execute and possibly terminate a PERL script from Labview.

    I am currently using the system exec.vi to run my perl script. I would like to be able to terminate it as well. Any suggestion?
    I'm running from windows xp.

    Try looking at http://www.jeffreytravis.com/lost/labperl.html
    The download (LabPerl) gives you comms between Labview ' Perl and viceversa.
    And doesn't take too long to fathom out how it all works.
    The perl program is set running (manually or by labview command window - don't wait for completion) followed by labview control etc.
    N.B.
    Each labview write string requires a Linefeed - then chomp at perl end
    The secret is to  have a good handshake method - each LabView read returns to perl an "ok"

  • Getting correct Date/Time data in DIAdem 11 from LabView tdms data

    I've got a handful of large tdms  files (9-18 million data points) collected with LabView that I need to extract elements of, and export as a text file, with the time data as a string.
    I'm using DataFileLoadSelect and the Register option and then DataBlCopy to bring in a chunk of data at a time, but I'm having to explicitly convert each time value from a LabView timebase (1/1/1904) to the DIAdem timebase (1/1/0000), not to mention the offset,  before writing the date-time as a text string - this really slows the process down. 
    I't strikes me that DIAdem(11.1) has got to have a way to read LabView timestamps correctly, but I'm a DIAdem novice, so any suggestions would be helpful. And no, I don't have LabView installed locally, so using a LabView vi is not an option for me.
    Thanks,
    Eric
    Solved!
    Go to Solution.

    WfmToDateWfm works great, but there is a bug in the code if you want to use DataFileLoadRed and your starting point is not at the beginning of the file.  There is a provision in WfmToDateWfm to handle the offset, but it's not hooked up:
    OffStartTime = ChnPropValGet(Channel, "wf_start_offset") ChnDeltaTime = ChnPropValGet(Channel, "wf_increment")
    RelStartTime = 24*3600*(Trunc(ChnStartTime) + 693958 + Abs(Frac(ChnStartTime)))
    To make WfmToDateWfm work with an offset, simly add the variable OffStartTime to the RHS of RelStartTime
    Eric 

  • Execute IronPython script from labview

    Hi,
    I am trying to add search paths and dll's for executing a python script. So for this I am using the SetSearchPath method.
    For this not i am unable to input the path by adding the path into a IList(since the paths input is of ICollection .net refnum).
    Can you please help me with this. Also i have attached the VI.
    Also, i would like to know how to redirect the console(cmd) to a string indicator
    Thanks and regards,
    Yogesh 
    Attachments:
    TestExecutive.vi ‏14 KB

    see whether this will help

  • How to remove the default icons from the toolbar of modal dialog box screen

    Hello Friends,
    Iam calling a screen from function module using CALL SCREEN statement.
    The screen is of type Modal Dialog Box. I created some input fields and buttons in the screen. When the screen is displayed, I can see the tool bar at the bottom along with the input fields and buttons in the screen.
    These icons are Continue(Enter), Check, Cancel. How can I supress this??
    I mean in my screeen I want only my input fields and buttons but not the default toolbar. How to do that?
    Regards,
    Raju

    Hi Raju,
    Try this...
    First try to capture the F-codes of ur button apppearing on the dialog box and then exclude it from the PF-status by passing it to itab.
    types: begin of tab_type,
            fcode like rsmpe-func,
           end of tab_type.
    data: tab type standard table of tab_type with
                   non-unique default key initial size 10,
          wa_tab type tab_type.
    clear tab.
    move 'DELE' to wa_tab-fcode.
    append wa_tab to tab.
    move 'PRIN' to wa_tab-fcode.
    append wa_tab to tab.
    set pf-status 'STA3' excluding tab.
    Cheers,
    Simha.
    Reward all the helpful answers..

Maybe you are looking for

  • After upgrade to ios 6 usb connection problems with car stereo

    Hi Everyone, after ios upgrade to ios6 i am not further able to use the iPhone 4s as music device - having usb connection problems ("not readable"). I am sure, that the upgrade ist the culprit; worked fine before. My car stereo is built in a Volvo XC

  • Keyboard quotation errors

    Hello, I'm receiving ( Apple Mail ) emails back that I've sent- and the (') key stroke is coming back as an (?) A line may read as follows:  "I?ve no idea ?what? is happening-" It looks fine when I send it, but it returns with 'question marks' instea

  • Control product allocation

    Hi all, I am confusing on active checkbox in OV4Z as I want to extend valid date for Product allocation. last year, I put it as 31.08.2008 and acitve for this year, I want to change it like 31.12.2999 but it is not allow me to change. So, I have to a

  • Migrating LR from Windows to Mac

    I just got my new MacBook Pro, which I'm in the process of migrating to from my Windows desktop. My plan is to move my entire photo collection (originals) onto an external HDD along with my LR catalog and preview files. Then, I plan to install LR ont

  • Database Restore Date

    Hi, ¿Does anybody knows where I can get the restore date of a database?. I need to make a list of all the active Databases on my Oracle 11g Server with the next format: <Database Name> + <Restore Date>. Thanks in advance.