How to create control dynamicall​y while front panel fly using Xcontrol or anyothere options but without scripting tools

Hello friends
           I have one doubt How to create control dynamically while front panel fly using Xcontrol or anyothere options but without scripting tools.I need to create the controls while vi is running.For example I need to create one Boolean  while VI was Fly and i need one Examples it is easy to understand.
Jayavel

You must be using a different dictionary than the rest of us.
You can't dynamically create controls while a VI is running.   (If I'm mistaken, then I'm sure someone else can jump in and say how it can be done.)
Do you have a finite number of controls you could possibly need?  What you can do is create enough controls of the type you need ahead of time.  At the beginning of your program, you hide all of those controls.  As you need to create a control, you make it visible using property nodes.  There are numerous properties you can set at run time suce as ranges, colors, captions, ...  Of course you can't wire these controls to any other bits of code ahead of time since at that time, you haven't defined what you want each one to actually control.  But if you use an event structure to detect when the values of the controls have changed, you can then programmatically pass the data off to other parts of your code using queues.  The architecture can get complicate quite fast, so you may want to look through Ben's Action Engine Nugget and other related threads for how to create mechanisms for using these controls.  Perhaps storing queue reference numbers or assign user events to each one.

Similar Messages

  • How to create one Help button on front panel of VI??

    Hello,
    I want to create one button for example one help button on front panel of VI so by pressing that any new user can open folder in which I have store some help guide.
    Means I have make one folder on my desktop in that I have save all the data which should be useful for new user so if some new user want to run the programm and if he has no idea that how to run program then he can simply press help button and after pressing that helping folder will be open then reading then instruction user can start the program.
    Hope you will get my point.
    Thank you very much.
    Solved!
    Go to Solution.

    The Help that aCe posted will not work if you intend for the help to be displayed immediately. Since it is queued it will not be processed until the run is complete if it is currently running. This also means that if the Pause button is pressed the help will be delayed for quite some time. Also, you should avoid the use of local variables to control state information. The state machine should maintain all of your state information. The producer should only detect the events and pass the messages to the consumer. What you are encountering is a classic issue with the producer/consumer with the consumer acting as a state machine. Interrupting the flow of states with new events of a higher priority can be problematic. Simply placing items in the front of the queue may not always work correctly. There are some examples of implementations that use multiple queues which can create prioritized messages.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Is there a way to create a button on the front panel that would automatically open the txt file data is being stored to?

    I am saving data read from FieldPoint to a .txt file. Is there a way to create a button on the front panel so that when the user pushes this button it automatically opens the .txt folder in notepad? I want to bypass the user having to find the file in the computer in order to open it.

    Hi jem,
    I suggest that you break this up into three seperate questions and re-post to this list. That way you get more ideas from others that may have better insites than myself.
    Re:the sysexec
    The Sysexec will allow you to execute a dos command. This is the equivalent of going to
    Start>>>Run
    What you should do is find the proper DOS command sysntax that is required to open a text file in notepad or your favorite editor. Once you know what a good DOS command is, you should pass that string to the Sysexec.VI. The Sysexec has an input that allows you to choose if the code waits for the command to complete or if it should just start the program and let it run in the background. Sysexec will open its own window to run the command you speci
    fiy.
    Ben
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • WIth LabVIEW how do I control an instrument with a RS232 output, using a RS232 to USB converter cable.

    WIth LabVIEW how do I control an instrument with a RS232 output, using a RS232 to USB converter cable since I dont have rs232 ports. I have two instruments that I want to control in this manner. One is an Imada ZPS force gage with RS232 output. The other is a Panasonic HL-G103-S-J laser micrometer sensor which is RS422. I've done considerable LabVIEW programming using GPIB but I have no experience with devices like these. Any tutorial or examples would be greatly appreciated.
    Thanks.
    Solved!
    Go to Solution.

    I understand that you want to control a device which having RS 232 port as output. If so, you can use an USB-RS232 cable from PC to device and you can control or monitor the device.
    See this link http://zone.ni.com/devzone/cda/epd/p/id/2669
    Also, first check the device in hyperterminal and then continue to program in labVIEW. You can find the serial VI's in Instrument I/O.

  • How to create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

  • How to create an object of our own class by using Class.forName()??

    how to create an object of our own class by using Class.forName()??
    plzz anser my qustion soon..

    Class.forName does not create an object. It returns a reference to the Class object that describes the metadata for the class in question--what methods and fields it has, etc.
    To create an object--regardless of whether it's your class or some other class--you could call newInstance on the Class object returned from Class.forName, BUT only if that class has a no-arg constructor that you want to call.
    Class<MyClass> clazz = Class.forName("com.mycompany.MyClass");
    MyClass mine = clazz.newInstance();If you want to use a constructor that takes parameters, you'll have to use java.lang.reflect.Constructor.
    Google for java reflection tutorial for more details.
    BUT reflection is often abused, and often employe when not needed. Why is it that you think you need this?

  • HT2534 Its is fake . i have bought iphone today but i haven't cred card so how i create account ? Your example type "none" window not come . New iphone but with out ID useless Phone :(

    Its is fake . i have bought iphone today but i haven't cred card so how i create account ? Your example type "none" window not come . New iphone but with out ID useless Phone

    Most of the people on these forums, including myself, are fellow users - you're not talking to iTunes Support here.
    Did you follow the instructions on that page exactly when creating the account (the instructions won't work with existing accounts) ? e.g. if doing it on your phone and you are currently logged into an account then log out of it, find a free app in the app store app, tap on its free price button, tap 'install app', and then tap on 'create new apple id' on the popup that you get. I tried those instructions on my phone a few days ago in response to another thread and I got the 'none' option on the payments screen.

  • When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified

    When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified because it is already in use ??? What am I doing wrong?

    settings -> iTunes & App Store
    click on apple ID listed there
    select Sign Out
    sign in with the proper account
    from then on, when the store ask for your password it should be with the correct ID

  • How to create column header text while downloading file

    How can we create column header text while downloading file using function GUI_DOWNLOAD(in SAP Release 4.6c) because there is no FIELDNAMES parameter in
    4.6c version.

    Hii,
      Check this sample code. I have called GUI_DOWNLOAD twice. Onetime to download header of table and next time data of table
    REPORT  z_file_download.
    DATA: w_name(90) TYPE c.
    DATA:
      BEGIN OF fs_flight,
        carrid   LIKE sflight-carrid,
        connid   LIKE sflight-connid,
        fldate   LIKE sflight-fldate,
        price    LIKE sflight-price,
        currency LIKE sflight-currency,
      END OF fs_flight.
    DATA:
      BEGIN OF fs_head,
        carrid(10) TYPE c,
        connid(10) TYPE c,
        fldate(10) TYPE c,
        price(10) TYPE c,
        curr(10) TYPE c,
      END OF fs_head.
    DATA:
      t_head LIKE
       TABLE OF
             fs_head.
    DATA:
      t_flight LIKE
         TABLE OF
               fs_flight.
    fs_head-carrid = 'CARRID'.
    fs_head-connid = 'CONNID'.
    fs_head-fldate = 'FLDATE'.
    fs_head-price  = 'PRICE'.
    fs_head-curr   = 'CURRENCY'.
    APPEND fs_head TO t_head.
    SELECT-OPTIONS:
      s_carrid FOR fs_flight-carrid.
    START-OF-SELECTION.
      SELECT carrid
             connid
             fldate
             price
             currency
        FROM sflight
        INTO TABLE t_flight
       WHERE carrid IN s_carrid.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                  =
        filename                      = 'D:\flight.xls'
       FILETYPE                      = 'ASC'
    *   APPEND                        = ' '
        WRITE_FIELD_SEPARATOR         = 'X'
    *   HEADER                        = '00'
    *   TRUNC_TRAILING_BLANKS         = ' '
    *   WRITE_LF                      = 'X'
    *   COL_SELECT                    = ' '
    *   COL_SELECT_MASK               = ' '
    *   DAT_MODE                      = ' '
    *   CONFIRM_OVERWRITE             = ' '
    *   NO_AUTH_CHECK                 = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   WRITE_BOM                     = ' '
    * IMPORTING
    *   FILELENGTH                    =
      tables
        data_tab                      = t_head
    EXCEPTIONS
       FILE_WRITE_ERROR              = 1
       NO_BATCH                      = 2
       GUI_REFUSE_FILETRANSFER       = 3
       INVALID_TYPE                  = 4
       NO_AUTHORITY                  = 5
       UNKNOWN_ERROR                 = 6
       HEADER_NOT_ALLOWED            = 7
       SEPARATOR_NOT_ALLOWED         = 8
       FILESIZE_NOT_ALLOWED          = 9
       HEADER_TOO_LONG               = 10
       DP_ERROR_CREATE               = 11
       DP_ERROR_SEND                 = 12
       DP_ERROR_WRITE                = 13
       UNKNOWN_DP_ERROR              = 14
       ACCESS_DENIED                 = 15
       DP_OUT_OF_MEMORY              = 16
       DISK_FULL                     = 17
       DP_TIMEOUT                    = 18
       FILE_NOT_FOUND                = 19
       DATAPROVIDER_EXCEPTION        = 20
       CONTROL_FLUSH_ERROR           = 21
       OTHERS                        = 22
    IF sy-subrc NE 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'D:\flight.xls'
          filetype                = 'ASC'
          append                  = 'X'
          write_field_separator   = 'X'
        TABLES
          data_tab                = t_flight
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc EQ 0.
        MESSAGE 'Download successful' TYPE 'I'.
      ENDIF.
      IF sy-subrc NE 0.
    *  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
    Abhijeet

  • How to move NI hypertrend control around on Labview front panel

    Hi everyone,
    Please I would like to know if the NI hypertrend control from the DSC pallette can be draged across the front panel and how to do it.
    Once I put this control on the front panel, it just stays where I put it and would not allow me to move it around. 
    I will appreciate any suggestion on this.
    Thanks.
    Solved!
    Go to Solution.

    Left click above left of it> hold and drag a box around it. This selects it and you can drag it.This works for me.
    Using LabVIEW 2010SP1 and TestStand 4.5

  • How to create Control file.

    Being a new bie plz help me.
    Can you let me know steps to create a new
    control file. Create control file is always
    giving error messages and if i have all data
    and REDO logs intact how can i recover my
    data base again using new control file
    please help ....
    null

    hai,
    for creating control file we proceed to ways:
    1. create controle file using sql command as sys or system users
    sql>alter database backup controlfile to trace;
    system itself creates controlfile and keeps in udump directory.
    2. using the old backup copies, edit the currect file locations, parameters manually.
    Then run this script at nomount mode, to create the controlfile
    murty
    null

  • How to run my vi from a front panel control without using even structure in the vi

    Hello, I would like to run my vi from a front pannel control instead of the tool bar RUN botton. I am using LV6.1 without the even structure feature, so I can't do as proposed by a previous posting by setting the vi to run at open in a "do nothing state" then taking the front panel control event and switching the vi into another ("running") state. I wonder is there some other type of solutions to this problem. Your help is greatly appreciated.
    Bryan

    Hi Dennis, thank you for the reply. I tried with the attached vi. It can only run once (also not in the correct state I want), as the control i placed on the front pannel will stop the VI. I want to have the vi do nothing when it is opened and start counting when the start botton is pressed. Then i want it stop counting when the botton is pressed again...and so on... I must need a different structure to get it work, or did I miss something simple? Thanks again.
    Attachments:
    StartVI.vi ‏16 KB

  • How to create a transport request while making changes to a role.

    Hi Dear Gurus,
    In my organization recently i was given a task to chage an object in a role and create a transport request to move to quality.
    can any one help me how to create a transport request and under which this request come under (Custoizing , work bench).
    please tell me the steps to be performed.
    Kind Regards,
    Vamsi.

    Hi vasmi,
    Go to tcode PFCG.
    enter the role name
    click on menu role->transport.
    and then execute and click on all the checkbox and then it will ask for the request ....and then u can transport it.
    regards,
    Santosh Thorat

  • How can I view TestStands Operator Interface front panel, from a VI, while a test is taking place.

    I need to view the sequences and steps that are displayed during a test session while running TestStand. Except I would like to view this in a LabVIEW front panel

    JD,
    I'm not sure if you're asking to be able to view the actual code module's front panel (ie. VI front panel) while it's executing, or if you just want to see the steps and overall sequence in a VI front panel. If the latter is true then you can use the simple LabVIEW operator interface that ships with TestStand, as Dennis mentioned in his answer. This would indeed be a great place to start if you want to add any further functionality to the operator interface. If the former is true and you want to see the actual VI front panels of the steps as they execute, you can check that box "Show VI Front Panel" from the "Specify Module" window in TestStand.

  • Saving the Control Values on a Front Panel

    I am creating a VI in which I have approximately 10 front panel controls that can be changed by a user. Instead of entering the same values over an over again, I would like to provide the user the option to save a set of control values that can then be loaded the next time around via a drop-down box. Before I began I just wanted to see if anyone had done anything similar. I was stumped as to how to approach it. Any suggestions?
    Matt

    Matt,
    You can also use a datalog file. LabVIEW can write and read clusters to a file, and as long as the cluster don't change you should be fine.
    Basically your code would grab the value of each control, bundle it into a cluster and save that cluster to a file. For reading, you read your cluster from the file and get each individual value to drop it in the right control.
    I'm sure there are some shipping examples on this too.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.

Maybe you are looking for

  • Performance issues with class loader on Windows server

    We are observing some performance issues in our application. We are Using weblogic 11g with Java6 on a windows 2003 server The thread dumps indicate many threads are waiting in queue for the native file methods: "[ACTIVE] ExecuteThread: '106' for que

  • Screen flashing between grey and background, dock not showing

    I don't know how this happened, but I recently upgraded to Mountain Lion: as soon as I'd logged in, the Dock dissapeared, and the background started flashing between grey and my background. The only way for me to open anything is through Spotlight. W

  • HELP - Exchange Server 2007 Transport Rule Issue

    Hi all, sorry if here is not the place to put my question but I did not find another forum, so if anyone can help me I appreciate. - I have an Exchange Server 2007 SP3 environment with 1 MBX Server and 3 CAS/HUB Servers. - I have created a Transport

  • Openldap referral to DS 5.2?

    My dept is deploying Sendmail Advanced Messaging Server (SAMS). It stores its user preferences and the userid and password in its own supplied openldap. How can I get openldap to use our DS 5.2 for user authentication? Instead of mirroring userids an

  • Changing axis in waveform chart

    How can I set the x-axis to be something other than time. I want to measure all of my inputs vs. a cycle count. Is there a way to change the axis? Attachments: boolean count.vi ‏12 KB