Read and write(control should act as indicator and viceversa)

control(input) should act as indicator(output) and viceversa for a string transmission.is it possible
kudos welcome
Solved!
Go to Solution.

Yes you can.  But property nodes are much slower than local variables.  For simple programs, you won't notice the difference.  But sooner or later, you will encounter a case where too many property nodes will noticeably slow down the code.  It is considered bad programming style to use property nodes instead of local variables.  Property Nodes work through the UI thread.  Locals do not.  So locals present a lot less overhead. 
It is best to not get into a bad habit from the start.  Use local variables instead of property nodes.
I do use local variables and think it is ok but there are the people on here that think they are the worst thing ever invented. Also it is not bad to show a couple of different way to do things so the OP can learn different ways to do things. Property nodes are something that you will inevitably have to learn if the OP wants to do real programming.
Tim
Johnson Controls
Holland Michigan

Similar Messages

  • Just bought a mac air with OS X v.10.7 Lion, for work I need to read and write NTFS drives, I install MacFuse and NTFS-3G, but it can not mount (recognize?) External HDD, in my MBP with Snow Lepard it work just perfectly... help please.

    Just bought a mac air with OS X v.10.7 Lion, for work I need to read and write NTFS drives, I install MacFuse and NTFS-3G, but it can not mount (recognize?) External HDD, in my MBP with Snow lepard it work just perfectly... help please.

    Reinstall MacFuse with the one from http://www.tuxera.com/mac/macfuse-core-10.5-2.1.9.dmg. If that doesn't work, you can use Paragon NTFS for Mac 9.0 which has been designed to work with Lion.

  • Just bought a mac air with OS X v.10.7 Lion, for work I need to read and write NTFS drives, I install MacFuse and NTFS-3G, but it can not mount (recognize?) External HDD, in my MBP with Lion it work just perfectly... help please.

    Just bought a mac air with OS X v.10.7 Lion, for work I need to read and write NTFS drives, I install MacFuse and NTFS-3G, but it can not mount (recognize?) External HDD, in my MBP with Lion it work just perfectly... help please.

    Sorry in my MBP Snow lepard it work.. don't have Lion In MBP

  • Using a control as both an indicator and control

    Hello,
    I have been search and reading for a few hours now and have finally decided to post. I fear I am not using the correct terms because I am fairly new at LabView.
    I currently trying to build a user interface that uses 9 different tabs [I am using the same tab structure as in the labview example code]. There is a set of variables that will need to be on 3 of these tabs in similar form. These variables include:
    2 boolean controls
    1 boolean indicator
    1 string indicator
    12 numeric indicators
    I would like to have all of these values be the same on the separate tabs at the same time.
    For example if I press one of the boolean controls, that same boolean control should now be activated on the other tabs as well.
    If it would be possible, please do point me in the right direction of how to go about doing this. (Also the proper terminology)
    Many Thanks,
    Buffalo960 

    tbob wrote:
    I don't think you can have the same instance of controls and indicators on separate tabs.  Two options:
    1.  Create separate controls on each tab.  Put code such that if any control or indicator in the list is changed on any tab, the other similar ones get changed programatically.  You can do this with an event structure and local variables or property nodes.  Lots of programming.
    I don't think that it will be a lot of programming. For example: if he has 5 controls and want to keep all of them synchronized, with only one Case of the Event Structure he can do the job, setting the 5 controls to trigger that Case when "Value Change" and use the Event Node "NewVal" to write the same value for all controls (including the control that triggered the event, but with a code this size it will not be a big deal to write the information a again to the same control).
    Thanks
    Dan07
    Attachments:
    Multiple Controls.vi ‏39 KB

  • I want to format my external drive so that my new imac and my pc can read and write ,what should i do?

    i want to format my external drive so that my new imac and my pc can read

    Start by partitioning the drive as required for the Mac:
    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Apply button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    Now click on the Erase tab in the main menu, then select ExFAT from the Format Type dropdown menu. Click on the Erase button. This format is read/write on both the Mac and the PC. If you have a problem with it on the PC, then format the drive the same way using the Windows formatter.

  • I want to maximize front panel having tab control and tab control should be in centre programati​cally

    i tried this using panel bounds property of front panel
    using height width of tab tried to set position of tab
    but if the reference 0,0 on front panel is changed the tab goes to out of sight
    can any one help me in this regard
    i want to use this for having different screens with different resolution
    regards
    Solved!
    Go to Solution.

    thank you  robweaver
    for your time and intrest
    this solved my problem
    regards

  • My mini-mac is in guest mode. I can not exit this an return to administrator mode. I have tried unplugging from internet and all devices and restarting. Also used all the F keys and the Control, Alt. Delete keys and numerous other combinations. Help

    Computer will not boot up to administrator page for sign in and password. It goes to Guest page where I can browse the internet with Yahoo, but can not connect to Safari. It does not show Dock with Applications at all; therefore I can not access network settings or any applications to get out of this mode. I have disconnected every thing connected to the mini-mac and left over night before reconnecting. Same problem as before; then used all F buttons to try to recover factory settings, again nothing help ! Used various combinations of Escape, Delete, Control and Alternate keys. Held D key down while restarting computer and nothing has worked for me at this time. Any suggestions would be appreciated at this time!

    https://discussions.apple.com/message/17670442#17670442
    https://discussions.apple.com/thread/3909284
    http://apple.stackexchange.com/questions/95699/on-login-i-am-only-given-the-gues t-user-option-how-do-i-log-into-my-account

  • My itunes will not open and says i should download it again and i have but it still wont open! what should i do?

    My itunes wont open what do i do?

    what's the precise text of your error message please, matti? (There's a few different ones I can think of that you might be getting.)

  • Arrays as both Indicator and Control

    Is there anyway I can use an array (either a constant array or an array control) as both an indicator and control. I need this to enter and replace numeric values in an array.

    > Pretty much yes, but I want to use the same array (control or
    > constant) as both an indicator and a control. This way I can replace
    > the array contents (which would be in a loop) and don't worry about my
    > initial array and my final array being two different arrays. Can I use
    > the local variable only for this?
    As the earlier post stated, try using the local variable to update a
    control from the diagram. You probably shouldn't place it inside the
    loop, but use a shift register. Thus, take the value from the terminal,
    into the left shift register. Inside the loop, take the left shift
    register value, modify, and write to the right shift register. Outside
    the loop again, wire from the right shift register to the local.
    If you do no
    t want to allow for user modification of the array control
    during this, you can disable and reenable the array using a property node.
    If you are not really doing this for UI, but to try and reuse memory,
    then this is really the wrong approach. LV wires are really the most
    efficient way of dealing with data, and you don't need to worry about
    putting things back into an array unless it is for the UI. If it is to
    pass out of a subVI, you will put them into a new array indicator in
    fact, and when called as a subVI, this can often take no additional
    memory, using the caller's array input throughout the diagram. If you
    start using the local, this is no longer true, and you now have both
    memory and runtime overhead. So use locals, and property nodes, only
    for UI tasks, and your VIs will be much more efficient. For everything
    else, use wires and shift registers.
    Greg McKaskle

  • Dynamic screen and custom control

    Hi,
    I have to create a screen and custom control dynamically within a method and display alv grid. Is this possible?
    regards,
    Madhu

    hi,
    this is a smple program just try in this way.plz do reward points if it is of some use
    data:obj type ref to zcl_test_alv.
    parameter:p_mblnr type zbshd-mblnr.
    start-of-selection.
    set screen 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    module STATUS_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    if obj is initial.
    create object obj
    exporting p_con = 'MATERIAL_DOC'.
    endif.
    CALL METHOD obj->get_data
        exporting p_mat = p_mblnr.
    endmodule.                 " STATUS_0100  OUTPUT
    The above is an executable program.
    zcl_test_alv is a class which u need to create in se24 according to ur requirement
    u need to define methods and attributes.
    for example there are 3 methods
    constructor
    get_data
    put_data
    method GET_DATA.
    SELECT mblnr
             mblpo
             matnr
             maktx
             meins
             menge
             waers
             dmbtr
             INTO corresponding fields of TABLE it_mm
             FROM  zbsit
             WHERE mblnr = p_mat.
    if sy-subrc = 0.
    call method put_data.
    endif.
    endmethod.
    method PUT_DATA.
    DATA : it_fldcat TYPE lvc_t_fcat.
      DATA : wa_fldcat LIKE LINE OF it_fldcat.
      DATA : it_sort TYPE lvc_t_sort,
             wa_sort LIKE LINE OF it_sort.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      I_BUFFER_ACTIVE              =
       I_STRUCTURE_NAME             = 'ZBMDC'
      I_CLIENT_NEVER_DISPLAY       = 'X'
      I_BYPASSING_BUFFER           =
      I_INTERNAL_TABNAME           = 'ZBSIT'
      CHANGING
        ct_fieldcat                  = it_fldcat[]
    EXCEPTIONS
      INCONSISTENT_INTERFACE       = 1
      PROGRAM_ERROR                = 2
      OTHERS                       = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      EXIT.
      ELSE.
        LOOP AT it_fldcat INTO wa_fldcat.
          CASE wa_fldcat-fieldname.
            WHEN 'MBLNR'.
              wa_fldcat-reptext   = 'Material Doc no'.
            WHEN 'MBLPO'.
              wa_fldcat-reptext   = 'Item Material Doc'.
              wa_fldcat-ref_table = 'X'.
            WHEN 'MATNR'.
              wa_fldcat-reptext   = 'Material No'.
              wa_fldcat-ref_table = 'X'.
            WHEN 'MAKTX'.
              wa_fldcat-reptext   = 'Description'.
              wa_fldcat-do_sum    = 'X'.
            WHEN 'MEINS'.
              wa_fldcat-reptext   = 'UOM'.
              wa_fldcat-do_sum    = 'X'.
            WHEN 'MENGE'.
              wa_fldcat-reptext   = 'QUAN'.
              wa_fldcat-do_sum    = 'X'.
            WHEN 'WAERS'.
              wa_fldcat-reptext   = 'CurrKey'.
              wa_fldcat-do_sum    = 'X'.
            WHEN 'DMBTR'.
              wa_fldcat-reptext   = 'curr'.
              wa_fldcat-do_sum    = 'X'.
          ENDCASE.
          MODIFY it_fldcat FROM wa_fldcat INDEX sy-tabix.
        ENDLOOP.
        wa_sort-fieldname = 'MBLNR'.
        wa_sort-up        = 'X'.
        wa_sort-subtot    = 'X'.
        APPEND wa_sort TO it_sort.
    ENDIF.
    CALL METHOD o_grid->set_table_for_first_display
    EXPORTING
       i_buffer_active               =
       i_bypassing_buffer            =
       i_consistency_check           =
       i_structure_name              =
       is_variant                    =
       i_save                        =
       i_default                     = 'x'
       is_layout                     =
       is_print                      =
       it_special_groups             =
       it_toolbar_excluding          =
       it_hyperlink                  =
       it_alv_graphics               =
       it_except_qinfo               =
       ir_salv_adapter               =
      CHANGING
        it_outtab                     = it_mm[]
        it_fieldcatalog               = it_fldcat[]
        it_sort                       = it_sort
       it_filter                     =
    EXCEPTIONS
       invalid_parameter_combination = 1
       program_error                 = 2
       too_many_lines                = 3
       others                        = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endmethod.
    method CONSTRUCTOR.
    CREATE OBJECT o_con
        EXPORTING
           container_name      = p_con .
      IF sy-subrc = 0.
        CREATE OBJECT o_grid
          EXPORTING
             i_parent          = o_con .
      ENDIF.
    endmethod.
    Attributes are
    o_con type ref to CL_GUI_CUSTOM_CONTAINER
    o_grid type ref to CL_GUI_ALV_GRID
    it_mm type zmdoc
    to get alv grid ,in layout editor u need to create custom control
    for constructor method u should have a parameter p_con with default value as 'MATERIAL_DOC'
    Im just explaining the above program use this as reference and try.

  • How to use single element as both control as well as indicator in labview

    Hi All,
    I need to use single element for both control and as an indicator.
    I need not want to use its value property os shift register.

    Hi pmg,
                I think this thread will be helpful to you.
               http://forums.ni.com/t5/LabVIEW/Using-a-control-as-both-an-indicator-and-control/td-p/1113158 
    Thanks as kudos only

  • Ipod "cannot read or write to___'s Ipod"

    Hey, I'm getting a very frustrating error... and was wondering what on earth it means... and why I can't use any more than 2.89 Gigs of my 60 gig ipod...
    after trying to place more on it... pretty much of anything... it says that it can't read or write to <my ipod's name> and then there's an elipses
    like.. I'm trying to get a digital life videocast onto it and obviously it isn't working.
    very frustrating
    and I'v also got a problem of it quite often saying that all my songs are movies... and then making my movies not work
    after a couple of minutes of screwing around on the computer I can make it work again... so I must be doing something right
    I'm not in a huge rush... considering I got my Ipod for free...
    need any more info, obviously you'll ask
    thanks in advance

    I am still having trouble updating my ipod click wheel 40gb and my nano ipod also my brothers nano ipod which he connected to my 17"powerbook! only to have the same problems.
    When updating the ipods they all manage to update a few songs then they seem to stop updating on any song then I get this meassage.
    The error message reads (Attempting to copy to the disk "my ipod" failed. The disk could not be read from or written to) so after that I looked at the last song that was updated to my ipod,then I looked at the song that was straight after the one the got stuck, I then deleted the song after the last updated song from my itunes library and updated again, my ipod then proceeded to update some more songs, then it stopped again and I got the error message again, if I repeat this process of finding and deleting these songs it sort of works but this is all so wrong!!!! So after getting this message with three different ipods surely this problem lies with the computer NOT the ipods!
    Can anyone please please help.

  • My optical drive reads DVD's, but wont read or write anything else!

    Hi, this is my puzzlement,
    the optical drive on my 17mpb will read and play any DVD I put in just fine, but when it comes to everything else it will not read or write. The drive whirrs around and then spits the media back out. Help!

    See if a disk cleaner DVD or a few shots of compressed air will cure your problem.
    Ciao.

  • Calling BSP from report and return control back ?

    Hi All,
          My requirement is as follows :-
    1. I am calling a BSP from report using CL_GUI_HTML_VIEWER->show_url. The BSP page is displayed successfully.
    2. Then, I perform some operations and want to return some data back to the main program (from where it was called - Report) and continue execution from there
    How do I accomplish the second requirement (Control doesnt come back once I close the BSP) ?
    Regards,
    Ashish

    how to generate events from html code in the html control back to your ABAP check out this demo program
    SAPHTML_EVENTS_DEMO
    say for example, in your case you are showing the BSP in GUI HTML control and on clicking a link you want to pass some data from your link to ABAP program and the ABAP should receive the value and process it and may be comeback to same BSP or go some to some other screen/transaction.
    steps to follow:
    after creating the html control
    register event for call back and call the BSP url.
    create object hviewer
                 exporting
                   parent = mycont.
        myevent-eventid = hviewer->m_id_sapevent.
        myevent-appl_event = 'x'.
        append myevent to myevent_tab.
        call method hviewer->set_registered_events
          exporting
            events = myevent_tab.
        create object evt_receiver.
        set handler evt_receiver->on_sapevent
                    for hviewer.
        hviewer->enable_sapsso(
          exporting
            enabled    = 'X'
          exceptions
            cntl_error = 1
            others     = 2
        if sy-subrc <> 0.
        endif.
        call method hviewer->show_url
          exporting
            url = wf_url.
    in your BSP the link should look like below
    A HREF=SAPEVENT:TAGS?value to be passed to your ABAP> link text </a
    when you click this link in bsp then you can then capture the value "TAGS" to know which link was clicked and the value passed after the ?
    link is just one option, you can also send whole form data.
    this type of link and form will only work when your BSP is invoked within HTML contro. if its invoked from standalone browser these wont work. so you amy want to dynamically show/hide "sapevent" links based on where it runs.
    Hope this is clear. if not do getback.
    Regards
    Raja
    Edited by: Durairaj Athavan Raja on Sep 9, 2008 1:04 PM

  • When updating get a message that reads  the disk could not read or write -

    i downloaded several songs from cd (only some cd do not update )- all loaded up well in i tunes - but when i update - i get a message on the i tunes screen "attempting to copy to the disk david i pod faults - the disk could not read or write- i reinstalled the updated software and i tones software and same problem - only some cd will not update - but they are diffinately in itunes- i can play them on my computer
    nano Windows XP Pro

    Hi daf,
    Try this Your Windows PC doesn't recognize iPod
    Happy New Year
    Colin R.

Maybe you are looking for

  • Multiple users on a network share: how to manage versions, prevent overwriting?

    Setting up file shares on a Mini Server with 10.8 server. How can a group of users share access to a volume, while managing versions of a file (other than saving with a new file name) and preventing two users editing a file simultaneously and overwri

  • Oracle client in linux problem with tnsnames.ora

    hi all i installed oracle-xe-cleint10.2 on linux machine i did not get any tnsnames.ora in my machine i am unable to connect to database. it shows tns connectiont identifier unfound. . is it come all with oracle client or some where else it . or furt

  • Disabling LOVs when not in enter query mode

    hello. I currently have a form in which a master block populates a detail block. when the master is populated the cursor automatically goes to the detail block and sets it to enter query mode (due to the face that there are multiple details but the u

  • Acrobat Licensing Issue

    My HD crashed, requiring me to perform a fresh reload of Windows. Of course, in such a circumstance, I was unable to release my Acrobal 8 Standard license prior to the reload.  Now I cannot activate my license.  Some blather about too many activation

  • Tumblr breaks advanced font settings in Firefox, all Win and Mac versions

    tumblr.com and tumblr.com/dashboard do not support, or break, the ability to choose your own fonts in Firefox. The problem affects Firefox 12-14 on Windows OS, and may also affect Firefox for the Mac. The problem: unchecking the option "allow pages t