How can i read every"number" value and not only the 1st?

in the vi only the first "number" value(from the data acquisition)is read in the small loop.how can i make every value to be read?every value must be compared with the "numeric" constant,and,if greater the led must turn on.afterwards,when a value which is less than the "numeric" is found the led must turn off.please answer or send mail to [email protected]
Attachments:
oximet5.vi ‏152 KB

The more I look at your program, the less I understand it.
Why are you setting number = number in a case if SO2 = ""? number always equals number.
In your sequence frames 1 and 4, you have no control over which write (date or time) happens first. Just placing one function to the left of another doesn't make it happen first if your wiring doesn't create data dependency. Review the section on Data Dependency in chapter 5 of the LabView User's Manual.
It looks you're writing to and reading from the same file using Write File and Read Lines from File.vi. Why read back data you just wrote? You have the data on your diagram. If you want to convert it from string to numeric, use a Sring/Number Conversion function from the String palette.
On Read Lines from File.vi (which I'm not sure you even need), you should use a shift register for the start of read offset rather than a local variable for mark after read (chars.). With a shift register, you can initialize it to 0 when the VI starts. Using a local, if you restart the VI, it will try to startup from where you left off the last time, but you just opened the file for create or replace.
In your sequence frames 2 and 3, why do you wait for the number to be less than the numeric before writing a carriage return to the file? Also, LabView has a End of Line constant which adapts to the expected value for the operating system. That's generally more flexible than a Carriage Return.
It looks to me like you're overusing control refnums. You don't need to use a control refnum and a property node to set or read a control's value if you can wire directly to the control's terminal.
I really don't understand what you're doing with pause and variants. I may be missing the point, but it looks like you made this much more complicated than it needs to be. Why not keep it a boolean?
For your pause-path, you open the file but never close it. You can lose data that way. You also open it using open function 3, create new file. You'll get an error if the file already exists.
On a general note, your diagram would be easier to read if you were more selective in how you routed your wires: you have wires on top of wires, wires running under sub-VIs, wires running in the frame of a while loop, wires running under labels.
I think there's a temptation to overuse sequences. I don't think you need one here. As I mentioned in my earlier message, case structures and shift registers will be more useful to you.

Similar Messages

  • How can I print an 8x10 picture and not use the print tray

    I want to load photo paper into the regular paper tray and print but the system only prionts images onto the 4x6 paper. I've only had the printer one day and already I find it confusing, If I cannot print like I was able to using my old Epson printer, I think this ius the wrong hardware for me

    How can I print photo's larger than 4x6. The paper tray will not take a larger size photo pPer

  • MAC | Each time I open a new window with ctrl-n, the sidebar opens and then I have to manually close it. How can I do a ctrl-n and not have the sidebar open?

    no comment

    Do you have any Sidebar-related extensions installed?
    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • How can one  read a Excel File and Upload into Table using Pl/SQL Code.

    How can one read a Excel File and Upload into Table using Pl/SQL Code.
    1. Excel File is on My PC.
    2. And I want to write a Stored Procedure or Package to do that.
    3. DataBase is on Other Server. Client-Server Environment.
    4. I am Using Toad or PlSql developer tool.

    If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
    1. Get your DBA to create directory object in oracle using the following command:
    create directory TEST_DIR as ‘directory_path’;
    Note: This directory is on the server.
    2. Grant read,write on directory directory_object_name to username;
    You can find out the directory_object_name value from dba_directories view if you are using the system user account.
    3. Logon as the user as mentioned above.
    Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
    function getData(p_filename in varchar2,
    p_filepath in varchar2
    ) RETURN VARCHAR2 is
    input_file utl_file.file_type;
    --declare a buffer to read text data
    input_buffer varchar2(4000);
    begin
    --using the UTL_FILE in built package
    input_file := utl_file.fopen(p_filepath, p_filename, 'R');
    utl_file.get_line(input_file, input_buffer);
    --debug
    --dbms_output.put_line(input_buffer);
    utl_file.fclose(input_file);
    --return data
    return input_buffer;
    end;
    Hope this helps.

  • IF_IXML : How can i add encoding with value UTF-8 to the document object??

    Hi
    i want to create a xml file with the following content:
    <?xml version="1.0" encoding="UTF-8"?>
    <OpenSearchDescription xmlns="http://...."> 
    </OpenSearchDescription>
    i did this with the if_ixml interface and rendered the content in a file 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml
    <?xml version="1.0"?>
    <OpenSearchDescription xmlns="http://...."> 
    </OpenSearchDescription>
    BUT the document attribut(?) encoding="UTF-8"?> is missing!
    How can i add encoding with value UTF-8 to the document object?? it should look like:
    <?xml version="1.0" encoding="UTF-8"?>
    *here is my coding.
    TYPE-POOLS: ixml.
    CLASS cl_ixml DEFINITION LOAD.
    DATA: lo_ixml           TYPE REF TO if_ixml,
          lo_streamfactory  TYPE REF TO if_ixml_stream_factory,
          lo_document       TYPE REF TO if_ixml_document,
          lo_parent         TYPE REF TO if_ixml_element,
          lo_ostream        TYPE REF TO if_ixml_ostream,
          lo_renderer       TYPE REF TO if_ixml_renderer,
         lv_rc           TYPE i.
    lo_ixml = cl_ixml=>create( ).
    lo_streamfactory = lo_ixml->create_stream_factory( ).
    lo_document = lo_ixml->create_document( ).
    lo_parent = lo_document->create_simple_element( name   = 'OpenSearchDescription'  "root node
                                                    parent = lo_document ).
    lo_parent->set_attribute_ns( name   =  'xmlns'
                                 value  = 'http://....' ).
    *rausrendern in file
    lo_ostream = lo_streamfactory->create_ostream_uri( system_id = 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml' ).
    lo_renderer = lo_ixml->create_renderer( ostream  = lo_ostream
                                            document = lo_document ).
    lv_rc = lo_renderer->render( ).
    Thanks for help
    Britta

    Use the following code:
    set an document encoding
      l_encoding = l_ixml->create_encoding( character_set = 'UTF-8'
                                            byte_order = if_ixml_encoding=>co_none ).
      l_success  = l_ostream->set_encoding( encoding = l_encoding ).
    create a xml renderer
      l_renderer = l_ixml->create_renderer( document = l_doc ostream  = l_ostream ).

  • HT201269 Hi. I have shared an Apple ID with my children for some time.  As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts.  How can they access their purchased music and apps on the new account

    Hi. I have shared an Apple ID with my children for some time.  As they are getting older they do not wnat me seeing all their messages, photos etc so want their own accounts.  How can they access their purchased music and apps on the new account please?

    Yes.
    On their iOS devices, under Settings>iTunes & App Store, they should use your Apple ID. When they log into iCloud, iMessage and Facetime, they should use their personal Apple IDs.

  • How can i download premiere elements 10 and not 11?

    how can i download premiere elements 10 and not 11?

    Direct Download Link(ensure you read the very important instructions)
    Thanks
    Nikhil  

  • Please assist. How can I make all the photos on my Iphone visible? and not only the recently added ones? I'm using IOS 8

    Please assist. How can I make all the photos on my Iphone visible? and not only the recently added ones? I'm using IOS 8

    Did you move to iOS 8 via iTunes?  Your photos should all be on your iPhone 5s without any issues even if you updated via WiFi.  The update should have no impact on your photos other than to have moved any photos in your former Camera Roll to your Photos.  When opening the Photo App you should see Photos and Albums available at the bottom of the screen.  You can also look at Settings>General>About and looking down the list your should see the word Photos and a Count at the right.  This count should represent all of the photos in your iPhone.

  • How to setup my iPad to sync automatically not only the movies and songs I have bought but also the tv shows?

    How to setup my iPad to sync automatically not only the movies and songs I have bought but also the tv shows?

    Chris Bui wrote:
    Thank you Diavonex......... This is not a joke and please do respect when people really need help.
    Diavonex was not treating this as a joke. He was giving you the answer to your question in a perfectly polite and respectful way. Without the Apple ID credentials to which the iPad is locked or proof that you are the original purchaser, there's nothing you can do. The device is useless to you.

  • How can i read user input value to my User exist

    Hi Guru's,
    I am facing one problem in Variables in BPS.
    I am calculating days from Month/year .I have one variable it is for Days,Second variable it is for Month/Year.
    First variable is user exist (for calculating the days),Second varible is user defined variable(this is a Input to the first variable).
    When i am giving the Month/Year(02/2008)variable i am getting the 29 days from the first variable.again i am changing the value of Month/Yera(03/2008) i am not getting the desired value.
    my doubt is my user exist not able to read current value of variable(month/year).how can i pass my value to user exist because this value is user input value based on this value i am calculating the days and dynamically displaying the layout.
    Here is the my sample code..
    seq = '0000'.
    ind = 0.
       i_area = 'ZTEST1'.
       area_var = 'ZVar2'.
    PERFORM instantiate_object USING    i_area
                                        area_var
                                 CHANGING lsr_var.
    PERFORM get_current_value_of_variable
                            USING lsr_var
                            CHANGING lto_value.
    READ TABLE lto_value INTO lso_value index 1  .
    i_month = lso_value-low.
    iv_month = i_month+4(2).
    iv_year = i_month(4).
    concatenate iv_year iv_month '01' into iv_date.
    begindate = iv_date.
    below bracket code calculating the leap year
    ( IF iv_date+4(2) = lc_feb.
        lv_hlp_date_year = iv_date+0(4).
        lv_hlp_rest      = lv_hlp_date_year MOD 4.
        IF lv_hlp_rest = 0.
          EV_DAYS = lc_days_29.
          lv_hlp_rest = lv_hlp_date_year MOD 100.
          IF lv_hlp_rest = 0.
            lv_hlp_rest = lv_hlp_date_year MOD 400.
            IF lv_hlp_rest NE 0.
              EV_DAYS = lc_days_28.
            ENDIF.
          ENDIF.
        ELSE.
          EV_DAYS = lc_days_28.
        ENDIF.)
      ELSE.
    below bracket code calculating the days
    (   CASE iv_date+4(2).
          WHEN lc_jan. EV_DAYS = lc_days_31.
          WHEN lc_mar. EV_DAYS = lc_days_31.
          WHEN lc_may. EV_DAYS = lc_days_31.
          WHEN lc_jul. EV_DAYS = lc_days_31.
          WHEN lc_aug. EV_DAYS = lc_days_31.
          WHEN lc_oct. EV_DAYS = lc_days_31.
          WHEN lc_dec. EV_DAYS = lc_days_31.
          WHEN lc_apr. EV_DAYS = lc_days_30.
          WHEN lc_jun. EV_DAYS = lc_days_30.
          WHEN lc_sep. EV_DAYS = lc_days_30.
          WHEN lc_nov. EV_DAYS = lc_days_30.
          WHEN OTHERS.   CLEAR EV_DAYS.
        ENDCASE.)
      ENDIF.
    data: st_date(2) type c.
    st_date = '01'.
    ind = 0.
    ind = ind + 1.
    here i am passing the low value and high value.
    yto_charsel-chanm = '0CALDAY'.
    yto_charsel-seqno = 1.
    yto_charsel-sign  = 'I'.
    yto_charsel-opt   = 'EQ'.
    yto_charsel-LOW = st_date.
    yto_charsel-chanm = '0CALDAY'.
    yto_charsel-seqno = 1.
    yto_charsel-sign  = 'I'.
    yto_charsel-opt   = 'BT'.
    yto_charsel-high = ev_days.
    INSERT yto_charsel INTO sto_charsel INDEX ind.
    ETO_CHARSEL = sto_charsel.
    lto_value = sto_charsel.
    How can i pass user input value to read this exist ,some where again i have to write code or else??
    This is very urgent can you help me..

    Hi,
    Instead of two perform statements, use single perform.
    PERFORM get_value USING i_area
                              i_variable
                         CHANGING lw_varsel.
    Take the values from lw_varsel-low.
    FORM statement for this perform is as follows.
    DATA: li_varsel TYPE STANDARD TABLE OF upc_ys_api_varsel,
            lv_varsel TYPE REF TO cl_sem_variable.
      FORM get_value USING p_area TYPE upc_y_area
                           p_variable TYPE upc_y_variable
                     CHANGING
                           p_lw_varsel TYPE upc_ys_api_varsel.
        CALL METHOD cl_sem_variable=>get_instance
          EXPORTING
            i_area       = p_area
            i_variable   = p_variable
             I_CREATE     =
          RECEIVING
            rr_variable  = lv_varsel.
           EXCEPTIONS
             NOT_EXISTING = 1
             others       = 2
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
        REFRESH li_varsel.
    ****Getting the Value*********
        CALL METHOD lv_varsel->get_value
          EXPORTING
            i_user     = sy-uname
            i_restrict = 'X'
          RECEIVING
            rto_value  = li_varsel.
        CLEAR : p_lw_varsel.
        READ TABLE li_varsel INTO p_lw_varsel INDEX 1.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
      ENDFORM.                    "get_value
    Try this code.
    Bindu

  • How can I find out the overall time and not only the time of a single clip?

    I have set up two cameras in one room. Both cameras record the same thing from different perspectives at the same time. I have found an interesting scene for video 1 (recorded by camera 1). Now I would like to find the time at which the interesting scene takes place in video 2.
    However, I have not seen any way to get displayed, at what time the scene starts in relation to the total length of the video (e.g: scene starts after 5 minutes from total 10 minutes).
    The indicated time refers only to a part of the clip and not to the overall project, even if a special clip is not selected. Does anyone know, how I can find out the time?

    Go to Settings>iCloud>Storage & Backup.  It will be shown just below the Back Up Now button at the bottom.

  • How can I read mail attachment for making it to the payload?

    Hi everybody,
    in the following my scenario:
    I have an incoming message with attachment by the mail sender adapter using PayloadSwapBean (because of other messages I have to use the bean). I want to send this attachment by using the mail receiver adapter to fix E-mail-address keeping the FromMailAddress, the MailSubject and the FileName
    without the metadata as additional attachment.
    I have found a thread where it is explained how to handle "payload as mail attachment and dynamic filename" by java-mapping. So far so good. My question is: How can I make my attachment to be the payload? How can I read the attachment by java-mapping?
    Thanks for help.
    Reagrds,
    Sebastian Linke

    USe payloadSwapBean for this to swap your payload and attachment
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Rajesh
    Edited by: Rajesh on Feb 5, 2009 5:29 PM

  • I just ordered an iPad 4 32gb from Amazon but sold by a store called iPadShop.  In the customer reviews there were several reports of this store selling used and refurbished iPads as new.  How can i verify mine is new and not used when it arrives.?

    Ok, first time here, so forgive me if Im repeating the question.  I just ordered a NEW iPad 4 32gb from Amazon, but is actually being sold by a seller called "iPadShop". Although this seller got a high approval rating of 4.9 there were several reports of customers receiving used and refurbished iPads but sold as new.  Once I receive mine how can I verify it is new.  Also, even the ones that were new were purchased by this seller and then resold, which shortened the life of the 1 year warranty offered by Apple..?

    If you just ordered it, I suggest you cancel your order as soon as possible. If you can't contact Amazon, call your credit card company and cancel payment on that. Why go through worrying about the ipad you are paying for as new? If it's to save money, then that can be defeated if you get a used or refurbished ipad with a less than full one year warranty. You'll be dealing with the ipad shop's return policy which could mean that once you open it, it's yours, unlike when you buy from Apple you have a full 14 days to return it even if you've opened it.
    I looked at Amazon and did not see a price difference. If cost led you to buy from Amazon, what are you saving?
    I suggest you buy it directly from Apple. If cost is an issue, consider buying a refurbished ipad from the Apple online Refurbished store. I would not buy a refurbished anything from anywhere but the Apple online refurb store.
    The ipad 4 32 gb is $499.00 refurbished - a savings of $100.00 vs. a new one. We bought two ipads last year and one as a gift this year and they have been great!
    All ipads sold in the Apple refurb store come with new front and back covers, a brand new battery, a full one year warranty, and in case it matters, come in a new white Apple box like all ipads do. Earphones and charger are also included. You can also get the new Apple Care +, which insures up to three breakages (damaged glass, water damage, etc.) in two years.
    Hope this helps.

  • HT4098 how can i cancel my zoosk app and not be charge at all

    how can i cancel my zoosk app and nt be chanrge at all?

    If it's an auto-renewing subscription then there are instructions on that page that you posted from on how to manage and cancel them. If you've already paid then, from the app's description page in the store :
    No cancellation of the current subscription is allowed during active subscription period.
    So you can only stop the next payment happening

  • How do I make a photo a jpeg that can be attached to an email and not in the body

    How do I attach photos to an email so that they are an attachment and not in the body of the email?

    Right click on the photo in the email and select Display as Attachment from the contextual menu.  How it ends up is dependent on the email client.  You may have it show up as an attachmen before sending and the receiving end may be set to display it in the body.
    In either case be sure to set Mail to send Windows Friendly Attachments:
    If you compress/zip the file it before adding to the email it will definitely be added as an attachment. But that requires an couple of additonal steps and to assure the zipped file will be Windows friendly you would need to use the free YemuZip application.
    OT

Maybe you are looking for

  • How to load an exteranl html file in a div

    All- Im sure this has been covered but I can't find what I'm looking for. How do I load content from an external html file into a div in Edge? I want my client to have the option of updating the html files so i don't have to edit them in edge The fil

  • Active window

    in my program 2 windows are displayed at once 1 is the menu which is JOptionPane the other is a jtextarea with scrollpane i can view the jtextarea but i cannot access it like scoll for example how do i make that window active when it is opened?

  • Pulling keys on shiny objects - how to implement holdouts?

    I am working on pulling a key in Shake, using the Keylight node. The fg is a close-up of a hand holding a coin, and I am using trackers on the hand to matchmove an inverted rotoshape that goes to the garbage matte input of the Keylight. The idea is t

  • Selecting TOP 20 Products per Catagory

    Hi I'm trying to select the TOP 20 Products per Catagory out of my Star Topology Database if someone would PLEASE be able to help me out. Here is my Query: - SELECT Distinct (SELECT TOP 20 DP.[Description]), DP.Mims_Sub_Cat, SUM(FD.Cost) AS 'Cost' FR

  • How can i make yearly close for my database

    hi all i have a problem in yearly close in brief , i work on a phamacy program .every day i close the day and start a new day and so on till 31-dec-from every year and when i close the last day of year, i can't do it i want to tell that the oracle us