Read in Excel for user dialog box

Hello

I am currently working on a senior design project in which I first need to create a username and password for people using the vi.  I am very new to LabVIEW and after a search through the help file in LabVIEW, I discovered a login dialog box that seems to be exactly what I need.  I works fine, but I need to design my code in such a way that an administrator has total control over adding, removing or modifying the usernames and passwords.  I would like to create an Excel file where this administrator can reach this goal through a column "username" and "password" column, so that the vi can call these strings in the Excel file in the vi and the user names and passwords will be always saved.  I posted the vi I've tried to work with below.  Instead of the table user in place, I'm guessing that would be replaced by the Excel file to call from?  Any help would be greatly appreciated.  Thank you.

Chris

I couldn't open your vi as a Subvi is missing.

You can reference vi attached with this post.

I used the text instead of excelsheet file.

Text file format is

UsernamePASSWORD

Tags: NI Software

Similar Questions

  • Use the own user dialog box

    Hello

    I want to use my own user dialog box at startup of the user interface. This dialog gets the user to a database of information and I'm not logging in twice.

    Is it possible, where can I disable the standard dialog box, where I should put my dialog box and what data should I send to TS.

    Using TS3.0 and LV8.2.1.

    schwede greetings

    Schwede-

    If you want to change the user login dialog box when you start TestStand, what you want to do is to change the sequence of LoginLogout in the sequence FrontEndCallbacks.seq file. Before editing, I recommend that you copy the folder \Components\NI\Callbacks\FrontEnd \Components\User\Callbacks in the Directory. Then, modify the files there. You want to replace the steps of connection and disconnection of the sequence of LoginLogout with your own steps that display your own personal dialog box.

    I hope this helps.

  • Generate the log file for the dialog box

    Hi all


    I'm generating information for the dialog box as a .txt log file format. That means that if the box is checked, the log file will be give ' checkbox1 - 01.»   Check the report, sizes against the information on tickets and slug jobs"is checked


    If the checkbox is not checked, the log file will be give ' checkbox1 - 01.»   Check the report, sizes against ticket and slug information on employment"is not checked


    and also the entry "myText2" also needs to generate the log file


    Can someone help on this... Help would be appreciated!



    var l is new window ('dialogue');.

    myGroup1 var = w.add ("panel", undefined, ' P & & G check the list ');

    myGroup1.alignChildren = 'left ';

    CheckBox1 var = myGroup1.add ("checkbox", not defined, '01.   (Check the ratio, size against the information on tickets and slug jobs");

    CheckBox2 var = myGroup1.add ("checkbox", not defined, '02.   "" "Check images are linked");

    var checkbox3 = myGroup1.add ("checkbox", not defined, '03.   Visually check the progress of KV/model/CP images");

    var checkbox4 = myGroup1.add ("checkbox", not defined, '04.   Visually check the progress of other elements such as Logo and bottle");

    var checkbox5 = myGroup1.add ("checkbox", not defined, '05.   Check the positioning of the markup language");

    var checkbox6 = myGroup1.add ("checkbox", not defined, '06.   Ensure that all measures are calculated Live based area");

    var checkbox7 = myGroup1.add ("checkbox", not defined, '07.   After that the resizing of the picture KV frame open to cut and bleed");

    var checkbox8 = myGroup1.add ("checkbox", not defined, '08.   Complete Magenta if there is insufficient image');

    var checkbox9 = myGroup1.add ("checkbox", not defined, '09.   ("To ensure that the document's bleed, crop gutter and slug information brands ');

    var checkbox10 = myGroup1.add ("checkbox", not defined, '10.   Make sure that the final work is updated on the server");

    var checkbox11 = myGroup1.add ("checkbox", not defined, '11.   ("Enter time cmd");

    var myGroup2 = w.add ('panel', undefined, 'The operator name');

    var myText2 = myGroup2.add ("edittext", undefined, "");

    myText2.characters = 25;

    myGroup2.orientation = 'left ';

    var buttons = w.add ("group");

    Buttons.Add ('button', undefined, 'Export to PDF', {name: 'ok'});

    Buttons.Add ('button', undefined, 'Cancel');

    w.Show ();

    ~ group();

    ~ If (myGroup1.alignChildren.value! = true) {}

    ~ alert ('yes')

    //~ }


    myDoc = app.activeDocument;

    w = [];


    DESCRIPTION: Make a TXT file

    myDoc = app.activeDocument;

    Log1 = makeLogFile (app.activeDocument.name.split('.') ([0], myDoc, true);

    log (log1, app.activeDocument.name);

    ~ log2 = makeLogFile ("test", myDoc, false);

    ~ Journal (log2, "Text file log base 2");

    Log1. Execute();

    ~ log2.execute ();

    function makeLogFile (aName, aDoc, deleteIt) {}

    var logLoc; path to the folder that will contain the log file

    try {}

    logLoc = aDoc.filePath;

    } catch (e) {}

    logLoc = getmyDoc (). parent.fsName

    }

    var queue = aFile (logLoc + "/" + name + ".txt");

    If {(deleteIt)

    aFile.remove ();

    return aFile;

    }

    var n = 1;

    so that {(aFile.exists)

    aFile = File (logLoc + "/" + String (n) + ".txt" aName);

    n ++

    }

    return aFile

    }

    function getScriptPath() {}

    try {}

    Return app.activeScript;

    } catch (e) {}

    Return File (e.fileName);

    }

    }

    function log (aFile, message) {}

    var today = new Date();

    If (! aFile.exists) {}

    do the new log file

    aFile.open ("w");

    aFile.write (String (today) + "\n");

    aFile.close ();

    }

    }

    function log (aFile, message) {}

    var text = o;

    If (! aFile.exists) {}

    do the new log file

    aFile.open ("w");

    aFile.write (message + "\n" + "\n" + String (w) + "\n");

    aFile.close ();

    }

    ~ aFile.open ("e");

    ~ aFile.seek (0.2);

    ~ aFile.write ("\n" + message);

    ~ aFile.close ();

    }

    myDoc.close (SaveOptions.no);

    Thanks in advance

    Steve

    Hi Steve,.

    There are some errors in your code.

    1. function 'getmyDoc' is used, but not created.
    2. fucntion 'getScriptPath' is created but not used. (In any case, this will not give you error)
    3. function 'journal' has defined two times with the same length of the parameter.

    etc...

    Here, I have modified your code. Try this.

    var w = new Window ("dialog");
    var myGroup1 = w.add('panel', undefined, 'P&&G Check List');
    myGroup1.alignChildren = "left";
    var checkbox1 = myGroup1.add ("checkbox", undefined, "  01.  Check the ratio, sizes against job ticket and slug information");
    var checkbox2 = myGroup1.add ("checkbox", undefined, "  02.  Check images are linked");
    var checkbox3 = myGroup1.add ("checkbox", undefined, "  03.  Visually check the progression of KV/Model/CP images");
    var checkbox4 = myGroup1.add ("checkbox", undefined, "  04.  Visually check the progression of other elements like Logo and Bottle");
    var checkbox5 = myGroup1.add ("checkbox", undefined, "  05.  Check the placement of Language Tagging");
    var checkbox6 = myGroup1.add ("checkbox", undefined, "  06.  Ensure that all measurements are calculated based on Live area");
    var checkbox7 = myGroup1.add ("checkbox", undefined, "  07.  After resizing the KV image frame opened up to trim and bleed");
    var checkbox8 = myGroup1.add ("checkbox", undefined, "  08.  Fill Magenta if there is inadequate image");
    var checkbox9 = myGroup1.add ("checkbox", undefined, "  09.  Ensure the document has bleed, crop marks, gutter marks and slug information");
    var checkbox10 = myGroup1.add ("checkbox", undefined, "  10.  Ensure the final artwork is updated in the Server");
    var checkbox11 = myGroup1.add ("checkbox", undefined, "  11.  Enter time in CMD");
    var myGroup2 = w.add('panel', undefined, ' Operator Name');
    var myText2 = myGroup2.add("edittext", undefined, "");
    myText2.characters = 25;
    myGroup2.orientation = "left";
    var buttons = w.add ("group");
    buttons.add ("button", undefined, "Export PDF", {name: "ok"});
    buttons.add ("button", undefined, "Cancel");
    w.show ();
    myDoc = app.activeDocument;
    log1 = makeLogFile(app.activeDocument.name.split('.')[0], myDoc, true);
    log(log1, app.activeDocument.name);
    log1.execute();
    function makeLogFile(aName, aDoc, deleteIt)
    {
        var logLoc = "";
        try
        {
            logLoc = aDoc.filePath;
            } catch (e) {}
        var aFile = File(logLoc + "/" + aName + ".txt");
        var n = 1;
        while (aFile.exists)
        {
            aFile = File(logLoc + "/" + aName + String(n) + ".txt");
            n++;
            }
        return aFile
        }
    function log(aFile, message)
    {
        var text = w;
        var rep = "";
        if (!aFile.exists)
        {
            aFile.open("w");
            var today = new Date();
            rep += String(today) + "\n";
            rep += message + "\n" + "\n\n";
            for(var i =0;i
    

    Kind regards

    Cognet

  • How can I configure the location for file dialog boxes?

    See the topic. File open, Save Fale and friends display the file dialog box.

    On the side of Lleft are in some places and I want to configure them. How is that possible?

    Thanks a lot for listening!

    Norbert

    There is no mechanism for this today. What you see here are common OS directories like 'Home' or 'Documents' and then recently traversed directories.

  • Selection of slice in the Save for Web dialog box to 17.1

    Since the upgrade to Illustrator 17.1, I can choose is no longer slices in the Web dialog box, nor can I select a range on another layer than the one it was created the. Anyone else see this problem?

    Hello world

    We apologize for the inconviences. The product team is currently studying the bug and seeks to provide a fix in the near future.

    In the meantime, try the suggestions provided by Nolanco or jwsiddons as a workaround.

    Nolanco:

    In the window of the web if the image is larger than the window, zoom out to see all the work plan (made on screen or less percentage), in this way is possible select any range, when the if larger image that the window the offending behavior to take place.

    jwsiddons:

    My work around was to use the Selection of slice inside the artboard tool and go with file > save selected slices.

    Thank you

    Amy

  • Shortcut for the dialog box method replace Pages

    What is the method of shortcut keyboard to set up the dialog box replaces Pages.  I use a function to replace the Pages a lot in the preparation of PDF documents and need a faster method than to use the mouse on the side bar to the right of the tools.  I note this shortcut key to insert pages is Ctrl-Shift-I - what is the shortcut to replace Pages.  Previous Acrobat 9, I use alt - DNR, which brought up the dialog box replaces the Pages via the menu, but is no longer part of the Document in the menu bar — it has been deleted.  Please, it's VERY important to me.  Any help will be greatly appreciated.

    There is no keyboard shortcut to replace Pages and, unfortunately, there is no way in Acrobat X Pro to set a keyboard shortcut.

    The way the faster I know to bring up the command replace Pages is to customize the quick tools (the gear in the top toolbar icon) allows you to add Pages to replace the quick toolbar. It will then be a click to order.

  • Making a function of confidence for a dialog box?

    My goal is to create a set of application-level scripts to automate common tasks for report generation.  I want a dialog allowing to collect the paths and page numbers for the various assets being manipulated.  The user provides the input, hit OK, and the script accesses.

    My problem:  SECURITY.

    App.browseForDoc () call throws a security error!  I am new to the Acrobat object model and its security model.  I can't wrap my brain around the documentation on this topic.

    Can someone give a peek at the code example below and point me in the right direction?

    var dialogAutoReport = {
        initialize: function (dialog) 
        {
            //INSERT CODE TO INITIALIZE DEFAULTS HERE
        },
        commit: function (dialog) 
        { 
            var results = dialog.store();
    
            console.println("Running report " + results["te1"]);
        },
        btn1: function (dialog)
        {
            console.println("Browse button pressed!");
            app.beginPriv();
            var oBrowseResult = app.browseForDoc();
            app.endPriv();
            if (typeof oBrowseResult != "undefined") 
            {
                dialog.load({ txe1: oBrowseResult.cPath});
            }
        },
        description:
        {
            name: "autoReport",
            align_children: "align_left",
            width:  400,
            height: 400,
            elements:
            [
                {
                    type: "cluster",
                    name: "Designations",
                    align_children: "align_left",
                    elements:
                    [
                        {
                            type: "view",
                            align_children: "align_row",
                            elements:
                                [
                                    {
                                        type: "static_text",
                                        name: "Base Report: "
                                    },
                                    {
                                        type: "edit_text",
                                        item_id: "txe1",
                                        alignment: "align_fill",
                                        width: 300,
                                        height: 20
                                    },
                                    {
                                        type: "button", 
                                        item_id: "btn1",
                                        name: "Browse",
                                        alignment: "align_center",
                                        width: 50,
                                        height: 20
                                    }
                                ]
                        },
                        {
                            alignment: "align_right",
                            type: "ok_cancel",
                            ok_name: "Ok",
                            cancel_name: "Cancel"
                        }
                    ]
                }
            ]
        }
    };
    
    app.execDialog(dialogAutoReport);
    

    Add app.beginPriv/app.endPriv after calling app.browseForDoc.

  • Adobe Acrobat Reader DC. In the dialog box print has no text

    are.png

    Hello

    This happens usually when the police Segoe UI are missing.

    Please visit the following link.

    Boxes of empty dialogue or missing text of GUI, Adobe Acrobat and Reader

    Concerning

    Sukrit diallo

  • An idea for the dialog box Image size

    Just an idea I had. Should at least make it easier to explain the concept of resolution for beginners:

    image size.png

    Might work? Any opinions? Just a sketch of course, probably could be improved.

    I still like the idea. What I think is needed is a clear method to show the relationship of DPI, image size (not pixels) and resampling. So the beginner can grasp how dpi refers to the size of the image and how a 4 X 5 and 8 X 10 picture can have the same pixel dimension, and how two 8 X 10 images can have different resolutions. They are closely related, but I don't know how to articulate.

  • Detect if the time information dialog box controls user has been activated

    Hello

    I have to make a few changes to my project. I can't edit existing program blocks, so I have to find a way to detect if the user has pressed icon for user dialog box to set up (control type is Time Stamp). I have now, I can compare the current values with the values from the previous loop pass, but this isn't an option.

    I'm looking for some kind of property as active control node or something similar.

    It does not exist.  You can create your own time stamp control (like an XControl), or you can simply watch to see if the window is displayed. You can do the last using VI server functions or you can use the API of the operating system. For Windows, you can use the LabVIEW Windows utilities library.

  • All records showing the attribute read-only - cannot be changed via a Properties dialog box OR the command "attrib" user profile AND is not corrupted

    I use Win 7 64 and recently all my files have begun to show read-only. Other responses on this forum, which suggests to change the read-only via the Properties dialog box, attrib command did not work. In addition, I created a new administrator account as suggested by another answer, but the problem persists on both accounts.

    Several programs will not work now that they can not write files in folders.

    What can I do to fix this?

    Hello

    See the following article for a description of this problem.

    326549 You cannot view or change the read-only or the attributes of system files in Windows Server 2003, Windows XP, Windows Vista or Windows 7

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • user with indicator dialog box

    Hello

    I am trying to create a user dialog box that passes the main program and monitors a tension or a control with an indicator.  In the example, the dialog box is stuck in its time loop and the input voltage / control cannot be changed.  The proposed techniques have greatly appreciated?

    Thank you

    Gary

    So the Subvi might be as below. In fact, what is your goal with this dialog window? You experience just how to program these parallel pop-up windows, or you want to deploy this kind of functionality in a larger project? If you share us what your code needs to do, we could give more specific help...

  • Lack of camera raw dialog box in Photoshop Elements 8 for Windows.

    Hello

    I have Photoshop Elements 8 for Windows. It runs on a Windows 32 - bit Windows Vista VirtualBox virtual machine.

    It worked fine, but suddenly opening of raw images from Nikon is no longer opens the Camera Raw dialog box, but takes me directly into the editing on Photoshop Elements.

    I really like having the area of the Camera Raw dialog box to open as I do most of my treatment using this before opening the file that results in the elements of the image.

    Does anyone know how to get this back box, or open in the elements?

    I tried to open the images in Photoshop Elements by using the element of mnu ' open under... ". "in the menu file, then the 'Camera Raw' choice as the image type, but it nevertheless opens without the Camera Raw dialog box.

    Thank you very much.

    Check your settings screen for vista resolution.

    I believe that the resolution of the screen should be at least 1024 x 768 for the dialog box camera raw show in pse 8.

    For example, if, instead of run VirtualBox full screen, your running in windowed mode or transparent and done the small window by dragging on the corner, which would automatically reduce the resolution of the screen in vista.

  • Rename images that I download ("Save as" dialog box)?

    Is it possible to download an image in Firefox for Android and rename it immediately?

    I'm a lot of webcomics on a regular basis and save favourite pages, i.e. the images. In order to be able to organize these images of comic book later, I need the ability to rename files. Switching in the download to rename for each file but directory would be very invasive for webcomic reading, so I need a dialog box "Save as" style.

    Dolphin provides such a dialogue by choosing 'Save Image', but I prefer to use firefox for synchronization features.

    There are no plans for this Interface on Firefox for Android. Could be a good extension, however.

  • Dialog boxes personalized with GREAT text.

    LabVIEW 2010

    Since the regular dialogue vi use standard text and I need big txt I have generated my own. Can I combine strings of errors so that I can work around the error dialog boxes (sort of). However since they are called, but not run they flash briefly on the screen. To resolve this problem, I used screws wrapper for each dialog box that make handeling error unitialized shift registers equipped with remember the last item entered.

    Requirements.

    1 ask the user to information in large text.

    2. variable prompting text.

    3. don't forget previous entry (by instance)

    4 handle the error to work around the dialogue with error in.

    5. selection of "cancle" trap error

    6 focus on control of the key entry

    7. multiple instances so that when I ask the serial number, it doesn't remember the part number that I invited just to.

    This last part is the trickiest part. Where to put the re-entrant execution. Can I put it to the packaging or the dialog box? Maybe there's another that I'm missing that makes easier.

    Norm

    HI Viper,

    Yes it is.  It is advisable to establish a dialogue before be displayed.  To do this, uncheck 'show façade when it is called' in the properties of the VI so the dialog does not appear initially.  Then use the FP property node. Open your VI dialogue after you look for errors.  It would be also good to populate the old data before the display of the VI.  I use this technique for re draw dialogues before being posted (show/hide controls etc.)

    Michael.

Maybe you are looking for