How do you record the current index?

Hi everyone,
Im sorry if this problem seems basic, but I have a for loop that controls motor movement, and I have a separate while loop that is responsible for all data acquisition. I am wondering if there is a way to record the current index number from the for loop in my DAQ loop? I tried wiring the index down to the array in the while loop, but it seems to prevent the while loop from starting up.
I can throw up some pictures if necessary, but im hoping this can be done easily.
Thanks!

Please do not "throw up pictures".  Instead, post code.  Attach a VI, or create a Snippet (which looks like a picture, but can be dragged onto a LabVIEW Block Diagram and, by NI Magic, becomes executable, editable, clickable LabVIEW code.
Bob Schor

Similar Messages

  • How to find out the current index

    Hello Experts,
               How to find the current index and whatever we entered in that table how to ratrieved that entry value.pls give the suggest..

    Hi,
    To get current index write below piece of code in the outbound plug for your F4 help pop up.
    We have to write this in the outbound plug itself otherwise it will not work.
    let me know whethere it worked or not
    cl_chtmlb_config_utility=>outbound_plug_event_info( EXPORTING iv_event_string = lv_event_string
                                                          IMPORTING ev_index        = gv_index ).
    Regards,
    Swapna

  • How to you reference the current page number and total pages in a script?

    I'm trying write a small script to make field invisible when the current page equals the total number of pages, but with no luck.
    Can anyone advise how to do this?
    I've tried various ways to reference my fields, this being the most basic:
    if(pageNumber == totalPages) {
    continuedBase.presence = "invisible";
    // pageNumber has a run time property as "Current Page Number"
    // totalPages has a run time property as "Number of Pages"
    // continuedBase is a text field within the same subform as pageNumber and totalPages
    Thanks for any help offered.
    Russell

    If you are asking how to get the current page and total pages you acn use these commands:
    current page ----- xfa.layout.page(this)
    total pages ------ xfa.layout.pageCount()
    so your code woudl look like this:
    app.alert("The curent page is: " + xfa.layout.page(this));
    app.aler("The total number of pages is: " + xfa.layout.pageCount());
    if(xfa.layout.page(this) == xfa.layout.pageCount()) {
    continuedBase.presence = "invisible";

  • JavaScript:  How do you pass the currently active doc to a dialog in a menu item?

    I'm using Adobe Acrobat 11.0 Standard on Windows 7, and I'm having trouble with the menu item that I'm creating.  The menu item calls a dialog that prompts the user to select a page in the currently active document.  The problem is, I can't figure out how to pass the currently active document to the dialog.  I scoured the rest of the documentation, did searches on Google and here in the Adobe forums, but haven't turned anything up.  The AcroJS API gives the following solution (found under app/methods/execDialog):
    This function attaches the Doc object to the dialog box, then passes the dialog box to the app.execDialog method. The dialog4 object and this function can be at the document level.
       function dotheDialog(dialog,doc)
            dialog.doc = doc;
            var retn = app.execDialog( dialog )
    Finally, the following script can be executed from a mouse-up action, for example.
        dotheDialog( dialog4, this );
    I did this exact thing, but in the dialog, the value of this.numPages still comes out as undefined, indicating that the current document still hasn't been passed.  My own code looks like this:
      function dotheDialog(dialog, thisDoc){
        dialog.doc = thisDoc;
        var retn = app.execDialog(dialog);
      app.addMenuItem({
        cName: "Test Dialogue Box",
        cParent: "Edit",
        cExec: "dotheDialog(templateDialogue, this);"
    where templateDialogue is the name of my own dialog, rather than dialog4.  I'm not sure what the retn variable that they declare in the documentation is for, but I've tried it with and without that part, and it doesn't seem to make a difference.  Does anyone know how to do this?

    Sorry, here it is.  It's also just a small modification of something directly from the API, which is why it still has the date bit in it.
    var templateDialogue = {
      initialize: function (dialog) {
        // Create a static text containing the current date.
        var todayDate = dialog.store()["date"];
        todayDate = "Date: " + util.printd("mmmm dd, yyyy", new Date());
        dialog.load({ "date": todayDate });
      commit:function (dialog) {    // called when OK pressed
        var results = dialog.store();
        var inBounds = (parseInt(results["tPag"]) < this.numPages);
        if(!inBounds){
          app.alert({
            cMsg: "Please enter a valid number for the page from which to make the template." +
            "\n" + parseInt(results['tPag']) + " = parseInt(results['tPag']) !< this.numPages = " +  // I put this in to see the value of this.numPages,
            this.numPages,                                                                           // and it continues to be undefined.
            cTitle: "Page out of Bounds",
            nIcon: 0, nType: 0
        }else{
          var nButton = app.alert({
            cMsg: "Your template is named " + results["tNam"] + " and is made from page " + results["tPag"],
            cTitle: "javascript",
            nIcon: 3, cType: 0
      description:    {
        name: "Personal Data",    // Dialog box title
        align_children: "align_left",
        width: 350,
        height: 200,
        elements:
            type: "cluster",
            name: "Add a page to this documents templates.",
            align_children: "align_left",
            elements:
                type: "view",
                align_children: "align_row",
                elements:
                    type: "static_text",
                    name: "Template Name: "
                    item_id: "tNam",
                    type: "edit_text",
                    alignment: "align_fill",
                    width: 300,
                    height: 20
                type: "view",
                align_children: "align_row",
                elements:
                    type: "static_text",
                    name: "Generating Page: "
                    item_id: "tPag",
                    type: "edit_text",
                    alignment: "align_fill",
                    width: 300,
                    height: 20
                type: "static_text",
                name: "Date: ",
                char_width: 25,
                item_id: "date"
            alignment: "align_right",
            type: "ok_cancel",
            ok_name: "Ok",
            cancel_name: "Cancel"
    Side Question:  Out of curiosity, how would you abort if the user clicks cancel?  I get the feeling that they don't cover it because it's something you're supposed to already know how to do, but...I don't.  Would you just put whatever action you want to take into an if ( button == "Ok" ) type statement so that cancel does nothing?

  • How can you record the screen of any device with no computer and no jailbreak?

    I would like to record the screen to record my gameplay and other stuff. Please help.

    Josh, this was my first gripe when I moved to IronPort toward the end of 2008; I forget the version of Asyncos we were on then. Remember that the design philosophy (as I'm given to understand it) is that you shouldn't have to nursemaid it as much as some other gateways, though achieving that is more a question of developing robust mail policies than simply plugging in the device and running the setup wizard.
    I found the Asyncos GUI a bit of a pain to work with for header analysis, but I've adapted over time. It's only an annoyance now when you need to see an attachment file name that scrolls across three or four screen widths, and by comparison SharePoint gives me more grief in that department (we're on a paleolithic version here).
    For some things we send a copy of quarantined items out to a dedicated mailbox only accessible by staff monitoring our gateways; for more details see my posting in your thread "Can't View Video Files Attached To Emails".

  • How do you clear the current song info from the top display window?

    When you first start iTunes and select Music, the display window at the top just has an Apple logo in it. Once you start playing a song, the song info shows up there. I can stop the song using Command-period (or the space bar), but the info stays there. Is there a keyboard shortcut or something simple to return the window to just the Apple logo? I cleared it inadvertently when I selected Radio, but I don't know if that will always work and I'm guessing there's a formal way to do it. (Selecting Radio while a tune is playing won't clear the info, of course.)

    Fairhavens wrote:
    ... a good manual for iTunes
    here are some:
    iTunes 101
    How to Use iTunes: Getting Started
    iTunes Keyboard Shortcuts
    JGG

  • HTML Panel: How do you highlight the current link?

    I have an HTML panel that's working perfectly, but there is
    no way for the user to know which link is currently displaying
    content. Is there a way to add a CSS class to a link when the user
    clicks it, and remove that class when the user clicks a different
    link? My HTML panel is here:
    new.eci2.com in the box labeled
    "Solutions"

    I don't know if this will help but, I was able to use the
    following example to trigger CSS changes when an element is
    selected.
    http://labs.adobe.com/technologies/spry/samples/data_region/SprySelectSample.html
    In your example firefox shows me the active link as the
    default 'visited' purple color. Just so you know. :)
    I hope this helps.
    Byron

  • How do you reference the current version of DIAdem through an automation reference?

    I need a way to find out which version of DIAdem is active. REading the registry doesn't help, because DIadem simply registers subkeys and doesn't keep track of multiple versions. Can I do this via the DIAdem API? Thanks.

    Hi DecaGregg,
    Yes, you can query which version of DIAdem you have on the other end of an OLE Automation Server connection. Use the ToCommand server's "IntegerVarGet" method and one of 3 internal DIAdem variable names to get the information you want. Try double-clicking on the VBScript attached below from Windows Explorer to see what it looks like from a text-based program.
    If you are controlling DIAdem from LabVIEW, there is a built-in VI in the LabVIEW-DIAdem Connectivity VIs that does this version querying for you.
    Have fun,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    DIAdemVersion.VBS ‏1 KB

  • How do you record the iPod touch 5th generation screen for free

    I treys that weebly website but that doesn't work it says the website doesn't exist 

    Reflector - AirPlay mirror your iPhone or iPad to any Mac or PC, wirelessly.
    but not free

  • How do you read the camera position in the 3d picture control?

    Hello,
    There is a method to setup the camera position, but how do you read the current camera position?  e.g. the user uses the mouse, ctrl, and shift, to change the camera position.  How do you read this new camera position?  There don't seem to be any properties to do this.
    I've read this thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=214629&requireLogin=False
    but the question was never answered....
    From the comments in that thread, even if you had the proper documentation for the "Model Matrix" property, you couldn't get the information necessary to calculation the camera position.

    Lorielle,
    Thanks for the VI.
    Could you point me towards a more detailed description of the "Modelview Matrix" property?  I've attached a screenshot from the online help.  It is not very helpful.
    Attachments:
    Modelview Matrix.jpg ‏71 KB
    Modelview Matrix1.jpg ‏71 KB

  • How do you add the name of a song to a downloaded track not reccognized in the iTunes library.  I copy songs from my own CDs and want to properly identify them instead of the current "Track 02".  Thanks

    How do you add the name of a song to a downloaded track not reccognized in the iTunes library.  I copy songs from my own CDs and want to properly identify them instead of the current "Track 02".  Thanks

    Right-click the track in your library, Get Info, go to the Info tab, and type in the correct information.  When you are done, click "OK."

  • How could you map the Records of OM- PA

    Hello Experts,
    How could you map the Records of OM->PA ,if the designation of person changes from manager to supervisor from certain date.and how can we see the changed records??
    Solution :we can see the changes in the addition action infotype 302,personel hiring action(0000) delimit the record whenerver we changes the designation,and in the orgassingment infotype overview ,action infotype over view we can see the changes and PLOGI-ORGA IS the integration switch and position is the key for map the recoed from OM ->PA
    Post your comments if the solution is correct???
    Regards
    Chandra

    Thanks  a Lot!!!!
    Regards
    Chandra

  • TS2755 Is there a fix to deleting already deleted address book contact, from messages search? i.e. when you type in say letter c in messages search, all contact with a c, past already deleted and current all appear?  How do you make the old deleted ones a

    Is there a fix to deleting already deleted address book contact, from messages search? i.e. when you type in say letter c in messages search, all contact with a c, past already deleted and current all appear?  How do you make the old deleted ones appear?

    only way is to restore the phone as new.  OR wait until IOS 7 comes out in the fall.

  • How do you record video with usb mic and have the audio from garageband be the sound when recording and not just your normal voice but garage band effects for youtube?

    How do you record video with usb mic and have the audio form garageband be apart of the video when recording, meaning the audio from garageband and echo  and not just your normal voice for youtube post?its not add the garageband audio its just normal voice from mic no  effects is going thru?

    Hi Life93,
    What you describe would be possible by recording your video, then removing the audio from it and adding audio from GarageBand once the video is in iMovie (I presume here that you are using iMovie for your video production. Other applications may need different methods.)
    See this thread on how to remove the audio from a clip in iMovie -
    Is there a way to separate audio from a video c...
    https://discussions.apple.com/thread/1779767
    To add audio from GarageBand use this article -
    iMovie '11: Add a sound clip to your project
    http://support.apple.com/kb/PH2255
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • How do you find the size of a current layer so you can make other layers the same size

    When I have an PSD icon set and I want to size a layer to a size that looks good.  How do I see the dimentions of that layer so that I can select another layer and make it the same size.

    well that's my point Chris.  I have a PSD that has 150 icons in it.  I want to take 5 of them and make them the same size 300 x 300 from the 180 that they are.
    If I select one and then press Apple T, I can see that it is 180 x 180 in the info window.  I can then go to the transform bar at the top where it says 100% x 100% and type in 180px then 180px in the other.
    Chris Cox wrote:
    Or duplicate the layer and replace the contents...
    Then repeat for the other 4 layers.  Is this the correct way (easiest?)  How do you replace the layer after duplicating it.

Maybe you are looking for

  • Need to create a report: all materials in one storage location incl. value

    Hello, we have the requirement to create a report: all materials in one storage location incl. value. What are the database-tables we need to use in the report? Is there a standard transaction which shows all materials on one storage location? Thanks

  • Why do I have to pay more?

    So I want to buy a Production PRemium CS6. It costs 1899$ in the US and almost 2200$ in Russia. And Adobe does not allow me to buy it in the US store for I have registere my account in Russia. What the ...? It's digital download, why do I have to pay

  • Internal table to be downloaded into excel is empty

    Hi everybody, I created a page where I'm displaying in a table all the records. OnInitialization, I set my RFC needed to get the data from the Prod.Server and so far is displaying fine the data when I test it. Now, I want to download that table into

  • Approval request autoescalation

    The current scenario is like this. User Self Registration -------(Request No:1 is send to Group 1 Users for approval )---------> Group1-----------(atleast one user approves ,Request No:1 is passed to Group 2 users)-----> Group 2. I have achieved this

  • SAP SD CIN Query-2

    Dear Experts is it possible to Update and Extract RG1 register(J1I5 and J2I5) for the current date(today's date) if we havenu2019t performed this activity for the previous date(yesterday's date)? Wating for your expert suggestion. Deepak