Use Text Ring to Set Parameter; Need Reverse Text Ring to Read?

Using the manufacturers manual I have managed to program a number of simple programs to interface with one of the pieces of lab equipment I am using. To set the sensitivity of the device I used a text ring to allow the user to select the sensitivity visually, while using the number to program the device. Essentially the internal programming had a text ring in mind. To program a sensitivity of 1 nV I use SEN 0. For 3 nV SEN 1. This continues until 3 V with SEN 15. 
Now, In order to read the values from the device properly I need to be able to read the sensitivity. The SEN command returns the numeric value but how do I convert the number into a string (much like a text ring in reverse) for each possible outcome? 
Subsequently I could just read the numeric value, but I need to treat each sensitivity differently. For example. Reading a 10mV source at the 30mV sensitivity the output voltage is .333V, indicating 1/3 the full range.  At each sensitivity I have to multiply the reading by the sensitivity to get the true value. 
What is the most compact way to program this? I could set up 16 if equals comparisons and 16 separate branches of code, but that seems highly inefficient. 
Nukem

I think some of these solutions will work to clean up the use of the sensitivities, but let me be more clear on the reading and writing portion.
In the manual I have a table that tells me what command to send to the device to achieve a certain sensitivity level:
SEN 
0               100 nV
1               300 nV
2               1 micro V
3               3 micro V
etc.
I want the user to be able to see the sensitivities on the right, while the program uses the values on the left. Hence, I used a text ring to achieve this when setting the sensitivity level. I select 3 micro V on the front panel and the program runs with the value 3. 
Now, If I want to check the sensitivity level I have to do this in reverse. Have the program read a value of 3 and output the string telling me that the level is 3 micro V. 
It looks like I should be able to use the ring cluster Jeff Bohrer suggested to do this both forwards and in reverse. I will try this at work tomorrow when I have access to LabView again. 
Thanks everyone!
Nukem. 

Similar Messages

  • I have a work iphone (4) and my personal iphone (5). Can I possibly get by with just using one phone or do I need both phones?

    I have a work iphone (4) and my personal iphone (5). Can I possibly get by with just using one phone or do I need both phones?

    Both.

  • When I receive calls I always get the option to remind me later, but only certain times I get the option to respond with text.  Is there a setting I need to update to always get this option?

    When I receive calls I always get the option to remind me later, but only certain times I get the option to respond with text.  Is there a setting I need to update to always get this option?  Also i can't use location reminders.  Is this because my calendar is in Outlook?

    The only known way to make it work on an external drive is by first installing Windows onto an internal drive, then cloning the install to an external Thunderbolt drive. Thunderbolt is seen as an extension of the internal bus, so Windows doesn't see it as an external device.

  • Issue with using GET n SET Parameter in module pool programming.

    Hello Friends,
                         I am using SET n GET Parameter to access input values from a screen. But when I use it, the values are not transfered back n forth. Getting initial values.
    Your expertise would be appreciated.
    Cheers,
    Senthil

    Hi,
    check this
    Filling an Initial Screen using SPA/GPA Parameters
    To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
    To fill one, use:
    SET PARAMETER ID <pid> FIELD <f>.
    This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID <pid> FIELD <f>.
    This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
    To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
    The relevant fields must each be linked to an SPA/GPA parameter.
    On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.
    On a screen, you link fields to parameters in the Screen Painter. When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen in the PAI event.
    When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once.
    When you call programs, you can use SPA/GPA parameters with no additional programming overhead if, for example, you need to fill obligatory fields on the initial screen of the called program. The system simply transfers the values from the parameters into the input fields of the called program.
    However, you can control the contents of the parameters from your program by using the SET PARAMETER statement before the actual program call. This technique is particularly useful if you want to skip the initial screen of the called program and that screen contains obligatory fields.
    If you want to set SPA/GPA parameters before a program call, you need to know which parameters are linked to which fields on the initial screen. A simple way of doing this is to start the program that you want to call, place the cursor on the input fields, and choose F1 followed by Technical info. The Parameter ID field contains the name of the corresponding SPA/GPA parameter. Alternatively, you can look at the screen definition in the Screen Painter.
    The technical information for the first input field of the booking transaction TCG2 looks like this:
    The SPA/GPA parameter for the input field Company has the ID CAR. Use this method to find the IDs CON, DAY, and BOK for the other input fields.
    The following executable program is connected to the logical database F1S and calls an update transaction:
    REPORT BOOKINGS NO STANDARD PAGE HEADING.
    TABLES SBOOK.
    START-OF-SELECTION.
      WRITE: 'Select a booking',
      SKIP.
    GET SBOOK.
      WRITE: SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
      HIDE:  SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
    AT LINE-SELECTION.
      SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,
                        'CON' FIELD SBOOK-CONNID,
                        'DAY' FIELD SBOOK-FLDATE,
                        'BOK' FIELD SBOOK-BOOKID.
      CALL TRANSACTION 'BOOK'.
    The basic list of the program shows fields from the database table SBOOK according to the user entries on the selection screen. These data are also stored in the HIDE areas of each line.
    If the user selects a line of booking data by double-clicking, the system triggers the AT LINE-SELECTION event and takes the data stored in the HIDE area to fill them into the SPA/GPA parameters of the initial screen of the transaction. Then it calls the transaction. Since you do not suppress the initial screen using AND SKIP FIRST SCREEN, the initial screen may appear as follows:
    If you would use the AND SKIP FIRST SCREEN option with the CALL TRANSACTION statement, the second screen would appear immediately, since all obligatory fields of the first screen are filled.
    Regards
    Edited by: K.P.N on Jan 9, 2008 5:21 AM

  • I have a trial version of Photoshop CC. I am unable to use CTRL J, is there a setting I need to do to get it to work.

    I have a trial version of Photoshop CC. I am unable to use CTRL J, is there a setting I need to do to get it to work.

    Should work
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.
    Photoshop menu Help>System Info ... help identify you system hardware and software

  • NEED SET PARAMETER ID for  maintain Activity (BUS2000126)

    Hi all,
             i am working in CRM 5.0, i have created one Z Activity Report wit interaction,
    i need Set parameter id for maintain Activity (BUS2000126) for geting the partcular Transaction Activity,
    it is not working :
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
    RS_SELFIELD TYPE SLIS_SELFIELD.
    data:index type i.
      CASE R_UCOMM.
        WHEN '&IC1'.
            read table it_data  index rs_selfield-tabindex.
           SET PARAMETER ID    'CRM_CURR_OBJECT_ID'
               FIELD it_data-object_id.
           call transaction 'CRMD_BUS2000126' ."and skip first screen.
      ENDCASE.
    ENDFORM.                    "user_command
    this 'CRM_CURR_OBJECT_ID' parameter is not working ,
    Can any one tell me parameter ID for t-code 'CRMD_BUS2000126' ,
    Thanks,
    Ganesh R

    Hi Pratik Patel,
                           i have tryed  Parameter ID: CRM_OBJECT_ID,
    but it is not working ..
    see my coding :
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
    RS_SELFIELD TYPE SLIS_SELFIELD.
    data:index type i.
      CASE R_UCOMM.
        WHEN '&IC1'.
            read table it_data  index rs_selfield-tabindex.
           SET PARAMETER ID 'CRM_OBJECT_ID' FIELD it_data-object_id.
           call transaction 'CRMD_BUS2000126' and skip first screen.
      ENDCASE.
    ENDFORM.                    "user_command
    here is any problem?,
    i have checked clicked object id is comming properly ,
    can u tell what is the problem?
    regards
    ganesh

  • I had to take my hp back to factory setting and reinstall itunes, when I tried to use Itunes match it said i had to Deauthorize all my computers. I am using the same computer and desperately need access to my music.

    I had to take my hp back to factory setting and reinstall itunes, when I tried to use Itunes match it said i had to Deauthorize all my computers. I am using the same computer and desperately need access to my music.

    When you reset to factory settings, the computer is de-authorised.
    In iTunes menu Store > View Account > sign in > App Store > Deauthorise All.
    Once done, authorise this computer iTunes.
    Note: you can only do that once a year.

  • Report  using Set parameter & get parameters.

    Hi,
           My requirement is from select query  the list of PO will be display. Now i want when i click on one of the purchase order .
    i want to diaplay PO using CALL TRANSACTION 'ME23N'  with the help of set and get parameters .  or can i do it with interactive report.
    Regards,

    Hi,
    1) Write a Report to show the Output(Use HIDE statment for PO filed while outputing the list).
    2) In the event AT LINE-SELECTION write logic.
    GET CURSOR FIELD field VALUE val.
    SET PARAMETER ID 'BES' FIELD dobj.
    CALL TRANSACTION ME23N.
    Regards,
    J.

  • I'm using a pc, (windows 8.1,) and I cannot get a thick and thin line with CS6. None of the brush tool settings have any effect, even in the preview. Is there a setting I need because I'm using a pc?

    I'm using a pc, (windows 8.1,) and I cannot get a thick and thin line with CS6. I want to draw, but I cannot get any linework like I should. I also use Sketchbook Pro, and ToonBoom, and I get wonderful linework. But not with Photoshop.
    None of the brush tool settings have any effect, even in the preview. Is there a setting I need because I'm using a pc and not a mac?

    Thanks for your response,
    I'm using a Fujitsu T901 laptop, with a stylus pen. Painting works great in Photoshop, but for drawing there is no sensitivity at all.  Frans Vischer
    author and illustrator of Fuddles, A Very Fuddles Christmas and Jimmy Dabble
    www.fransvischer.com
    pamperedfatcat.wordpress.com

  • TS2634 My iPhone 4s does not ring for incoming calls. Ring tone is set/settings/sound. It used to ring. I think it has to do with updating to IOS 7.0.4? After updating IOS 7.0.3 my microphone stopped working. Had to clear/reload.

    My iPhone 4s does not ring for incoming calls. Ring tone set and used to ring. I think it has something to do with updating the IOS 7.0.4. When I updated to 7.0.3 the microphone stopped working. Had to call Apple Support and cleared phone and reloaded. ($57 charge). Any suggestions?

    Start with your finger at the bottom of the screen (about even with the home button) and swipe in an upward motion.  There should be a row of icons at the top of a grey field.  if the quarter-moon icon is bright white, tap it.  If it was (and still is) dark, take the iPhone in to be evaluated by a qualified technician.

  • I own Logic Pro 7( I used to have a PowerPC  and need to upgrade to Logic Pro 9 (new Intel chip, system 10.8) .  Do I need to buy a whole new set or do I upgrade for less cost?

    I own Logic Pro 7( I used to have a PowerPC  and need to upgrade to Logic Pro 9 (new Intel chip, system 10.8) .  Do I need to buy a whole new set or do I upgrade for less cost?

    The cost of the Full Logic Pro 9 from the App Store is less than the cost of the discontinued Boxed Upgrade set for Logic Studio (if you could find one) ... so you might as well purchase the full Logic Pro 9 from the App store and be done.

  • How to pass value to select-option parameter using SET PARAMETER Command

    Hi,
        Am passing values to selection-screen fields in report RV13A004 ( used in VK11, VK12 and VK13). using below statement but material number is select-option in this report. am able to pass  MATERIAL FROM using SET PARAMETER ID, can i know how to pass values MATERIAL TO range in select-options fields using SET PARAMETER Command ??
    Passing values to parameter id
    set parameter id 'VKS' field kschl.
    set parameter id 'VKO' field vkorg.
    set parameter id 'VTW' field vtweg.
    set parameter id 'KDA' field erdat.
    set parameter id 'MAT' field matnr_from.
    Change condition price.
    call transaction 'VK12' and skip first screen.
    Thanks in advance.
    Regards,
    Balamurugan.

    Hi,
    instead of using set parameters and dden call transaction use this..........
    submit RV13A004  WITH SELECTION-TABLE rspar
    Effect
    If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
    SELNAME (length 8),
    KIND (length 1),
    SIGN (length 1),
    OPTION (length 2),
    LOW (length 45),
    HIGH (length 45).
    To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
    SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
    KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
    SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
    If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
    The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
    Notes
    In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.
    When entering values, you must ensure that these are entered in the internal format of the ABAP values, and not in the output format of the screen display.
    Cheers
    Will.

  • [svn] 3148: You can now use CSS styles to set the default text format for TextView.

    Revision: 3148
    Author: [email protected]
    Date: 2008-09-08 15:01:15 -0700 (Mon, 08 Sep 2008)
    Log Message:
    You can now use CSS styles to set the default text format for TextView. It no longer has any formatting properties. It supports the entire set of Gumbo text format styles.
    SkinnableComponent and Group now also support all these styles. However, skins such as ButtonSkin, TextInputSkin, and TextAreaSkin continue for now to specify instance styles on their TextBox, TextGraphic, and TextView, in order to give them a Gumbo look rather than a Halo look. So if you try setting, for example, the fontSize on the Application, it doesn't yet affect the text format of a Button, TextInput, TextArea, etc. unless you remove the instance style in the skin.
    Reviewer: Glenn
    Bugs: -
    QA: Lots of new stuff to test!
    Doc: No
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextArea.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextInput.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/component/TextView.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/SkinnableComponent.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/TextGraphicEle ment.as

    Nevermind guys - I did it using the 'rb_on.selected' command on the "on" radio button if the .txt file variable was "on", else the "off" radio button is selected.
    Thanks for taking a look though!
    Shaun

  • I am using Photoshop Elements 11 and I need to  convert text to curves

    I don't need to put text on a curve but need to convert the text of my picture to curves by the company that is going to re-produce it.  The require this so that the text won't get distorted if they don't have the same fonts that I am using.
    I can't find any info on how to do this, Can I convert whole words or do I have to do a letter at a time?  Can I get all the text on one layer and then convert the text on that layer to curves?
    Kat in Canada

    You can try below two options and see if it does what you want
    - Use Text on Path Tool. For more info refer
    http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f-deece6d12e28b17def- 7fff.html#WS5b9a9ff298eb77cc-1da27bd8130558d3d3c-7ffe
    -Other option would be to use text warp. See this video related to this
    http://www.youtube.com/watch?v=jdW1Pl2gfks

  • HT1807 how do I make sure to encounter charges for roaming but still use my phone on wifi?  I have viber app and would like to message also without additional charges.  Is there a setting I need to hit to ensure this?

    Travel internationally and use my ipohne with wifi, how do I make sure to avoid charges for roaming but still use my internet and messaging on wifi?  I have viber app and would like to message also without additional charges.  Is there a setting I need to hit to ensure this?

    Settings>General>Network>Roaming>Data Roaming>Off. If you really want to be absolutely certain, Settings>General>Network>Cellular Data>Off.

Maybe you are looking for

  • Java API - PublicReportServiceClient.class

    I have a BI Publisher API, publicreportserviceclient.class, that was created by a contractor in 2007 that needs to be reengineered. Code anomolies appear when opening the class in Oracle JDeveloper 11g Release 2. The code follows. What is the purpose

  • How to get count of all records of all entities in CRM Online

    Hi,  I want to get count of all records entitywise in dynamics CRM 2013 online. I know we can count the records in CRM on-premise using a SQL query in report. Earlier I wrote a SSRS report to count the records in a CRM entity wise  as displayed in th

  • Is public file sharing from the cloud really "public"?

    I'm wondering...When I make a file "PUBLIC" does that mean that it could be viewed by anyone in the public or just by people that I send the link to or people that they may send the link to? Is this crawled by search engines?

  • First Impressions of 875P Neo FSI2R

    Hello All, first off i'd like to make some comments about this board. My Abit IC7-G needed to be returned, so i did a little research on a replacement as the aforementioned board has its quirks, ( Only wished i'd found these forums before i'd purchas

  • Cascading two linksys routers

    I am trying to cascade my two WRT54GL routers, but can't get my second router to see internet. My problem: I want to have to separate wireless networks. One network from router 1 (main router, both wireless and wired IP "clients") and a pure wireless