Program the offset until a valid pressure reading between 50 to 150

i am working on a project to make the current process automated.
the system is currently working as follow.
when the system gets into manual programming mode, the front panel display
Mode =1
PressA Gain = 7
Offset = 0
when I want to program a device for instant..
i would type in
Program Rev1=No Parm=Mode Mode=1 N_5kOpt=1 IegmGn=1 Spare=1 ;
Program Rev1=No Parm=PressA Offset=0 Gain=7 ;
if my offset is 0 and the valid pressure reading is between 50-150, then i would use that offset.
if my valid pressure = 511 and i want to get my valid pressure to be 50-150, i would do something like this..
511-80=431
431-80=351
351-80=271
271-80=191
191-80=111   YES
i want to get 111 because it is between 50-150.
lets say that i have a chart of the offset
Offset   Valid Pressure
3B          511
3C          431
3D          351
3E          271
3F          191
0            111
There is a total of 64 offsets
If the valid pressure is NaN = 0
currently, i would type in
Program Rev1=No Parm=PressA Offset=3F Gain=7 ;
check valid pressure value to see if its between 50-150;
if it is not, go up or down in the chart to get a valid pressure.
Program Rev1=No Parm=PressA Offset=3E Gain=7 ;
check valid pressure value to see if its between 50-150;
if it is not, go up or down in the chart to get a valid pressure.
Program Rev1=No Parm=PressA Offset=3D Gain=7 ;
would anyone got an idea of how to approach this algorithm?
Message Edited by krispiekream on 03-24-2008 05:30 PM
Best regards,
Krispiekream
Attachments:
untitled.PNG ‏24 KB

I found out how to do this method,
but i am facing one problem..
can someone help me solve this...
i only want to use the first call only once..yet it is always true once its true one time..
Message Edited by krispiekream on 03-26-2008 03:21 PM
Best regards,
Krispiekream
Attachments:
true once.PNG ‏20 KB
autoconst.vi ‏279 KB

Similar Messages

  • I recently received a mac book air 11 inch for christmas ... i beliehve it was bought in the states from my father i was unaware of the specs until i opened and read it... and i was wondering if i can still do the upgrade to 8gb ram and bigger flash drive

    i recently received a mac book air 11 inch for christmas ... i beliehve it was bought in the states from my father i was unaware of the specs until i opened and read it... and i was wondering if i can still do the upgrade to 8gb ram and bigger flash drive.. is this possible and for how much? its only a week old.

    Your 14 days are up, however you could take your case to Apple Inc. regarding same,
    however those are the stipulations.
    RAM cannot be upgraded however, period, its permanent on the logic board after mfg.
    As for the SSD (solid state drive), upgrading same is a bad premise 9 times out of 10.
    No notebooks is a mass storage device, and you need an external HD for data redundancy and backups regardless.
    data that is static on your SSD and not used very often has no logical reason to be ON the notebooks, and best saved on a superslim external HD ($60)
    SSD are very expensive, even a small one,  HD are cheap as dirt and users are recommended to have one regardless for many good reasons.

  • Error while trying to run the project. Unable to start the program. the address is not valid for current context.

    I am trying to debug the 64 bit application using any cpu. I've tried using x86 also. but still couldn't start the program.

    "Debug x64 bit app" What do you mean by that?  If you have a project open and you click Debug (F5) and the platform is set to Any CPU then the app will run based upon your bitness.  
    When do you get this error? 
    What is your OS bitness?
    What type of app is it? 
    What platform are you using? 
    Can you at least get to the entry point of your app?  Do you have any interop code?
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • SPP Error - No valid transportation lane between Supplier and LOC1

    Hi
    While running the EOQ and SFT planning service, we get the following error
    "No valid transportation lane between Supplier and LOC1". LOC1 is the entry location for our BOD.
    We have not created any procurement relationships as we are working on a standalone SCM trialbox.
    Appreciate any help/suggestions to resolve this issue.
    Thanks & Best Regds
    Mitesh

    Hi Mitesh,
    You need to have valid transportation lanes from the supplier. Maintain it manually. If I remember correctly it is possible to have External Procurement Relationships in APO only (type 4) and not just contracts, purchasing inforecords or scheduling agreements CIFed from ECC.
    Hope this helps.
    Thanks,
    Somnath

  • My signature, the creative cloud is valid until December 2015, I had to format my mac as I have programs that already paid (photoshop lightroom and) again?

    my signature, the creative cloud is valid until December 2015, I had to format my mac as I have programs that already paid (photoshop lightroom and) again?

    if you need to reload your adobe cc apps, dl the cc desktop app, Download Adobe Creative Cloud apps | Free Adobe CC trial
    and use it to install your cc apps.

  • I removed my optical drive because i added an ssd hard drive. when i plug in the dvd to usb it will not play from the macbooks dvd program. the error message is there was an initialization error, a valid drive could not be found.

    I can go into disk utility and see the optical drive and mount what ever cd is in the drive and quicktime will play it. but i would like to have the dvd program recognize the optical drive and open what ever is in it.

    Freakin amazing! I installed a new 1TB Samsung SSD in my main hard drive slot and moved my old hard drive into my DVD slot and moved my DVD to an external DVD case and it would never work with movies, only software disks. I have Late 2011 Macbook Pro running Mavericks with 1TB Samsung SSD and a 512GB HDD in the DVD slot with my DVD in an OWC external DVD case.
    I tried this trick but at first, this did not work because OxED was saving the new file as a text file and not a unix file. I was perplexed until I read the comments below the article and found the tip to use Terminal to change the saved file to a Unix file. I have never used Terminal before and I had no clue what I was doing, but I just followed the steps to a T and it worked. It took two tries with Terminal.
    The comment mentioned "Code:" so I typed that along with the rest and it didn't work. I tried it again and this time just typed
    chmod +x (with a space after the x) then dragged and dropped the saved dvd file from my Desktop into Terminal and hit enter. Worked great. Thank you. I have my DVD player back.
    I also had to play around with some permissions and I had to remove the original file completely from the "A" folder, before I dropped the new file back in.
    Took a little work, but I am back up and running. Thanks to all who contributed to this and yet OWC definitely needs to have all this in their manual or even provide a disk or software download that does this automatically.
    Here is the trick: http://macenstein.com/default/2011/07/how-to-get-your-external-super-drive-worki ng-in-lion/
    Be sure that the new file saves as a Unix file. If it doesnt save as Unix, you will need to:
    Open Terminal.
    Type:    chmod +x
    …with a space at the end (and do NOT press enter yet).
    Then, drag the saved file you want to change from whereever it is saved and drop it on top of the Terminal window. The file path and filename should automatically fill in (and you should ensure that there’s a space between “+x” and the file path).
    Press enter.

  • I downloaded Photoshop CC 2014 last week and every time I open the program, I get an error message that reads "Adobe Photoshop CC 2014 has stopped working" and it forces me to close the program.  How to I resolve this?

    I downloaded Photoshop CC 2014 last week and every time I open the program, I get an error message that reads "Adobe Photoshop CC 2014 has stopped working" and it forces me to close the program.  How to I resolve this?

    Hi Noel,
    I'm wondering whether your comment addressed to Lmono was intended for me Tmono.
    You ask: "So why didn't you provide the same?"
    It just didn't occur to me to do so.
    My intent was to report that there was at least one other user encountering a similar problem.  It occurred to me that Adobe might be interested in determining the scale of a problem which causes one of  their best known products to fail to run quite so completely after a clean install 
    I also see that I misreported the OS I'm running - its Windows 8.
    If there is further information I can provide which might be helpful in determining a solution, if someone could be specific about what would be helpful, then I will try to respond appropriately.
    Perhaps the following from the event log:
    Faulting application name: Photoshop.exe, version: 15.1.0.148, time stamp: 0x53d97a8f
    Faulting module name: igdfcl64.dll, version: 8.1.0.2875, time stamp: 0x507eff6d
    Exception code: 0xc0000005
    Fault offset: 0x0000000000809283
    Faulting process id: 0x1f48
    Faulting application start time: 0x01cfca332430f3a7
    Faulting application path: C:\Program Files\Adobe\Adobe Photoshop CC 2014\Photoshop.exe
    Faulting module path: C:\windows\SYSTEM32\igdfcl64.dll
    Report Id: 659ea6c9-3626-11e4-bea1-9c2a70825e62
    Faulting package full name:
    Faulting package-relative application ID:
    The X230 has Intel HD 4000 graphics support built in to the processor.  Windows was pretty stubborn about refusing driver updates, but I just managed to get drivers from the Intel site to install and Photoshop is now running, so hopefully I need not try your patience any further.
    In case anyone else has a similar problem and stumbles on this the way to install the driver that worked was to:
    - download the zip version of the generic driver from Intel
    - use the 'have disk' option in the windows dialog to install the driver - other paths in the UI did not work with windows refusing to install the driver.

  • The program suspend occasionally,until I press "enter"

    Please help! my program is simple, but it don't run stablely! :((
    Occasionally,it suspend, and when I press "enter",it resume, but when run for
    a few hours,it suspend again.
    my program just like that:
    =======================
    try {
    while (true) {
    now = Calendar.getInstance();
    year = now.get(Calendar.YEAR);
    month = now.get(Calendar.MONTH) + 1;
    date = now.get(Calendar.DATE);
    hour = now.get(Calendar.HOUR_OF_DAY);
    minute = now.get(Calendar.MINUTE);
    second = now.get(Calendar.SECOND);
    //run on the fifth minute every hour
    if (lastHour != hour && minute == 5) {
    System.out.println("Running...");
    System.out.println("date time:" + year + "-" + month + "-" +
    date + " " +
    hour + ":" + minute + ":" + second);
    /* do the routine job start */
    // must ftp a file, and do something else
    System.out.println("successfully!");
    catch (Exception ex) {
    System.out.println(ex.getMessage());
    /* do the routine job end */
    lastHour = hour;
    // sleep for 30 seconds
    try {
    Thread.sleep(30000);
    catch (InterruptedException ex1) {
    System.out.println(ex1.getMessage());
    catch (Exception ex2) {
    ex2.printStackTrace();
    =======================
    the ouput of the program is just like that:
    Running
    date time:2003-10-17 16:5:12
    Finish ftp. File size: 729088 bytes.
    successfully!
    ---- suspend here, when I found the File size din't change on 17:20:22,
    ---- I press "enter",and the following shows
    Running
    date time:2003-10-17 17:5:18
    Finish ftp. File size: 671744 bytes.
    successfully!
    ==========================================
    I can figure out what happened to my program , the Thread.sleep interrupted ? the ftp interrupted ?
    please give me some advices,I greatly appreciate your help!!!

    the program suspend occasionally,until I press my keyboard,
    Please help! It have tortured me for a long time.
    my program is simple, but it don't run stablely! :((
    Occasionally, it suspend, and when I press my keyboard, it resume, but when run for a day,it suspend again.
    my program just like that:
    ===============================================
    // a rountine job, run every hour
    // timer = new Timer();
    // timer.scheduleAtFixedRate(new RemindTask(), time, 60 * 60* 1000); // 1 hour
    System.out.println("Start to run,save log, date time:" + year + "-" + month + "-" + date + " " +
    hour + ":" + minute + ":" + second + " Current=" + System.currentTimeMillis());
    logSaver2.saveLog("date time:" + year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second);
    System.out.println("end log, start ftp, Current=" + System.currentTimeMillis());
    // must ftp a file, and to dump the file into database
    System.out.println("finish!");
    ==================================================
    logSaver2.saveLog just do this:
    RandomAccessFile myRAFile;
    myRAFile.seek(myRAFile.length()); //move to the end of the file
    myRAFile.writeBytes(s); //Start appending!
    ====================================================
    the ouput of the program is just like that:
    Start to run,save log, date time:2003-12-11 08:10:00 Current=1071101400854
    end log, start ftp, Current=1071101400856
    finish!
    ------------- it suspend,I checked the log file, it have recorded "date time:2003-12-11 09:10:10",
    --------------and when I press keyboard on 09:38:40, the following shows, and it runs normally
    Start to run,save log, date time:2003-12-11 09:10:10 Current=1071105200898
    end log, start ftp, Current=1071107280241
    finish!
    ======================================================
    notice that when it suspend, the difference of the two "Current" values will be large,
    and when it run on time, the difference of the two "Current" values will be small,
    but I just do "savelog" at that time span!
    and some experience:
    I once used the windows ftp client to do the ftp, and the program suspend frequently(once a few hour),
    and I used the enterpriseftp-1.2.3 now, the program suspend occasionally(maybe twice a day)
    I cann't figure out what happened to my program.
    please give me some advices,I greatly appreciate your help!!!

  • When I click or type in a valid link, I get the message "The URL is not valid and cannot be loaded." I have to reload/refresh the page one or more times until the same page loads.

    This happens with small sites as well as major ones such as amazon.com. It happens frequently with many different websites both when typing in a URL or clicking on one from search results or other pages. If I am opening it in a new tab, the page is blank and the correct URL shows in the address bar even though it didn't load. When I get the message "The URL is not valid and cannot be loaded" I have to click okay and then click on the link again or click refresh. Sometimes it loads on the 2nd try; other times I have to refresh multiple times to get it to load.
    Anyone know what is causing this or what will help?

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    See also http://kb.mozillazine.org/Error_loading_websites (Error_loading_some_websites)

  • Why do I keep getting an error message that reads "The URL is not valid and cannot be loaded."

    Whenever I click on a link that opens a new tab using "about:tab", an error pops up. The error box is titled "Alert" and the message reads "The URL is not valid and cannot be loaded."
    However, once I click OK, the page loads just fine. At first, I thought it might be one of my add-ons (Iuse a bunch), but it still occurs after restarting in Safe Mode. Any thoughts?
    I can even create the problem without clicking on a link inside a page if I simply type about:tab in the address bar.
    I am using Firefox 12.0

    Wow! I actually solved this on my own. I didn't find any thread that helped, but after reading a few, I figured poking around in about.config would help... and it did!
    Here is how I solved the problem:
    # Typed '''about:config''' in address bar.
    # When I got to the warning about voiding the warranty, clicked '''I'll be careful, I promise!'''
    # I found the setting entitled '''browser.newtabl.url''' (use the '''Search:''' box).
    # I double-clicked on the entry entitled '''browser.newtabl.url''' and deleted the info in the value portion.
    # Clicked '''OK'''.
    # Closed the tab.
    # Restarted Firefox and problem was solved.

  • I recently bought  Lightroom and installed on one of my computes. I wanted to instal the program on another computer I have, using the same serial number I already bought and I'm not alowed as it says that the SN is not valid. What shall I do?

    I recently bought  Lightroom and installed on one of my computes. I wanted to instal the program on another computer I have, using the same serial number I already bought and I'm not alowed as it says that the SN is not valid. What shall I do?

    It is possible that you downloaded the Creative Cloud trial of Lightroom. The perpetual license key will not work. Uninstall the version on the second computer, this will not interfere with your catalog, preferences and personal files.
    Download the appropriate version from the link below and install, your license key will be accepted and everything will be fine.
    Product updates

  • TS2326 when I import my ppictures to my PC it wont let me rotate and it says THIS FILE MIGHT BE IN USE OR OPEN IN ANOTHER PROGRAM OR THE FILE OR FOLDER MIGHT BE READ ONLY

    can somebody help me cause i cant rotate my pics its a message came out when i try to do that.its says the file might be in use or open in another program or the file or folder might be read only

    Are you saving the files to a server? Did you email a version of the file and then continue to work on it without closing it?

  • How do you change the language to English in Photoshop CS5 after installation is completed? When I installed the program, English was not one of the language options so now everything reads in spanish. I can not read in spanish. Please help!!

    How do you change the language to English in Photoshop CS5 after installation is completed? When I installed the program, English was not one of the language options so now everything reads in spanish. I can not read in spanish. Please help!!

    Hi mujabee1111,
    Please uninstall the application from your machine and then use the link below to download the installer for the CS5 download in English language:
    Download CS5 products
    Regards,
    Sheena

  • Validation(in the planning function) is failing to read fiscal year

    Gurus,
    We created a fox formula in the planning function for validating budget data so that users do not profile above the allowed budget. We declared variables correctly as follows:
    **Declare variables*
    **++++++++++++++++++++++*
    *DATA CURRBUD TYPE F.*
    *DATA DIFF TYPE F.*
    *DATA HEADF TYPE F.*
    *DATA FUNDF TYPE F.*
    *DATA FUNDFX TYPE F.*
    *DATA HEADF1 TYPE F.*
    *DATA HEADF2 TYPE F.*
    *DATA HEADF3 TYPE F.*
    *DATA HEADFX TYPE F.*
    *DATA FUNDF1 TYPE F.*
    *DATA FUNDF2 TYPE F.*
    *DATA FUNDF3 TYPE F.*
    *DATA FUNDF4 TYPE F.*
    *DATA FUNDF5 TYPE F.*
    *DATA FUNDF6 TYPE F.*
    *DATA FUNDF7 TYPE F.*
    *DATA FUNDF8 TYPE F.*
    *DATA FUNDF9 TYPE F.*
    *DATA FUNDF10 TYPE F.*
    *DATA FUNDF11 TYPE F.*
    *DATA FUNDF12 TYPE F.*
    *DATA KVERSION TYPE 0VERSION.*
    *DATA KYEAR TYPE 0FISCYEAR.*
    *DATA KGRZHEAD TYPE ZGRZ_HEAD.*
    *DATA PAREA TYPE AREA____.*
    *FOREACH KGRZHEAD, KYEAR.*
    **Original Budget*
    *HEADF1 = {0AMOUNT,KYEAR,CRBU,0,KGRZHEAD,FUNDPROF }.*
    **Supplementary Budget*
    *HEADF2 = {0AMOUNT,KYEAR,CRBU,SUP,KGRZHEAD,FUNDPROF }.*
    **Returns Budget*
    *HEADF3 = {0AMOUNT,KYEAR,CRBU,RET,KGRZHEAD,FUNDPROF }.*
        *HEADFX = HEADF1 + HEADF2 - HEADF3.*
      *FUNDFX =*
    *{0AMOUNT,KYEAR,HEAD,0,KGRZHEAD,FUNDPROF}.*
    FUNDFX = FUNDFX + FUNDF.**
    *ENDFOR.*
    **Calculate the Difference between the Approved budget*
    **And the Funding profile amount for the year*
    **++++++++++++++++++++++++++++++++++++++++++++++++++*
    *DIFF = HEADFX - FUNDFX.*
       *IF DIFF > 0.*
          *MESSAGE I025(ZGRZ) WITH  KGRZHEAD HEADFX FUNDFX DIFF.*
      *ELSEIF DIFF  < 0.*
         *MESSAGE E026(ZGRZ) WITH  KGRZHEAD DIFF HEADFX FUNDFX .*
      *ELSEIF DIFF = 0.*
         *MESSAGE W027(ZGRZ) WITH  KGRZHEAD HEADFX FUNDFX.*
      *ELSE.*
         *MESSAGE E028(ZGRZ)WITH KGRZHEAD.*
         *EXIT.*
    ENDIF.
    A variable FYEAR has been created for characteristic 0FISCYEAR. This formula has been working correctly last year but when we changed the variable to point to 2011, for this year, it refuses to read that variable. The system is giving the followign error message:
    Value of variable Fiscal year (FYEAR) cannot be determined
    This only experienced in production, but in Develoment and QAS the function is working properly.
    Kindly assist,
    Tatenda
    K
    Edited by: tatenda chigwedere on Jan 4, 2011 4:13 PM

    Hi,
    I think you are talking about IP / BPS. Please post your thread to the relevant forum. This forum is for BPC on NW platform.

  • When opening the program LR 5 encounters an error when reading from it's preview cache.

    When opening the program LR 5 encounters an error when reading from it's preview cache. It says it will correct the problem when it re opens. Why does this happen and how do I correct it?

    It means there is an issue with the preview cache.
    If it persists after closing and re-opening Lightroom then you will need to delete the preview folder.
    There is no permanent harm and Lightroom will regenerate the previews on an asneeded basis or the whole image collection if you ask it.
    The previews folder exists in the Lightroom folder and has the name "Your catalog name PREVIEW.LRDATA".
    Make sure it is the the correct folder before deleting it.
    Tony Jay

Maybe you are looking for

  • Can I use a photo as the color for my text swatches

    I want to create a set of letters (Lake in Wood Camping Resort) that use a photo of the campground as their swatch, instead of a solid color.  Can I do this?  If yes, how?  I am a novice at INDESIGN so need all the help I can get. My thought would be

  • Problem using ABAP webservice in a J2EE application

    Hi All, I have created a WSDL for a ECC FM. Created a Deployable  WebService  Project using the WSDL. It gives a EAR and a JAR file. Deployed the EAR generated to the server. Then I have created a J2EE Web module Added the JAR from the Webservice Pro

  • Can i connect to lotus domino database in my java environment

    Hi javaites, I want to know if i can connect to domino database from my java environment. i need to pick e-mail address of staffs from lotus notes database. if possible how can i go about it. thanks

  • Measure execution time with PowerShell

    What would be the best way to accomplish following: 1. Get start time and write it to variable 2. Do something 3. Get end time and measure how long it taked from start to end and store the result in variable I would need the result be in format like

  • Out-File to CSV holds on to information

    Hey everyone, Here is my issue. I have a Powershell v2.0 application that I created using Sapien Powershell Studios, that sends information to a CSV. Then I have another script(batch) that reads the CSV, but does not find any information until I phys