How to program for dynamic field point?

I am programming an application using Fieldpoint. On the computer that I am coding, the communication port used for cFP is COM3. However on the deployment machine the communication port to be used is COM1. What is the simplest way to NOT having the COM port hardcoded in the program? The solution might have nothing to do with Fieldpoint.
Solved!
Go to Solution.

Thank you for your reply Tim-A
I just want to make sure I'm understanding you correctly. On your development machine your compact FieldPoint (cFP) shows with the COM3 alias in the Measurement & Automation Explorer (MAX). And this is how you reference the device in your program(LabVIEW?). When you move to your development machine the alias for the cFP in MAX is COM1. Is this all correct?
Correct.
When you say that you don't want it "hardcoded" in the program, do you mean that you want the program to automatically pull the correct Alias for the device from MAX?
Yes
Now that you mentioned it, I tried to change that constant to a control. However, instead of selecting only ports, I will need to select channel too. For e.g. If I just needed to select the COM on the front pannel and it automatically attach the channel - that can be part of the solution (If there is NO way to automatically program the app to pull the right Alias).
Below is a simple example -

Similar Messages

  • Custom program for Dynamic Actions

    Iam using BDC’s for Actions and Org.Assignment infotypes. The dynamic actions are planned to be carried out by using separate function modules.
    My query is, On the plausibility check conditions lots of structures are referred (eg: PSPAR,RP50D etc). How do i perform this condition check in the custom program (for dynamic actions) as these structures do not have any data?
    Thanks
    Message was edited by: SShenoy

    1. PSAVE-FIELDNAME will use the old values in the FIELD. It will be used in cases when we have to do plausibility checks on the basis of new as well as old value, eg, we want to use dynamic action for employees whose status changes from 'inactive' to 'active'
    2. Sequence no represents sequence no. If for a particular Infotype and FCode, we have to specify which step has to be performed first. Sequence no tells the system exactly this thing.
    Regards
    Lincoln

  • Sum for Dynamic Fields in a Dynamic Table with Field Symbol

    Hi All,
    I currently have an report which I am looking to update with some totals.  The information is currently output in an ALV which is fed data from a dynamic table defined with a field symbol.  The modification that needs to be applied is a summation per currency code where each of the fields to be summed is a dynamically named field at runtime.  I am now just looking to see if anyone has any recommendations on how to obtain these totals it would be appreciated.  I have no problem doing the leg work in piecing the solution together but am just stuck on which approach I should be investigating here.  I have looked into several options but do to the fact that the totals are for dynamic fields in a dynamic table and it is a field symbol I am having some difficulties thinking of the easiest approach to obtain these totals.
    Below is a simple sample of what the report currently looks like and what we are looking to add.
    ====================================================================================
    As-Is Report:
    DETAILED DATA ALV
    Company Code  |  Plant  |  2006 Total  |  2007 Total  |  2008 Total |  CURRENCY
    0001          |   ABCD  |    1,500     |    1,200     |    1,700    |    USD
    0001          |   BCDE   |    2,300     |    4,100     |    3,600    |    GBP
    0003          |   DBCA  |    3,200     |    1,600     |    6,200    |    USD
    Addition 1:
    TOTALS PER CURRENCY
    Currency                |  2006 Total  |  2007 Total  |  2008 Total |
    USD              |    4,700     |    2,800     |    7,900    |
    GBP                       |    2,300     |    4,100     |    3,600    |
    Addition 2:
    CONVERSIONS TO USD
                                          |  2006 Curr   |  2006 USD    |  2008 Curr   |  2006 USD   |
    USD                       |  4,700 USD   |  4,700 USD   |  7,900 USD  |  7,900 USD  |
    GBP   (1.5GBP/1 USD)    |  2,300 GBP   |  1,150 USD   |  2,300 GBP  |  1,800 USD  |
    ====================================================================================
    Any recommendations will be appreciated.

    Hi,
    We cannot use the key word SUM in the loop at assigning statement.
    The way i see is
    When  you are creating the first dynamic internal table , create one more with  the structure below:
    Currency | 2006 Total | 2007 Total | 2008 Total |
    Then while populating the data into first itab,also move the contents to the second itab using collect statement.

  • How to search for a fields ?

    Hello,
    I know it's an easy question but I've not find, how to search for a fields in Database on CR XI R2 ?
    Thanks in advance

    Hi Alexandre
    Do you want to see which database fields you have inserted in Crystal Reports and in which section you have inserted what fields?
    If yes then
    -open formula editor
    -In the right side pane expand Formatting Formulas.
    -Expand all the sections one by one and it will show you database fields,formulas and all the objects used in the sections.
    Hope this will clarify your doubts.
    Regards
    Asha.

  • How to programming for GPIB Primary Address 0 and 31?

    Hello. How to programming for GPIB Primary Address 0 and 31?

    Make sure no other instruments are at addresses 0 and 31. National Instruments GPIB controllers default to primary address 0, so if you want to use an instrument at primary address 0, you should change the address or your controller. You can do this by using the ibpad function.
    NI-488.2 Function Reference Manual for Windows

  • How to search for a field and its value in an internal table

    Hi,
    I want to search for a field(which i dont know whether it exists or not) in an internal table and on finding that field, I have to update the value of that field. How do I do it? I think its similar to how SEARCH works but i wanted to know the internal table eqivalent of it.

    Hi Sujay,
    this code will help ful to u, just gi through it,
    TABLES : KNA1,VBAK,VBAP.
    ***********INTERNAL TABLE DECLARATIONS****************
    DATA : IT_KNA1 TYPE TABLE OF KNA1,
           WA_KNA1 TYPE KNA1.
    DATA : IT_VBAK TYPE TABLE OF VBAK,
           WA_VBAK TYPE VBAK.
    DATA : IT_VBAP TYPE TABLE OF VBAP,
           WA_VBAP TYPE VBAP.
    START-OF-SELECTION.
      SELECT * FROM KNA1
      INTO TABLE IT_KNA1
      WHERE KUNNR = P_CUST.
      IF NOT IT_KNA1 IS INITIAL.
        SELECT * FROM VBAK
        INTO TABLE IT_VBAK
        FOR ALL ENTRIES IN IT_KNA1
        WHERE KUNNR = IT_KNA1-KUNNR.
        IF NOT IT_VBAK IS INITIAL.
          SELECT * FROM VBAP
          INTO TABLE IT_VBAP
          FOR ALL ENTRIES IN IT_VBAK
          WHERE VBELN = IT_VBAK-VBELN.
        ELSE.
          WRITE : / 'Customer',P_CUST,'does not exist ......'.
        ENDIF.
      ELSE.
        WRITE: / 'sales order does not exist for',P_CUST.
      ENDIF.
    Rewards points plz if useful
    Ganesh.

  • How can we display dynamic fields from a XML CLOB?

    Jdeveloper Version : 11.1.1.4.0 (11g)
    We are calling a database package.procedure from a page VO and it returns a result set. The result set is mainly a XML CLOB. Within XML CLOB, we have various sections which we need to parse and display those on JSF page. Couple of sections within XML are having dynamic fields which means the number of fields returned under that section may change depending upon data conditions. We need to find technical way of displaying those dynamic fields (field name and its data – both are part of XML).
    Please suggest how can this be achieved.
    Thanks

    <?xml version="1.0" encoding="UTF-8" ?>
    <nodes>
    <node>
    <category_id>3</category_id>
    <parent_id>2</parent_id>
    <name>Mobile</name>
    <is_active>1</is_active>
    <position>1</position>
    <level>2</level>
    <children>
    <node name="Nokia" category_id="6" parent_id="3" is_active="1" position="1" level="3">
    <node name="Nokia N79" category_id="7" parent_id="3" is_active="1" position="2" level="3" />
    <node name="Nokia N95" category_id="7" parent_id="3" is_active="1" position="2" level="3" />
    <node name="Nokia N97" category_id="7" parent_id="3" is_active="1" position="2" level="3" />
    </node>
    <node name="Samsung" category_id="7" parent_id="3" is_active="1" position="2" level="3">
    </node>
    </children>
    </node>
    <node>
    <category_id>4</category_id>
    <parent_id>2</parent_id>
    <name>Laptop</name>
    <is_active>1</is_active>
    <position>2</position>
    <level>2</level>
    <children></children>
    </node>
    <node>
    <category_id>5</category_id>
    <parent_id>2</parent_id>
    <name>Monitor</name>
    <is_active>1</is_active>
    <position>3</position>
    <level>2</level>
    <children></children>
    </node>
    <node>
    <category_id>8</category_id>
    <parent_id>2</parent_id>
    <name>Camera</name>
    <is_active>1</is_active>
    <position>4</position>
    <level>2</level>
    <children></children>
    </node>
    </nodes>
    Is this correct format to create dynamic menu?

  • How to capture the dynamic fields in the form...urgent...Please help me

    Hi Gurus,
    I'm working on Adobe Interactive form developed in WDP ABAP. I have a dynamic field called Roles. User can give n number of roles as Input. How can I capture them in my WDP. I know how to capture if there is a fixed field like name, age, email id etc.. Please give me the detail explaination on this.

    hi,
    when you create a form, the UI elements are created by either directlly dragging and dropping the context elements or map form elements with context elements.
    when pdf is online its contents are reflected in the Context Attributes.
    so if you change/modify the Context Attributes, the change is reflected in the corresponding form fields.
    regards,
    -amol gupta

  • How to check for missing fields in the file?

    Hi friends,
    I have a file to file scenario in which if any of the fields have a blank value, i have to put the file back in the source folder. If none of the fields are missing, the scenario should work normally.
    Can anybody tell me <b>how can i check for the field lengths</b> and if any of the fields are blank, <b>how do i send it back to the original folder.</b>
    Waiting for your responses,
    Divija.

    Hi Divija,
    >><i>how can i check for the field lengths</i>
    Since you need to basically check if the field has a value or not, i dnt think you need to check for the length of the field. Instead, you can use any one of the booloean functions available in the graphical mapping editor to check if the field has a value or not(filed value true or false)
    >><i>how do i send it back to the original folder.</i>
    You can maintain a flag variable in the target structure such that if any of the source fields donot have values, the flag's value becomes 1 else it remains 0.
    Now, you can check if the value of flag is equal to 1/0 in the bpm and accordingly send the data.
    If in case, you donot want the flag to come in the target file that is loaded/sent from the bpm in the end, i think even tat can be taklen care of.
    You can create two receiver communication channels and define one file adapter in each such that one has the destination as the actual target directory and the other has the original source directory as the destination.
    Regards,
    Sushumna

  • How do you call dynamic fields in Report Builder

    I have some fields that they were filled in a dynamic way,
    and I want to make some calculations using the information that was
    populated in this field. When I put the name of the field in my
    calculation control, it did not see find the field control.
    Does anyone know how can I call the field control? The
    information is not part of any particular column of the
    query.

    check out the Oracle Portal Tutorial White Paper (http://technet.oracle.com/docs/products/iportal/listing.htm#tutcase), there is a section where they build a report with repeating fields

  • Drop down in Dialog programming for a field on the screen

    Hi Friends !
    I have 2 screen fields  zfield1- Indicator and zfield- answer .
    The user wants a drop down for indicator as X or Blank to choose from and for answer  the user wants YES or NO as the dropdown .
    How do i create these dropdowns for the fields ?
    Do I need to create search help or does dialog give other options to add these dropdowns.
    Please advise .
    Thanks!!

    set zfield1 up where it's data element is using the domain YESNO.
    For answer I use this routine a lot.
      PERFORM get_dd07t_value USING 'ZLMCONTTYPE'
                                  out_rec-ctype
                                  out_rec-ctype_desc.
    *&      Form  get_dd07t_value
         -->P_DOMNAME  text
         -->P_KEY      text
         -->P_RESULT   text
    FORM get_dd07t_value USING    p_domname
                                  p_key
                                  p_result.
      CLEAR p_result.
      SELECT SINGLE ddtext INTO p_result
        FROM dd07t
        WHERE domname = p_domname
          AND ddlanguage = sy-langu
          AND domvalue_l = p_key.
      IF sy-subrc NE 0.
        p_result = 'None'.
      ELSE.
        p_result = dom_rec-ddtext.
      ENDIF.
    ENDFORM.                    " get_dd07t_value

  • How to search for a field in a table

    Hello,
        I have technical name of a field. How can I check in which table it is contained in. Also, what is the difference between a table and a structure where data is stored.
    I want table name of PO text field which is contained in Info Record Text.
    How to check table contents.
    Regards,
    Priyanka

    Hi Priyanka,
    If you know the technical name of the field, use T CODE SE15.
    Select Database Fields.
    You can then enter the field name in the Field and execute. System will list all tables containing the field, then you can shortlist the table you are looking for by reviewing the table descriptions.
    Hope this helps !

  • How to program for sync mode batch and immediate

    Hello,
    I have a program that should run in both sync modes (immediate and batch). The first one works well but when switching to batch I've got a lot of exceptions. So my first question is if it is possible to write a program that runs in both modes. My second question is if there is a how-to that explains extensively what is different between those two modes (in calls allowed in one that are harmfull to he other).
    regards
    Joerg
    p.s.
    I've written a small demo program that should show the error but the demo program works fine. But when doing something similar in the main program I've got a lot of NullPointerExceptions. I have no idea where to search or what to do to fix the main program.

    Dear sir...
    i did not try this before,check if each application module has its own mode, if so, then try to make two application modules for your project. one of them in immediate mode and the other in batch mode and use them as you like. But you get a problem that each application module has its own transaction.
    check the link:
    http://www.oracle.com/technology/products/jdev/tips/muench/batchmode/index.html
    hopes this help
    best regards

  • How to program for two PCI cards with identical device ID?

    I have 2 PCI-6713 cards, and they have identical device ID. I'm trying to program in Linux using C++. I got some examples from NI, but non of them seems considering this problem. Where can I get help for this?
    Thanks.
    flofish

    The short answer is that you should read out the EEPROM on each of the two cards you find to determine which one is which.
    I don't have specific examples for the 6713 on how to do this, but here are the necessary pieces.
    EEPROM Read Example - this example is for the E series MIO card, but will be similar for the 6713.
    E Series RLPM - in chapter 5 it describes how to read the EEPROM, which corresponds to the example. The 6713 may have a different EEPROM on it than the example uses and you may have to adjust the code accordingly. Look on the 6713 to find the EEPROM and then look up its manual online. Most likely it is one of the following chips: MB88341, DAC8043, 8800.
    EEPROM Map for the 6713 - this is the roug
    h allocation of information within the 6713. I don't see the serial number listed, but it should be stored on there somewhere. You may want to read out the complete EEPROM and compare the values to the known serial numbers of your boards.
    Christian L
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
    Attachments:
    eepromread.cpp ‏5 KB
    6713_eeprom_map.doc ‏125 KB
    341079b_MIO_E_RLPM.pdf ‏1094 KB

  • How to program for multiple tasks at the same time.

    I want to start a data acq, then detect a level change in a switch which also corresponds to a visible timer starting. The timer will stop when one of three switches is closed. In the middle of this I would like for there to be a selectable (controllable/ adjustable) time delay andthen a signal is sent to one of three random lights. Can anyone please assist?

    Ok, I took a shot at what I think you are trying to do. The attached VI monitors an analog signal. When the analog signal goes above 5V (could be easily modified for any level), the program pauses for a selectable amount of time, then writes to one of three randomly selected digital lines (the LEDs on my digital lines were reverse logic, so you might have to adjust the polarity). This will at least give you something to work with. Hope this helps!
    -Alan A.
    Attachments:
    analog_in_one_dig_out.vi ‏111 KB

Maybe you are looking for

  • Accounting documents in J1iin

    Hi guys When an Excise Invoice is Generated in J1iin system will generate Accounting document. How the system is picking the GL accounts for Modvat postings? Regards Prakash

  • Slow performance in web when modal property set to yes for a popup canvas

    Hi , I found that when the form is upgraded from 6i to 10g, it shown a significant delay to exit a popup canvas if the property Modal is set to Yes but if set to No, the performance is similar in both c/s and web. However, our application need to set

  • Playing iPhone through a basic car sterio

    Hi, I travelled through Ireland recently and found I had to switch off the radio as the radio stations were boring. Normally we rent a car so we took CD's with us. However as we took my own car this time, which only has an old cassette player so we w

  • Apple store will not load

    I cannot load the itunes store.  My computer shows it is trying to connect but the store does not load.  all other functions seem to be ok.  I can sync and see what is on my ipod.  This has suddenly occured in the last 2 days. Prior to that it worked

  • Back to my Mac wont work...?

    I've just bought a MBP with 10.6. I also have a iMac with 10.5.8. I've been trying all night to get 'Back to my Mac' and nothing I try can get me past 'Authentication Failed' On the iMac: Back my mac enabled File sharing enabled for Administrators an