How to assign each BitNum for each button?

Actually, I am doing a interface to control variable gain amplifier through a DAQ namely PMD-1208FS(Measurement Computing Product). But, the interface is not really desired. This is because before I want to click a button, I need to set it's BitNum and then it can send 5V signal to the hardware. Ideally, I want click a button and straight forward send a signal. Do you have idea of this?T
I have attached my interface and labeled each BitNum for each button The BitNum that I want to use is from 0-12. Hope your all guy can help me or guide me to solve this problem. Appreciate your reply and thank you very much.
Cheers,
Furman
Attachments:
My Interface 2vi.vi ‏62 KB

After being blinded by the colors on your diagram (It is very difficult to see a blue wire on a blue background and a green wire on a cyan background! ), I think what you want to do is call the DBitOut with certain parameters whenever one of the booleans has been changed. The attached modification sketch shows one possibility (LabVIEW 7.1), but the details would need to be worked out once it becomes more clear what you actually want to do. (You probably would also need to initialize the shift register with the proper values).
Personally, I would stay away from the stacked sequence. It is completely unecessary because there is data dependency. Also bright colors have no use on the diagram, focus on the code first!
LabVIEW Champion . Do more with less code and in less time .
Attachments:
MyInterface2vi.vi ‏61 KB

Similar Messages

  • How to Assign an event to a button in PCUI

    Hi everybody,
    How to Assign an event to a button in PCUI ?
    Thanks & Regards
    Hassan

    Hello Hassan,
    The button for which you are tying to assign is a part of Toolbar group, then in CRMC_BLUEPRINT_C there under Application element expand the node TOOLBAR GROUP, there select you toolbar group & on the left panel  you have ASSIGN EVENTS
    there you can assign the event.  Provided event should be defined before.
    Hope this helps.
    Thanks & Regards,
    Bhavya

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Regards
    ANJI

  • How to assign the role for created user  thru dynpro App

    Hi All
    How to assign the role for currently created user from Webdynpro App.
    when i enter into the portal after creating the user
    i am getting the following messgae in the portal
    "No portal roles are assigned for this user.If this problem persists, contact your system administrator."
    how to assign the user defined role for the created user from dynpro App
    Regards
    Dhina  Kar J
    Edited by: Dhinakaran Jeyachandran on Feb 1, 2008 12:19 PM
    Edited by: Dhinakaran Jeyachandran on Feb 1, 2008 12:35 PM

    In the User Administration section of your portal find your newly created user and below select "Assigned Roles" tab then press <Modify> button and look through available roles on portal then just simply add and save. But if you want to do it programmatically see below:
    IUserAcountFactory userFactory = UMFactory.getUserAccountFactory();
    // IUser - read only but with IUserAccount is possible to set up user data
    IUserAccountSearchFilter userFilter = userFactory.getUserAccountSearchFilter();
    userFilter.setLogonUid("superuser", ISearchAttribute.LIKE_OPERATOR, false);
    ISearchResult sr = userFactory.search(userFilter);
    for (final Iterator i = new PrincipalIterator(sr); i.hasNext();) {
      IUserAccount user = (IUserAccount) i.next();
    Execute the same search for IRole (or IGroup if needed) get the unique id of them and use newRole(...) and addUserToRole(...) methods from IRoleFactory.
    Of course you don't need search for this principals if you know uniqueness of them. Use appropriate factories to get'em all by this unique id.
    All the features see in  [javadocs|http://help.sap.com/javadocs/NW04S/current/se/index.html]

  • How to assign a value for Unit of measure (like PC, KG...) in ABAP program?

    Hi,
        How to assign a value for Unit of measure (like PC, KG...) in ABAP program?
        I want to assign PC in a field to execute the program, like wa-ENTRY_UOM = 'pc'.
        But the system returen a message that "Unit of measure  is not convertible to stockkeeping unit PC"
        Could anyone tell me how to assign the value??
        Thanks!

    hi,
    first convert the quantity in the same unit  ( like in you case ST to PC )  by using FM :    MD_CONVERT_MATERIAL_UNIT
    CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
        EXPORTING
          i_matnr                    = matnr
          i_in_me                    = entry_uom
          i_out_me                   = out_uom
          i_menge                    = quantity
       IMPORTING
         E_MENGE                     = fp_l_v_quant
       EXCEPTIONS
         ERROR_IN_APPLICATION       = 1
         ERROR                      = 2
         OTHERS                     = 3.
      IF sy-subrc <> 0.
              give error message here
       ENDIF.
    bcoz in ur program somewhere the quantities etc are compared and there units may be different... so that is why it is showing such error.  so just convert convert the quantity in the same unit  .
    regards
    rahul
    Edited by: RAHUL SHARMA on Jun 17, 2009 9:31 AM

  • How to assign the vendor for Pipeline material like Oil,power etc.

    Dear All,
    Can anybody tell me , how tp  assign the vendor for Pipeline material like Oil,power etc.

    Dear,
    Create source list ME01 maintain vendor here if vendors are multiple.
    Create Info record ME11for vendor and material combination
    Regards,
    R.Brahmankar

  • How to assign a class for different colored links

    Hi. I'm new to CSS and HTML and Dreamweaver. I'm trying to
    get links to be different colors within the same page. I have a
    navbar with a CSS style that I've assigned colors to all my links
    there. They work. But if I attempt to change the links in the main
    content it screws up the navbar links.
    So, now, I'm trying to assign the different colors to the
    links in the main content. I have the link color down but I can't
    seem to get the visited, hover, active to work.
    So, I read somewhere you have to assign a class to be able to
    have different colors for your links on the same page. There is a
    class assigned to the links I want to change but it only assigns
    the link color, not the visit,hover,active colors. I don't know
    where I am supposed to put the code so that only the main content
    links are changed. Here is what I came up with from reading and
    studying. Can somebody tell me what's wrong with it and where I am
    supposed to put what in each page? This is just a CSS style page I
    made and I have no idea if I even did that right. Then, I can't
    figure out how to tell each page to include it for that class only.
    Thanks.
    @charset "utf-8";
    /* CSS Document */
    <class="style49"
    <style type="text/css">
    a:link {color: #3333FF}
    a:visited {color: #009900}
    a:hover {color: #6600CC}
    a:active {color: #FF0000}
    </style> </class>

    Pseudo-classes and container styles are what you need - here
    are some
    tutorials.
    http://www.thepattysite.com/linkstyles1.cfm
    http://www.projectseven.com/tutorials/pseudoclasses/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Newbie744" <[email protected]> wrote in
    message
    news:fn3***$m6q$[email protected]..
    > Hi. I'm new to CSS and HTML and Dreamweaver. I'm trying
    to get links to
    > be
    > different colors within the same page. I have a navbar
    with a CSS style
    > that
    > I've assigned colors to all my links there. They work.
    But if I attempt
    > to
    > change the links in the main content it screws up the
    navbar links.
    >
    > So, now, I'm trying to assign the different colors to
    the links in the
    > main
    > content. I have the link color down but I can't seem to
    get the visited,
    > hover,
    > active to work.
    >
    > So, I read somewhere you have to assign a class to be
    able to have
    > different
    > colors for your links on the same page. There is a class
    assigned to the
    > links
    > I want to change but it only assigns the link color, not
    the
    > visit,hover,active
    > colors. I don't know where I am supposed to put the code
    so that only
    > the
    > main content links are changed. Here is what I came up
    with from reading
    > and
    > studying. Can somebody tell me what's wrong with it and
    where I am
    > supposed to
    > put what in each page? This is just a CSS style page I
    made and I have no
    > idea
    > if I even did that right. Then, I can't figure out how
    to tell each page
    > to
    > include it for that class only.
    >
    > Thanks.
    >
    > @charset "utf-8";
    > /* CSS Document */
    > <class="style49"
    > <style type="text/css">
    > a:link {color: #3333FF}
    > a:visited {color: #009900}
    > a:hover {color: #6600CC}
    > a:active {color: #FF0000}
    > </style> </class>
    >
    >
    >

  • How to handle event structures for two buttons and two counters.

         *I have two buttons A and B, and have to compare the difference in hits between them.  So do I place an event structure within a while loop for each button (2 buttons, 2 event structures, 2 while loops), or does it need to be one event structure with cases for both buttons whithin one while loop? 
         *How do I pass the values of buttons A and B's hit counters out of the while loop in order to calculate the differences between them after each increment, not just the final count after the stop button is hit? 
         *How would I make one stop button work to handle both buttons A and B?   I tried to place the actual stop button in one button A's structure and its global in B's structure, but It wont seem to let me use a local variable for a latchable control
    Checker

    You should probably have not started a new thread and waited until your question in the original thread was answered. You can modify altenbach's example for a second button. You have a single event structure with a new event for the second button. You have a second shift register to track the number of times the second button is pressed. Inside the while loop but outside the event structure, you just have a subtract function in or to report the difference. do not modify the posted example for the stop button. It works perfectly as is.

  • How to assign Line Number for Lines when click on Add More Lines

    Hello All,
    Kindly help me to assign line number for the lines which are added through Add More Lines button on an Advance table. If user clicks on the button Add More Lines then there are 5 lines get inserted at a time but I am not able to handle the line number for them.
    Similarly, if user delete any of the line then I need to re-order them.
    Kindly help and share if there is any sample code.
    Thanks,
    Sandy

    Hi,
    Check if this link helps you :
    Re: How to display serial numbers in the results table region
    --Sushant                                                                                                                                                                                                                                                           

  • How to get the html for a button created in Muse

    I am trying to create buttons in Muse, and then share the html snippet for those buttons with a developer.  How do I do this?

    Hi,
    You may export the HTML code for the Muse Site via the "Export as HTML" option under the File menu.
    Hope it helps,
    Sonam

  • How to assign transport request for Dynamic selection in SE36

    Hi Friends,
    Please guide me how to transport or assign a request for the changes made in BRF selecion view.
    I have assigned and added BKPF-XREF1_HD field for FB03 transaction. Its working fine as per user requirement.
    I am facing probelm to assing a transport request for that. I didn't find any transport menu in se36.
    So please provide me how to assign a TR which need to import into Production client.
    If I have to assign or create a program (standard), then please provide me the program name.
    Please reply.
    Thanks & Regards
    Sankar.
    Edited by: sankar babu on Jul 29, 2010 12:27 PM

    Moderator message - Cross post locked
    Total Questions:  283 (131 unresolved)
    Please also close your old posts and assign po1nts to helpful answers.
    Rob
    Edited by: Rob Burbank on Jul 29, 2010 9:50 AM

  • How to assign search help for an input field by fetchign values from an int

    i have an input field ,
    i want to assign search help for the same by fetching values from a table.
    how to achieve this ?

    Using the below ways you can assign search help to a field.
    1) [OVS Search Help|http://wiki.sdn.sap.com/wiki/display/Snippets/OVSsearchhelp]
    2) [Freely Programmed Search Help|http://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help]
    3) Dictonary Help - Use the Data element for that purpose.

  • How to Assign Business partner for Vendor Organisation

    Hi,
    We are in SRM upgrade from SRM 3.0 to SRM 7.0.
    For Vendor organisation say 0 50002381  there is no Business partner assigned.
    Under this organisation there are 200 vendors .
    When i run the report: BBP_XPRA_ORGEH_TO_VENDOR_GROUP
    it is showing an error -No partner assigned
    How to assign the Business partner for the organisation .
    Please give your inputs
    Regards
    G.Ganesh Kumar

    Hi Muthu,
    Thanks for the reply
    Already the SAP NOTES : 1372409 is applied.
    I am running the Migration report: BBP_XPRA_ORGEH_TO_VENDOR_GROUP. I am getting an error
    " Check mode 9: :Invalid Object on supplier node"
    How to resolve this issue.
    Already one more thread is open for this issue
    Regards
    G.Ganesh Kumar

  • How to find event handler for save button in salesorders

    Hi,
    I want perform event based on save button in salesorders.Can you tell me how to find the event handler for
    save button.
    Regards,
    Brahmaji

    Brahma,
    you can find the component, view details by doing an F2.
    open the component, the view will be mostly an overview page i.e., the name ends OP etc.,
    But your method name will be mostly EH_ONSAVE, you need to find exact view.
    F2 does not come up properly for overview pages, you have to look into UI config tool preview and make sure sometimes.
    Regards,
    Masood Imrani S.

  • How to assign table name for select query in loop.

    Hi friends my requirement is count the no of records of all the database table which comes into an internal table ."Check the below coding". Iam  fetching the tables from dd03l table into an internal table .plz give me a sujjesion how to assign a table name in select query  in a loop.
      SELECT tabname FROM dd09l
                INTO TABLE i_dd09l
                WHERE protokoll = 'X'.
      IF sy-subrc = 0.
        SORT i_dd09l BY tabname.
      ENDIF.
      LOOP AT i_dd09l.
        SELECT COUNT(*) INTO val FROM i_dd09l-tabname.
        IF sy-subrc = 0.
          i_dd09l-count = val.
        ENDIF.
        MODIFY i_dd09l INDEX sy-index.
        CLEAR val.
      ENDLOOP.
    error : 'I_DD09L-TABNAME' is not defined in the abap dictionary as a table.

    data: dy_table type ref to data,
          dy_line type ref to data,
          xfc type lvc_s_fcat,
          ifc type lvc_t_fcat,
          dy_field type ref to data.
    LOOP AT i_dd09l.
    perform get_structure using i_dd09l-tabname .
    CREATE DATA dy_table TYPE TABLE OF (_dd09l-tab_name).
        UNASSIGN <dyn_table>.
        ASSIGN dy_table->* TO <dyn_table>.
    SELECT COUNT(*) INTO val FROM <dyn_table>.
    IF sy-subrc = 0.
    i_dd09l-count = val.
    ENDIF.
    MODIFY i_dd09l INDEX sy-index.
    CLEAR val.
    ENDLOOP.
    form get_structure using p_table.
      data : idetails type abap_compdescr_tab,
      xdetails type abap_compdescr.
      data : ref_table_des type ref to cl_abap_structdescr.
    Get the structure of the table.
      ref_table_des ?=
      cl_abap_typedescr=>describe_by_name( p_table ).
      idetails = ref_table_des->components.
      loop at idetails into xdetails.
        clear xfc.
        xfc-fieldname = xdetails-name .
        xfc-datatype = xdetails-type_kind.
        xfc-inttype = xdetails-type_kind.
        xfc-intlen = xdetails-length.
        xfc-decimals = xdetails-decimals.
        append xfc to ifc.
      endloop.
    endform.                    "get_structure
    Try like this hope it will work.
    Regards,
    madan.

Maybe you are looking for

  • Multiple templates one data definition--

    Hi I have created two templates for the same data definition. Now while running the concurrent request i can select the template from the 'Options' button. Say the two templates are 1)template1 2)template2 Now template1 is the default template when i

  • Getting Process ID of (running) applet

    Using *do shell script "ps -x"* I can get a "list" of PID's. If there is sufficient identifying information in paragraphs of that "list," it's easy enough to get the PID I want. For example, if Safari is running, then its PID is the result of this: s

  • Data in Health first got doubled and then does not show anything at all

    Hello together, i'm experiencing issues with the health app. Until yesterday all the data, like distance, steps, weight, was perfectly right collected and shown within health. Yesterday i went for a run and installed Runtastic and 'Runtastic Me' afte

  • Startup Boot Error - Loading Screen Stalls

    hi guys, atm i am on my windows laptop because my mac ibook G4 has a problem with the startup sequence or somthing. I power up my PC and it makes chime sounds then goes to the gear that spins in circles with the apple emblem (loading screen) and make

  • When to use Resource Plans - best practice?

    when would a Resource plan best be used instead of simply building a team within a project file with generic resources?   thanks Steve