Flowmeter NPN Output

Hi,
Could I ask for some help, I'm getting bogged down in a simple DAQ VI. I am using a flowmeter outputting a series of NPN pulses through the counter line on my USB-6501. I have set the DAQ Assistant within a For Loop that counts the pulses within each iteration but naturally after each iteration the count resets to zero so
my indicator (gauge in this case) appears erratic despite a steady flow through the meter. How would I go about creating a VI that can output a steady reading on
the indicator but still be senstive to changes in flow? Thank you very much for any help.
Attachments:
Flowmeter2.vi ‏49 KB

Evan117 wrote:
Is there a method of acquiring the value after one iteration/reading, keeping this reading until the next is taken which then replaces the previous. So instead of the output showing 0-75-0-100-0-120-0 etc it will show 0-75-100-120, thanks again, very grateful for your help on this.
I suppose, with the code that I shared in previous reply, should work for your experimental application and also it should never come to zero (if you can see the pulse counts on the front panel, the pulse rate is really slow)...
Also I would like to mention a 32 bit counter can count up to (2^32)-1 or 4,294,967,295 before it ro....
Evan117 wrote:
Moderartor1983's solution does not give flow, but a total pulse count.
I'm using the same convesion factor what you were using in the VI that you attached. So you should be able to see both, Pulse counts and Flow.
I am not allergic to Kudos, in fact I love Kudos.
 Make your LabVIEW experience more CONVENIENT.

Similar Messages

  • Es posible recuperar el celular si el ladrón actualizo el ios a la última versión.

    Hola será que alguno me podrá ayudar con una duda que tengo.
    Si se perdió el celular y tenia activado el buscar con Ios 5.0.3 pero no aparece, si quizás el ladrón le instala ios 7 cabe la posibilidad de encontrarlo por el imal o definitivamente no tengo nada que hacer.
    Hello is that one can help me with a question I have. If the phone is lost and had enabled search with Ios 5.0.3 but does not appear if the thief may install ios 7 goes the possibilities to find the imal or definitely have nothing to do.

    If I understand the translation correctly, you are using an open collector NPN output from a flow sensor, and want to count the pulses. In this case, use a pull-up resistor to the +5 volt line from the open collector, and then  connect the junction of the open collector and the resistor to the counter input of your DAQ card. This will allow you to read the output of your sensor as a voltage pulse.
    good luck,
    Dave

  • How to connect Trigger USB-6009 on a flowmeter

    I have a flowmeter with the data:
    sensing principle: hall-effect, non contacting
    output square wave: NPN o.c.
    Voltage supply: 4,5-24 VDC
    output current: 13mA max
    more you can find in the attachement and i use the USB-6009.
    How i have to connect the flowmeter to the trigger (PFI0)?
    Thanks in advance for any help!
    E.Stein
    Attachments:
    flowmeter.pdf ‏17 KB

    Thanks for
    Info!
    I work with
    LabVIEW 8.6 and the configure and programming 
    of
    falling-edge
    events is not the problem.
    The Problem
    is the connection. How to connect the flowmeter to the
    USB-6009? Because the 6009 have no gate and out.

  • Whats types of inputs can be used with DAQ 6527? (PNP or NPN)

    I need to know what types of input device (PNP or NPN) can be used with a DAQ 6527.

    Greetings,
    The digital inputs of the 6527 require TTL signals. As long as your device, whether it be a pnp or npn transistor, outputs a TTL signal, it will be compatible.
    Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • Small project - Freelancer wanted (Netherlands - Brooks flowmeter)

    We are looking for a freelancer (or just someone with some knowledge) for a small labview project for our company;
    PanTerra Geoconsultants B.V.
    Laboratory Services
    Weversbaan 1-3
    2352 BZ, Leiderdorp
    Netherlands
    We are a small company in the oil and gas industry and recently bought a Brooks mass flowmeter. We still have an analogue board from a earlier (failed) project and now want to hook up a pressure transducer (10 V input - 100 mV output) and the Brooks flowmeter (Digital IO - Visa) together and store all data points in a datafile. Nothing special for people who know there way in Labview i think.
    There is a thread somewhere with a reply from "Albert Geven" where he attached some small files which can readout the mass flowmeter by using the HART protocol, but we couldn't get it to work as we have no labview experience what so ever. (Albert if you read this tread, please contact us as i tried to contact you)
    Contact details; p.steenbergen(at)panterra.nl
    Kind regards,
    Peter Steenbergen
    EDIT: If succesfull, maybe more and bigger projects can be the follow up.
    Message Edited by PeterSteenbergen on 07-23-2007 07:01 AM

    hello Panterra,
    Myself Vishal Solanki ,Pune Resident, Labview Developer, Pune University.Embedded,C.C++.,labview .
    I would like to freelance your project,
    please forward details for this labview project for your company and email ID.
    Currently working:Tata Institute of  Fundamental Research,Mumbai.
                              .Homi Bhaha road, Colaba.Mumbai
                              [email protected]
                              wk:  91-22-22782483
                              Res:91-20-24451126
                              Mob:9970679397
    Post: Research Fellow
    : Astronomical satellite Project. Design & development, software tools, program for  Data  acquicistion, graphical  data analysis and  reduction techniques
    (Using Labview 8.0, C, C++).NI DAQ 653X card.NI Hardaware patforms  cRIO Embedded Controller System(910X), Installataion, ConfigurationAnalog/digital Modules and integration with custom Software
    Total work experience : 1.5yrs

  • Labview code for flowmeter sensor

    Hi all
    I am using NI USB 6229 DAQ and Omega FTB-1302 flowmeter sensor.I made the proper wire connection.Now its time to labview coding but i dont know what to do.i am new in labview.Please help
    Best regards

    Look at some of the DAQmx examples in the Help...Find Examples.   Your sensor most likely outputs a 0-5V or a 4-20mA signal.  You can read those signals into Labview using the examples.  You will probably need to apply a scaling factor to get a meaningful value. 

  • How do i wire a sensor to my daq having pulse output

    Hi all
    I am using NI 6229 BNC DAQ and i have a flowmeter which is giving me pulse as output.
    In attachment i am sending the datasheet of sensor.
    How can i wire it to my daq
    Please help?
    Attachments:
    flowmeter.pdf ‏288 KB

    Duplicate - http://forums.ni.com/t5/LabVIEW/how-to-convert-square-waves-to-a-physical-data/m-p/3149985
    There are more than enough threads you have started on the same subject.

  • How will i link flowmeter sensor and labview

    Hello everyone,
    I am new in this forum and alson in labview.I have a flowmeter sensor, I made cable connections bewteen the sensor and DAQ(NI-USB 6229) The question is what am i supposed to do to read the data on sensor.I just want to measure read the flowmeter sensor and dont know how to construct the labview diagram.I searched on net and learned that I have to do something with counters to convert square signal to a grapgh.and also I searched some codes about it but there must be an easy way to do this it ooks too complicated.In attachment I am sending the vi file.
    Can you please help me because I have limited time..
    Thanks in advance.
    Attachments:
    seyfi.vi ‏62 KB

    Why did you attach a VI that writes out an analog output rather than a VI that actually reads in a signal?
    What type of signal is the flowmeter putting out?
    Did you look in LabVIEW help?  There are dozens of examples there for reading different signals using DAQmx.

  • Reading Digital Pulses from a Flowmeter

    I have a flowmeter that puts out 0 to 5 VDC pulses and has a calibration factor of 50.99 pulses per CC. I do not have a counter card, but have a digital input card and an Analog Input card.
    What will be accurate method to read these pulses from the flowmeter?

    The Detect All Triggers.vi is not included, so I cannot tell what it is doing.
    Several things may affect your results.
    1. It appears that you have the DAQ assistant set to sample at 250,000 samples per second and to acquire 100,000 samples. It creates the task, configures the timing, acquires data, stops and clears the task on every iteration of the loop. The only part which needs to be inside the loop is the acquire data part. All the rest should be outside the loop. You can open up the DAQ Assistant and pull the parts out to do this.
    2. The samples you acquire take about 0.4 seconds but you have a 1 second elapsed time test in the loop. It appears that you are only looking at about 40% of the data available because you do not accumulate the data while waiting for the elapsed time.
    3. The Detect All Triggers boolean output which connects to the case structure where Counter is updated only allows Counter to increment once pper iteration of the while loop, maximum, regardless of the number of pulses detected in the dataset. Unless you never get more than one pulse in 400 ms Counter cannot accurately represent the number of pulses produced by the flowmeter.
    4. Get rid of the local variables. The are not needed and often contribute to race conditions.
    5. Learn about dataflow. The "initialization" of the chart history and local variables at the left of the diagram could occur after the while loop has started or even completed. The sequence structure in the True case is probably not needed either. Shift registers are your friend
    Lynn

  • Thermal Flowmeter question?

    I am currently building a thermal Flowmeter for a college project and i have hit a brick wall. My problem is that i have an output voltage coming from my flowmeter which is basically a wheatstone bridge with a thermistor. The temperature is kept at a current temperature and any flow will change the temperature and this is what i will measure. When the temperature changes there is a change in voltage and i have this voltage being fed into labview and being displayed. This voltage is related to the flow of the system and i was wondering is there some Labview program or VI available that will help in this conversion.
    Please and thanks.
    Regards Mgarvey

    It looks as though you have two conversions. The thermistor is a transducer which changes its resistance (non-linearly) with temperature. The bridge is a signal conditioner which converts that resistance to a voltage. Then your data acquisition system converts the voltage into a number.
    What I think you are asking is for the further conversion of that number (representing volts, and indirectly resistance and temperature) to another number representing flow. I doubt you will find a LV program sitting around to do what you want because there are too many variables and complex relationships among them to do the conversion in any sort of universal manner. Things like the package style of the thermistor, whether the flow is laminar or turbulent, etc., play a role.
    The thermistor data sheet should give some data about the thermal transfer rates at various flow rates. If it does not, you will need to make a series of calibration runs. Any system of this type will need to be calibrated after assembly because too many unknowns exist to design them all out.
    Lynn

  • Omega flowmeter sensor daq connection

    Hi all,
    I have Omega FTB 1302 flowmeter sensor and NI 6229 DAQ.Sensor has analog output.I dont know how to connect these sensor and daq.please help
    Solved!
    Go to Solution.

    Ok, i went throught the Create New NI-DAQmx Task > Acquire Signal > Counter Input > Edge Count > then it gives me 2 option.I am sending it as a picture in attachment.
    Does it matter which one i choose?
    I dont understand what you mean the version of DAQmx.I am using NI USB 6229
    Regards
    Attachments:
    pic.png ‏79 KB

  • Total is not getting displayed in the ALV output.

    Hi,
    Total is not getting displayed in the ALV output.
    I m using :REUSE_ALV_BLOCK_LIST_APPEND & REUSE_ALV_BLOCK_LIST_DISPLAY
    Are  there any issues with it as the same settings are working fine with REUSE_ALV_LIST_DISPLAY
    source code:
    DATA: layout TYPE slis_layout_alv,
          IT_eventS  TYPE slis_t_event,
          fcat   TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          rec_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    TYPES: BEGIN OF ty_tab,
          belnr TYPE dberchz-belnr,
          belzart TYPE dberchz-belzart,
          net TYPE dberchz-nettobtr,
          END OF ty_tab.
    DATA: lt_tab TYPE STANDARD TABLE OF ty_tab.
    SELECT belnr belzart nettobtr
      FROM dberchz
      INTO TABLE lt_tab[]
    WHERE belnr eq '000000000001'.
      if sy-subrc ne 0.
      ENDIF.
    *  defining layout
    layout-colwidth_optimize = 'X'.
    layout-def_status = 'X'.
    *defning event
    *event
    *defining field catalog
    fcat-col_pos = 1.
    fcat-fieldname = 'BELNR'.
    fcat-tabname  = 'LT_TAB'.
    APPEND fcat.
    fcat-col_pos = 2.
    fcat-fieldname = 'BELZART'.
    fcat-tabname  = 'LT_TAB'.
    APPEND fcat.
    fcat-col_pos = 3.
    fcat-fieldname = 'NET'.
    fcat-tabname  = 'LT_TAB'.
    fcat-do_sum = 'X'.
    APPEND fcat.
    *calling alv
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
      EXPORTING
        i_callback_program             = 'YZ_PLR'
    *   I_CALLBACK_PF_STATUS_SET       = ' '
    *   I_CALLBACK_USER_COMMAND        = ' '
    *   IT_EXCLUDING                   =
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
        is_layout                        = layout
        it_fieldcat                      = fcat[]
        i_tabname                        = 'LT_TAB'
        it_events                        = IT_EVENTS[]
    *   IT_SORT                          =
    *   I_TEXT                           = ' '
      tables
        t_outtab                         = lt_tab[]
    * EXCEPTIONS
    *   PROGRAM_ERROR                    = 1
    *   MAXIMUM_OF_APPENDS_REACHED       = 2
    *   OTHERS                           = 3
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    Thanks,
    Gaurav

    Hi
    No I don't think, this is my code (based on your code) and it works fine:
    TYPE-POOLS SLIS.
    DATA: BEGIN OF LT_TAB OCCURS 0,
           BELNR LIKE BSEG-BELNR,
           GJAHR LIKE BSEG-GJAHR,
           WRBTR LIKE BSEG-WRBTR,
           WAERS LIKE BKPF-WAERS,
          END OF LT_TAB.
    DATA: LAYOUT     TYPE SLIS_LAYOUT_ALV,
          IT_EVENTS  TYPE SLIS_T_EVENT,
          FCAT       TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          REC_FCAT   TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
    START-OF-SELECTION.
      FCAT-COL_POS       = 1.
      FCAT-FIELDNAME     = 'BELNR'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-REF_FIELDNAME = 'BELNR'.
      FCAT-REF_TABNAME   = 'BSEG'.
      APPEND FCAT.
      FCAT-COL_POS       = 2.
      FCAT-FIELDNAME     = 'GJAHR'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-REF_FIELDNAME = 'GJAHR'.
      FCAT-REF_TABNAME   = 'BSEG'.
      APPEND FCAT.
      FCAT-COL_POS       = 3.
      FCAT-FIELDNAME     = 'WRBTR'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-CFIELDNAME    = 'WAERS'.
      FCAT-REF_FIELDNAME = 'WRBTR'.
      FCAT-REF_TABNAME   = 'BSEG'.
      FCAT-DO_SUM        = 'X'.
      APPEND FCAT.
      FCAT-COL_POS       = 4.
      FCAT-FIELDNAME     = 'WAERS'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-REF_FIELDNAME = 'WAERS'.
      FCAT-REF_TABNAME   = 'BKPF'.
      FCAT-DO_SUM        = SPACE.
      APPEND FCAT.
      SELECT * FROM BSEG INTO CORRESPONDING FIELDS OF TABLE LT_TAB
        WHERE BUKRS = 'MAAB'
          AND BELNR = '0000000001'.
      LT_TAB-WAERS = 'EUR'.
      MODIFY LT_TAB FROM LT_TAB TRANSPORTING WAERS WHERE WAERS = SPACE.
    *CALLING ALV
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          I_CALLBACK_PROGRAM = 'ZPROVAMAX5'.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          IS_LAYOUT   = LAYOUT
          IT_FIELDCAT = FCAT[]
          I_TABNAME   = 'LT_TAB'
          IT_EVENTS   = IT_EVENTS[]
        TABLES
          T_OUTTAB    = LT_TAB[].
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
    I've also inserted a currency field
    Max

  • Help with if statement in cursor and for loop to get output

    I have the following cursor and and want to use if else statement to get the output. The cursor is working fine. What i need help with is how to use and if else statement to only get the folderrsn that have not been updated in the last 30 days. If you look at the talbe below my select statement is showing folderrs 291631 was updated only 4 days ago and folderrsn 322160 was also updated 4 days ago.
    I do not want these two to appear in my result set. So i need to use if else so that my result only shows all folderrsn that havenot been updated in the last 30 days.
    Here is my cursor:
    /*Cursor for Email procedure. It is working Shows userid and the string
    You need to update these folders*/
    DECLARE
    a_user varchar2(200) := null;
    v_assigneduser varchar2(20);
    v_folderrsn varchar2(200);
    v_emailaddress varchar2(60);
    v_subject varchar2(200);
    Cursor c IS
    SELECT assigneduser, vu.emailaddress, f.folderrsn, trunc(f.indate) AS "IN DATE",
    MAX (trunc(fpa.attemptdate)) AS "LAST UPDATE",
    trunc(sysdate) - MAX (trunc(fpa.attemptdate)) AS "DAYS PAST"
    --MAX (TRUNC (fpa.attemptdate)) - TRUNC (f.indate) AS "NUMBER OF DAYS"
    FROM folder f, folderprocess fp, validuser vu, folderprocessattempt fpa
    WHERE f.foldertype = 'HJ'
    AND f.statuscode NOT IN (20, 40)
    AND f.folderrsn = fp.folderrsn
    AND fp.processrsn = fpa.processrsn
    AND vu.userid = fp.assigneduser
    AND vu.statuscode = 1
    GROUP BY assigneduser, vu.emailaddress, f.folderrsn, f.indate
    ORDER BY fp.assigneduser;
    BEGIN
    FOR c1 IN c LOOP
    IF (c1.assigneduser = v_assigneduser) THEN
    dbms_output.put_line(' ' || c1.folderrsn);
    else
    dbms_output.put(c1.assigneduser ||': ' || 'Overdue Folders:You need to update these folders: Folderrsn: '||c1.folderrsn);
    END IF;
    a_user := c1.assigneduser;
    v_assigneduser := c1.assigneduser;
    v_folderrsn := c1.folderrsn;
    v_emailaddress := c1.emailaddress;
    v_subject := 'Subject: Project for';
    END LOOP;
    END;
    The reason I have included the folowing table is that I want you to see the output from the select statement. that way you can help me do the if statement in the above cursor so that the result will look like this:
    emailaddress
    Subject: 'Project for ' || V_email || 'not updated in the last 30 days'
    v_folderrsn
    v_folderrsn
    etc
    [email protected]......
    Subject: 'Project for: ' Jim...'not updated in the last 30 days'
    284087
    292709
    [email protected].....
    Subject: 'Project for: ' Kim...'not updated in the last 30 days'
    185083
    190121
    190132
    190133
    190159
    190237
    284109
    286647
    294631
    322922
    [email protected]....
    Subject: 'Project for: Joe...'not updated in the last 30 days'
    183332
    183336
    [email protected]......
    Subject: 'Project for: Sam...'not updated in the last 30 days'
    183876
    183877
    183879
    183880
    183881
    183882
    183883
    183884
    183886
    183887
    183888
    This table is to shwo you the select statement output. I want to eliminnate the two days that that are less than 30 days since the last update in the last column.
    Assigneduser....Email.........Folderrsn...........indate.............maxattemptdate...days past since last update
    JIM.........      jim@ aol.com.... 284087.............     9/28/2006.......10/5/2006...........690
    JIM.........      jim@ aol.com.... 292709.............     3/20/2007.......3/28/2007............516
    KIM.........      kim@ aol.com.... 185083.............     8/31/2004.......2/9/2006.............     928
    KIM...........kim@ aol.com.... 190121.............     2/9/2006.........2/9/2006.............928
    KIM...........kim@ aol.com.... 190132.............     2/9/2006.........2/9/2006.............928
    KIM...........kim@ aol.com.... 190133.............     2/9/2006.........2/9/2006.............928
    KIM...........kim@ aol.com.... 190159.............     2/13/2006.......2/14/2006............923
    KIM...........kim@ aol.com.... 190237.............     2/23/2006.......2/23/2006............914
    KIM...........kim@ aol.com.... 284109.............     9/28/2006.......9/28/2006............697
    KIM...........kim@ aol.com.... 286647.............     11/7/2006.......12/5/2006............629
    KIM...........kim@ aol.com.... 294631.............     4/2/2007.........3/4/2008.............174
    KIM...........kim@ aol.com.... 322922.............     7/29/2008.......7/29/2008............27
    JOE...........joe@ aol.com.... 183332.............     1/28/2004.......4/23/2004............1585
    JOE...........joe@ aol.com.... 183336.............     1/28/2004.......3/9/2004.............1630
    SAM...........sam@ aol.com....183876.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183877.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183879.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183880.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183881.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183882.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183883.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183884.............3/5/2004.........3/8/2004............     1631
    SAM...........sam@ aol.com....183886.............3/5/2004.........3/8/2004............     1631
    SAM...........sam@ aol.com....183887.............3/5/2004.........3/8/2004............     1631
    SAM...........sam@ aol.com....183888.............3/5/2004.........3/8/2004............     1631
    PAT...........pat@ aol.com.....291630.............2/23/2007.......7/8/2008............     48
    PAT...........pat@ aol.com.....313990.............2/27/2008.......7/28/2008............28
    NED...........ned@ aol.com.....190681.............4/4/2006........8/10/2006............746
    NED...........ned@ aol.com......95467.............6/14/2006.......11/6/2006............658
    NED...........ned@ aol.com......286688.............11/8/2006.......10/3/2007............327
    NED...........ned@ aol.com.....291631.............2/23/2007.......8/21/2008............4
    NED...........ned@ aol.com.....292111.............3/7/2007.........2/26/2008............181
    NED...........ned@ aol.com.....292410.............3/15/2007.......7/22/2008............34
    NED...........ned@ aol.com.....299410.............6/27/2007.......2/27/2008............180
    NED...........ned@ aol.com.....303790.............9/19/2007.......9/19/2007............341
    NED...........ned@ aol.com.....304268.............9/24/2007.......3/3/2008............     175
    NED...........ned@ aol.com.....308228.............12/6/2007.......12/6/2007............263
    NED...........ned@ aol.com.....316689.............3/19/2008.......3/19/2008............159
    NED...........ned@ aol.com.....316789.............3/20/2008.......3/20/2008............158
    NED...........ned@ aol.com.....317528.............3/25/2008.......3/25/2008............153
    NED...........ned@ aol.com.....321476.............6/4/2008.........6/17/2008............69
    NED...........ned@ aol.com.....322160.............7/3/2008.........8/21/2008............4
    MOE...........moe@ aol.com.....184169.............4/5/2004.......12/5/2006............629
    [email protected]/27/2004.......3/8/2004............1631
    How do I incorporate a if else statement in the above cursor so the two days less than 30 days since last update are not returned. I do not want to send email if the project have been updated within the last 30 days.
    Edited by: user4653174 on Aug 25, 2008 2:40 PM

    analytical functions: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions2a.htm#81409
    CASE
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/02_funds.htm#36899
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/04_struc.htm#5997
    Incorporating either of these into your query should assist you in returning the desired results.

  • Comas(,) are not getting displayed in the output while using OO ABAP

    Hi All,
    I am using ABAP objects to display the ALV report in which there is a requirement to output Quantity fields. The Quantity fields are getting displayed without comas ','. Please help me in getting back the comas in the output.
    Eg:
    Below logic is used in my program.
    Class name: cl_salv_form_layout_grid
    Code:
      obj_footer->create_text(
            row    = v_row_cnt
            column = v_col_cnt
            text   = Quantity).
    Expected output:
    39,545.000
    Current Output:
    39545.000
    Thanks in advance for your help.
    Thanks & Regards,
    Siva.

    Hi,
    Please check if the images are in the server and in the /images alias path.
    thanks,
    Sharmila

  • Getting null and 0 outputting to screen or file.

    Hi everyone,
    I am trying to make a phone book program in Java. However the main functions of the phone book (adding and displaying contacts) isn't really working, it is outputting null or 0.
    Here is a class to create an object for family members:
    import java.util.StringTokenizer;
    public class phoneFamily extends phoneNumbers
         protected int home;
         public phoneFamily(String name, String address, int mobile, int business, int home)
              super(name, address, mobile, business);
              this.home = home;
         public phoneFamily(StringTokenizer P)
              super(P);
              while (P.hasMoreTokens()){home = Integer.parseInt(P.nextToken());}
         public void setHome(int home)
              this.home = home;
         public int getHome()
              return home;
         public String toString()
              return "Name: " + name + "\nAddress: " + address + "\nMobile: " + mobile +
                   "\nBusiness: " + business + "\nHome: " + home;
         public String CSV()
              return name + "," + address + "," + mobile + "," + business + "," + home;
    }Now I'm assuming that the problem I am having, where null or 0 is written to the file and screen is caused by the methods that reads a contact, writes them to the file, prints them to the screen. Here are those bits of codes.
    Reads Contact:
    private phoneNumbers ReadContact()
              int x = 0;
              String contact;
              StringTokenizer S;
              while (x < 1 || x > 3)
                   System.out.print("Which type of contact would you like?");
                   System.out.print("\n1)Family\n2)Workers\n3)Friends");
                   x = keyboard.nextInt();
              contact = ReadString("contact name") + "," +
                         ReadString("address") + "," +
                         ReadString("mobile") + "," +
                         ReadString("business") + ",";
              if (x==1)
                   contact+=ReadString("home");
              else if (x==2)
                   contact+=ReadString("email") + "," + ReadString("job title") + "," + ReadString("department");
              else
                   contact+=ReadString("email") + "," + ReadString("home");
              S = new StringTokenizer(contact,",");
              if (x==1)
                   return new phoneFamily(S);
              else if (x==2)
                   return new phoneWorkers(S);
              else
                   return new phoneFriends(S);
    Writes to File
    public void Save() throws IOException
              PrintWriter phoneFile = new PrintWriter(new FileOutputStream(PH_FILE));
              for (int i=0;i<NumOfContacts;i++)
                   String phoneX = phone.CSV();
                   phoneFile.println(phoneX);
              phoneFile.close();
              System.out.println("Contacts have been saved successfully.");
    Prints on Screen
    public void PrintFamily()
              System.out.println("Contacts Stored as FAMILY:");
              System.out.println("");
              //#=7, Name=24, Address=28, Email=24, Mobile=12, Business=12,
              System.out.println(SpaceGen("#",7) + SpaceGen("Name",24) + SpaceGen("Address",28) +
                   SpaceGen("Mobile",12) + SpaceGen("Business",12) + SpaceGen("Home",12));
              //System.out.println(RepChar('=',100));
              for (int i=0;i<NumOfContacts;i++)
                   if (phone[i] instanceof phoneFamily)
                        System.out.print(SpaceGen((new Integer(i+1)).toString(),7));
                        System.out.print(SpaceGen(phone.getName(),24));
                        System.out.print(SpaceGen(phone[i].getAddress(),28));
                        System.out.print(SpaceGen(new Integer(((phoneFamily)phone[i]).getMobile()).toString(),12));
                        System.out.print(SpaceGen(new Integer(((phoneFamily)phone[i]).getBusiness()).toString(),12));
                        System.out.print(SpaceGen(new Integer(((phoneFamily)phone[i]).getHome()).toString(),12));
              //System.out.println(RepChar('=',100));
    For some reason the last thing you enter when adding a contact (example above, home number), gets displayed first (when it should be name) and the rest are null or 0. The file looks something like this (in CSV)
    111222333,null,0,0,0
    The "111222333" is supposed to be the name but like I said last value entered is being put first.
    I've gone over my code several times, with no luck :-(.

    I made a silly mistake in the bit where the details are read. After fixing that everything is running well :-).
    My mistake:
    I had something like:
    while(P.hasMoreTokens()){this.data = P.nextToken();}
    while(P.hasMoreTokens()){this.data2 = P.nextToken();}
    and so on...Obviously had to use "if"s and not "while"s to read the data...
    Thanks for offering a helping hand :-) though!

Maybe you are looking for

  • Having a problem with Add-ons I did not install and now can't uninstall.

    Lately I have experienced problems with re-directing and other issues with Mozilla. I looked in my add-ons list and there are several things there that i did not add manually. (I have been having much trouble with ITunes and noticed a plug in in mozi

  • Why is my iPod touch getting slower and slower

    Please can anyone tell me why my iTouch is getting slower and slower? also why do we have to do so many updates? Can I go back to the original software for my ipod touch? sorry for so many questions but they are related

  • My hp all in one printer will not link to my new router.

    I have a hp all in one printer deskjet 3510 model and i just got a new belkin N600 router and they will not link for wireless printing. The printer just times out when I try to get them to link. I use the push button setup because thats what i have.

  • Condition types for Tax

    Hi,    I have included a Condition Type CTX1 for tax in Canada. It does not show up in my order, even though it has not been marked manual or statistical.    Can you tell me what i need to do so that i get to see the actual value being taxed from my

  • Why Do I have to Re-Install Games After Accessing 2nd Authorized Computer?

    Each time I access a computer other than my home computer, I have to re-install all of my games. Can anyone help?