Define bit fields in cluster

how do I difine a 24-bit numeric control in cluster?

If you cannot live with 32bit data, I would build a cluster of three U8. LabVIEW (like almost all software development environments) does not support 24bit numbers.
You could also use a strings as an intermediate data type.
BR, Guenter

Similar Messages

  • How to define hidden field

    Hi,
    I have to use submitForm by http, I have some hidden fields and some input fileds. I am facing problem how to define hidden fields with aFields?
    Thanks

    I kow it but this is all about Javascript, how to to display off lnam text field?
    Here is code:
    var dialog1 = {
            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();
                // Now do something with the data collected, for example,
                console.println("Your name is " + results["fnam"]
                    + " " + results["lnam"] );
            description:
                name: "Personal Data",    // Dialog box title
                align_children: "align_left",
                width: 350,
                height: 200,
                elements:
                        type: "cluster",
                        name: "Your Name",
                        align_children: "align_left",
                        elements:
                                type: "view",
                                align_children: "align_row",
                                elements:
                                        type: "static_text",
                                        name: "First Name: "
                                        item_id: "fnam",
                                        type: "edit_text",
                                        alignment: "align_fill",
                                        width: 300,
                                        height: 20
                                type: "view",
                                align_children: "align_row",
                                elements:
                                        type: "static_text",
                                        name: "Last Name: "
                                        item_id: "lnam",
                                        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"
        app.execDialog(dialog1);

  • Compiler Crash: Volatile Bit Fields (reading)

    Can anyone verify that this crashes the Studio 12 C++ compiler?
    typedef struct {
    #if defined(CRASH)
        volatile int crash : 1;
    #else
                  int crash : 1;
    #endif
    } Flags_t;
    int main()
        Flags_t Flags = {0};
        return Flags.crash;  /* reading the volatile bit-field causes the compiler crash */
    }With cc, it compiles fine, and it compiled fine up until some recent patch with CC. 124863-01 seems to work but 124863-03 results in a compiler SEGV.
    Edited by: Mike_Morgan on Apr 17, 2008 2:44 PM
    You'll need to use: -DCRASH to see the compiler SEGV.

    Thanks for filing the bug report. It is CR 6690835, which should be visible at bugs.sun.com in a day or two.

  • How to make a bit field (multiple bits selectable) structure?

    I'm develping a program to communicate with an external device, and it has a specific protocol. Often times, I need to make structs/typedefs of specific type (u8/u16/u32) that have values defined by multiple selection. For example, the protocol asks for the following:
    The field is a bit field structure (multiple bits can be set simultaneously) defined as follows:
    typedef u_16 COMM_TYPES;
    #define A 0x8000
    #define B 0x4000
    #define C 0x2000
    #define D 0x1000
    How would you recommend implementing this? I've tried looping through a listbox in combination with a text ring that has the name and value pairs, but its cumbersome doing for each unique typedef (see image below)

    That's what I would do.  Other than I might use OR instead of sum, but that shouldn't make a difference.
    The other possibility would be to take the array of index values,  to a 2^x where x the array of indices, then add that.  This assumes that every index in the array matches bit for bit with the enum values.  Nothing is missing, and array element 0 corresponds to bit 0.  In your case, your order is reversed, but you can reverse the array.  And all your values are in the highest nibble of the highest byte (hex ?000)  So you'd have to do some bit shifting or multiplication to get the actual values.
    But I think this would make your code that much more fragile.  I would just do what you have shown.

  • Defining Key -field and data fields

    Hi all
    i have to define Key-Fields and data-Fields for a DSO(say DSO3).
    DSO1 is a combination of DSO2 and DSO3..
    DSO1 and DSO2 are SAP defined DSOs.
    DSO3 is a User defined DSO.
    my assumption:
       DSO3 has 30 fields
       DSO2 has 16 fields.
       can i create the DSO3 with remaining 14 fields which is there in DSO1?
       or i have to create the DSO3 with 30 fields(all DSO1 fields).
    can any body explain....
    Thanks & Regards
    krishna

    The problem is not how many fields you create where, the issue is where is the data is going to come from.
    Since you data is going from DSO3 to DSO1and if the field is already getting populated in DSO1 from DSO2, then you don't have to worry about populating those fields again, unless and otherwise you want to overwrite them.
    Remember any fields exist in both DSO3 and DSO2 which overlapping will be overwritten by the latest update.
    Again, going back to your question, you should consider does your datasource has missing fields (14 of them).
    thanks.
    Wond

  • What are the 3-bit field choices for Hw_Arm_Sel in PCI-6601

    Hi,
    I am programming our own driver to operate the PCI-6601. For our application we need hardware arm option. I know it is possible to use 2 counters for that, but NI-TIO should support also hw_arm. Although it is not explained in the registry document at all, after some tedious check in the DDK examples I found that this bits are located in the Gi counting mode register. I know the position of the HW_enable as well as the position of the 3 bits for pin sellect options. What I do not know is What are the 3-bit field choices for Hw_Arm_Sel . I contacted NI support but got no support. How can NI sell boards and when a customer who is not using LAbview or Measurement Studio or DDK, but is implementing his own driver is then so arrogantly turned down from NI? Also, how can NI publish just part of the registers the board support, and when a customer contacs and asks for some registers get not at all support? I can not foretell the missing registers, and it is pretty unprofessional to document just partly the registers of 660x devices. And on request you got nothing.
    I hope someone from the community know about this Hw_Arm_Sel 3 pin options. Otherwise, there is just an option of error and trial. Or simply throw the board in the garbage.
    Dr. Kirco Arsov
    Solved!
    Go to Solution.

    Hi Kirco,
    I have some more information for you :-)
    I haven't been able to speak to the developer who is the most familiar with TIO programming since he's out of the office, but I have come across his notes from when he was writing support for the DAQmx driver.
    As I described earlier, the HW_Arm_Sel bits don't select a connector I/O pin, but an internal trigger signal. There are seven internal trigger lines, and the HW_Arm_Sel bits map directly to the internal trigger signal: 0b000 - 0b111 map to 0d0 - 0d7. In order to route an I/O pin to an internal trigger, you must also write to a few more registers.
    From what I've read, there are two more register families that need to be programmed: TG_x_LevelEdgeReg and TG_x_CombinationReg, where x is the internal trigger number. In your case, you only need one pin from the I/O connector to be your arm start trigger, so TG_0_LevelEdgeReg and TB_0_CombinationReg will suffice for your application.
    TB_0_LevelEdgeReg :: Offset 0x660
    TG_0_LevelEdgeReg is only 8 bits wide, and maps as follows:
    7..6: EdgeMode
    5..0: LESel
    LESel selects the I/O connector pin to use as the source for the internal trigger signal. 0d0 - 0d39 will select the I/O pin of the same number. NB: behavior for TG_x_LevelEdgeReg is more limited for triggers 1-7, and only a small subset of the I/O pins can be selected for those trigger signals. Trigger 0 can use any I/O pin. Setting these bits to 0d63 forces the trigger source low, and can be used as a way to 'unroute' it when you're finished with your program.
    EdgeMode determines whether the TIO will detect an edge of the incoming signal, or just pass the signal level straight through. When detecting edges, it will latch the signal and generate a single TIMEBASE3 pulse instead. 0b00 sets level mode; 0b01 sets rising edge; 0b10 sets falling edge; 0b11 sets either edge.
    TG_0_CombinationReg :: Offset 0x6A0
    TG_0_CombinationReg is 32 bits wide, and has three fields of interest:
    19..16: CombFunction
    5..4: CombTypeB
    1..0: CombTypeA
    CombTypeA controls which trigger subsystem to use as the source for the trigger signal. Since you're coming from an I/O pin and using the edge/level subsystem, you must set these bits to 0b01.
    CombTypeB is similar to CombTypeA, and although you won't be using trigger B, set it to 0b01 to be safe.
    CombFunction performs a simple logic function on A and B. Since you're only using a single I/O connector, you only need the A output, so set these bits to 0b1100.
    All of the other bits should be set to 0b0.
    Unfortunately, I'm unable to test these statements since my test machine is currently being used for another research project. Please let me know what happens if you decide to test.
    Joe Friedchicken
    NI VirtualBench Application Software
    Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
    Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
    Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
    Senior Software Engineer :: Multifunction Instruments Applications Group
    Software Engineer :: Measurements RLP Group (until Mar 2014)
    Applications Engineer :: High Speed Product Group (until Sep 2008)

  • Define sensitive fields for vendor master record

    Hello,
    Wer are on SAP ECC 6.0 Customer wants to define sensitive fields for dual control. I have defined the bankaccount number as a sensitive field but I do not know how I need to define the other settings. Can anybody helpe me with that ? Where f.i do I define the persons who will confirm the changes ? n short which customzing steps do I need to follow to implment the sensitive fields for dual control.
    Thanks as ever!!

    Hi,
    You should not allow any user, whatever may be his or her position in the Organization with SAP_ALL and SAP_NEW profiles. It is totally against the Segregation of Duties and there is every possibility for making financial fradulent activities. Proper security approach is very much necessary in order give them the authorization on "NEED TO KNOW" Basis.
    Regarding your question of sending mail, there is no functionality as such in Standard SAP. However, by taking help from ABAPer and schedule in the non-peak hours (night time) to generate mails for the approvals of today.
    For your other question, which fields are to be kept Sensitive field, normally you can keep PAYMENT TERMS and PAYMENT METHODS as sensitive fields. You can also select other fields based on your business requirement.
    Please let me know if you need further information.
    Regards,
    Ravi
    Edited by: Ravi Sankar Venna on Jan 27, 2009 8:40 PM

  • How to use user defined contact fields in the intelligent group builder

    In Apple Contacts it seems not being possible to build an intelligent contact group using an user defined, additional field. The builder seems to work exclusively with a system defined selection of the basic database fields. Please, tell me, that there is a way ...

    Please, can sombody out there help?

  • Define Additional Fields for Line Item Display

    Dear gurus,
    I'd like to ask for your help again, please. I've just added the field BKPF-USNAM to the list of fields of FBL1N using IMG:" Financial Accounting-> Accounts Receivable and Accounts Payable->Vendor Accounts->Line Items-> Display Line Items->Define Additional Fields for Line Item Display". When I run the report the field is correctly displayed but if I save the current layout and set it into the selection screen, the column appears is blank. And if I open the change layout window and click OK the column gets filled.
    Is there another transaction that I must set new columns to FBL1N.
    Thank you very much.
    Paresh Jivani
    Edited by: Jivani Paresh on Jul 31, 2009 9:16 AM

    Hii,
    When you will execute FBL1N, it will come up in standard format. if you want to see any specific fields,then you have to go to Change Layout button and choose from available fields as per your requirement and then execute.
    For future reference, you can save this layout as a Variant and then you can directly execute that report using that variant.
    Dhara D.

  • Defining default field for cursor in an infotype

    What defines which field on an infotype (e.g. it0032) that the cursor defaults to.  I'm having problems due to the cursor defaulting to the "from" date field in our development clients, and it defaulting to the "previous personnel number" field in our test clients.  I'm using identical user ID's in each client.  Is there a setting in the IMG that would control which field that the cursor defaults into?

    Hello there,
    Looks like defaulting last name is standard behavior in different countries specifics:
    Note 1001323 - Defaulting of Last name in IT0021 (Family/Related Person)
    [https://websmp130.sap-ag.de/sap(bD1lcyZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1001323]
    Note 1083523 - Defaulting Last name in IT0021
    [https://websmp130.sap-ag.de/sap(bD1lcyZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1083523]
    Note 625670 - MASTER DATA: Default family name for all IT0021 subtypes
    [https://websmp130.sap-ag.de/sap(bD1lcyZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=625670]
    MP002120     35     IF P0021-FANAM EQ SPACE AND PSYST-IOPER EQ 'INS'.    "note 1083523       
                   36       MOVE P0002-NACHN TO P0021-FANAM.                                       
    MP00212R     50    IF P0021-FANAM EQ SPACE AND PSYST-IOPER EQ INSERT.      "JM#1001323  
                   51       MOVE P0002-NACHN TO P0021-FANAM.
    So if you wish, you can overwrite this according to sandbisw1983 instructions.
    Greetz.

  • BIT fields in database

    How do I need to write an update query in order to insert / delete a database entry that includes a BIT field (Yes/No).
    I tried:
    "INSERT INTO table_name (string_field, BIT_field) VALUES('hello','true')"
    and
    "INSERT INTO table_name (string_field, BIT_field) VALUES('hello',true)"
    as well as
    "DELETE FROM table_name WHERE BIT_field='false'"
    and
    "DELETE FROM table_name WHERE BIT_field=false"
    (I'm using Access database - ODBC).
    What is the right way to write it???

    How do I need to write an update query in order to
    insert / delete a database entry that includes a BIT
    field (Yes/No).
    I tried:
    "INSERT INTO table_name (string_field, BIT_field)
    VALUES('hello','true')"
    and
    "INSERT INTO table_name (string_field, BIT_field)
    VALUES('hello',true)"
    as well as
    "DELETE FROM table_name WHERE BIT_field='false'"
    and
    "DELETE FROM table_name WHERE BIT_field=false"
    (I'm using Access database - ODBC).
    What is the right way to write it???in access True, Yes and On are 1. False, No and Off are 0.
    so for your queries like this...
    to insert true
    "INSERT INTO table_name (string_field, BIT_field) VALUES('hello',1);"or for false
    "INSERT INTO table_name (string_field, BIT_field) VALUES('hello',0);"for your other query
    "DELETE FROM table_name WHERE BIT_field=0;"

  • Customer Defined Data Classes on Cluster Tables?

    Hi all,
    I noticed that there is no option within db13 to change the storage option to a customer defined data class, for cluster tables. I am sure this is by design but wanted to check to see if anyone has had any luck defining a data class on a cluster table.
    We could move a cluster table to a DB2 tablespace and define the new Data Class through dbacockpit/db02, but there is no option to change the data class definition in the data dictionary (se13) to use the new Data Class for the table itself.
    Mainly what we are aiming for is to be able to move 2 tables into their own tablespaces on the target server, during a migration. Sapinst is looking at the Data Classes to create DDLDB6.XML, which defines the tablespace assignments to the target server, so perhaps there is a preferred method of making this change, if it does exist.
    Thanks for any insights,
    Derek

    Hi guys,
    Thanks for the helpful answers. I should add some more detail.
    Our tablespaces have already been moved to new tablespaces on the source system, with DB6CONV, and we have updated our data classes through db02, with no problems. So sapinst uses the data class definitions to create the custom tablespaces, and then uses the data class assignments to assign the table to a tablespace.
    However, the cluster tables do not seem to support the data class assignment in se13, the option is not available as it is for normal tables. Let me see if I can post a screenshot somewhere with a cluster table versus a normal table. For example, there is no option to change the data class for table CDCLS in se13.
    I am wondering if this is a limitation of the version of R/3 we are using, or if the limitation for cluster tables is something that is intended on all versions of R/3.
    If we can't use db13 to make the assignment, we may try the custom definition in the STR file as Kiran mentioned.

  • Defining the Fields for Manual Entries in Conditions Type

    Dear Team,
                      I want to define new fields in the Option Manual Entries in Condition Type eg PR00 . Can you tell me the Setting where do we define those settings and where are they control.
    Thanks,
    Prashant

    Hi
    The option provided for Manual Conditios are Hard Coded by the SAP, and you can not add any new option. If you want to check, pl. check the value range of Domain KMANU, where it is maintained.
    What is your requirement? May be you can fulfill your requirement by some other mean, like USER EXIT.
    Regards
    AA

  • In layout  how we can define screen field ie customer no -------- to ------

    hi,
       in layout  how we can define screen field ie
                    customer no -
    to -
                     my screen should be like this?
           reply me soon.

    we cannt able declare select-options in module pool program .But we have ranges
       so delclare two varibles
    DATA:  v_kun_low LIKE zcust-kunnr ,
           v_kun_high LIKE zcust-kunnr.
    RANGES r_kunnr FOR zcust-kunnr  .
       in PAI
             CASE SY-UCOMM.
                WHEN 'FCTCODE'.
                 r_KUNNR-low = v_KUN_low.
                 r_KUNNR-high = v_KUN_high.
                 r_KUNNR-option = 'BT'.
                 r_KUNNR-sign = 'I'.
             APPEND r_budat.
    in screen designing
       ie layout>f6>get from program fields

  • Using Min and MAX function on Bit Field

    Hi All,
    I am trying to write a SQL Query where i want to aggregate a bit field along with some  other numerical fields
    I  have a Field of type Bit and it can contain data like
    Scenario 1:              MyBit Field
                       Row1      Null
                      Row2       Null 
                      Row3       Null
    Scenario 2:              MyBit Field
                       Row1      1
                       Row2       1
                      Row3       Null
    Scenario 3:              MyBit Field
                       Row1      0
                      Row2       0
                      Row3       Null
    Scenario 4:              MyBit Field
                       Row1      1
                       Row2       0
                      Row3       Null
    Scenario 5:              MyBit Field
                       Row1      1
        Row2       1
                      Row3       0
    Scenario 6:              MyBit Field
                       Row1      1
                      Row2       1
                      Row3       1
    Scenario 7:              MyBit Field
                       Row1      0
                       Row2       0
                      Row3       0
    These are all scenario i can think of, i want to have sql statement which should return me
    null if all values are null,
    if there is mix of 1, 0 then return NA,
    if there is mix of 1,0,null return NA
    if there is mix of 1's with Null then return 1 ,
    if there is mix of 0's with null return 0 ,
    if there is all 0's return 0
    if there is all 1's return 1
    IS there an elegant way in SQL to handle this
    Note : I have other fields in query which are simply getting SUM.

    Try:
    DECLARE @T table (
    Scenario int NOT NULL,
    col1 int NOT NULL,
    col2 bit NULL,
    UNIQUE CLUSTERED (Scenario, col2, col1)
    INSERT INTO @T
    (Scenario, col1, col2)
    VALUES
    (1, 1, NULL),
    (1, 2, NULL),
    (1, 3, NULL),
    (2, 1, 1),
    (2, 2, 1),
    (2, 3, NULL),
    (3, 1, 0),
    (3, 2, 0),
    (3, 3, NULL),
    (4, 1, 0),
    (4, 2, 1),
    (4, 3, NULL),
    (5, 1, 1),
    (5, 2, 1),
    (5, 3, 0),
    (6, 1, 1),
    (6, 2, 1),
    (6, 3, 1),
    (7, 1, 0),
    (7, 2, 0),
    (7, 3, 0);
    WITH T AS (
    SELECT
    Scenario,
    MIN(col2 * 1) AS min_col2,
    MAX(col2 * 1) AS max_col2,
    COUNT(*) AS cnt
    FROM
    @T
    GROUP BY
    Scenario,
    col2
    , R AS (
    SELECT
    Scenario,
    MIN(min_col2) AS min_col2,
    MAX(max_col2) AS max_col2,
    MAX(cnt) AS max_cnt,
    SUM(cnt) AS total
    FROM
    T
    GROUP BY
    Scenario
    SELECT
    Scenario,
    CASE
    WHEN max_cnt = total THEN CAST(min_col2 AS char(1))
    WHEN min_col2 = 1 AND max_cnt < total THEN CAST(min_col2 AS char(1))
    WHEN max_col2 = 0 AND max_cnt < total THEN CAST(max_col2 AS char(1))
    WHEN min_col2 <> max_col2 AND max_cnt < total THEN 'NA'
    END AS col3
    FROM
    R;
    GO
    AMB
    Some guidelines for posting questions...
    AYÚDANOS A AYUDARTE, guía básica de consejos para formular preguntas

Maybe you are looking for

  • How to connect my Satellite 5000-104 to a TV?

    Hi, hopefully someone can help. I've got an old Toshiba S5000-104 which works perfectly. However, I wanted to connect it to a TV display and there is a very strange combined video-out/line out connector (not a standard composite or s-video) and I do

  • PDFs exported from word printing lighter than the original

    Using Acrobat Pro XI v11.0.09 / Microsoft word 2013 Hi, I have a word document containing text in turquoise (RGB 2,216,240) and dark grey (RGB 127,127,127) and an imported jpeg I have created a PDF from this file (Which looks correct on screen) but w

  • Can I use an image as link to a specific page?

    Building a chapter opening spread that includes a number of images, each from one section in that chapter. Want to use the images to navigate directly to that section by tapping on it, if possible. I'm guessing I can create a text box ontop of the ph

  • JDBC Sync - RFC Sync Scenario without BPM

    Hi Experts, I am using JDBC - RFC - JDBC Scnario. The concept is JDBC is reading data from tables and send data to RFC, after updating RFC is giving response to JDBC to update its tables. JDBC - RFC - JDBC. Is it possible to do this scnario without u

  • Why is mac mail so myopic regarding contact emails?

    i would very much like to organize all my contacts which i am doing very slowly with software called Cardscan that lets me scan and sort my business cards. i also have a personally oriented database in my Mac Contacts (Mountain Lion)/Mac Address Book