Average Object in Lookout

Hello folks, I need an assistance.
Can I run average object (Lookout 6.0.2) for calculate the average of a variable that changes its value 20 times per second, during 10 to 20 seconds?
In other words: The result of the average calculation of a variable that changes its value 20 times per second will be a valid number if the average object is reset every 20 seconds? There will be 400 values (samples?) as source for average calculation.
The object help wasn't too explicit.
Any comment will be appreciated.

The internal timer of this object is hard-coded. The frequency is 1hz......
So, the max sample rate is 1hz, which means it can only sample and calculate 1 data update per second, even if you connect a 20hz pulse to "Enable".
Sorry.
Ryan Shi
National Instruments

Similar Messages

  • How do you install Spreadsheet object in lookout?

    I was wondering if anyone can help me, i am very new to Lookout. I want to use spreadsheet objects in Lookout. I have been given some examples to show how to use it, but i am unsure where these files should be stored. i have stored them in the lookout directory, but nothing happened, do i need to compile the files?
    any help or direction would be much appreciated.

    Please don't edit the codes in .lks file. Everything is done in Lookout software, not the notepad!
    The attached pdf is a good manual to learn some basic programming.
    If you want to create a new pot, goto menu bar, Object->Create... select Pot, and then do the configuration.
    If you want to add or change the data field of the spreadsheet object, follow the attached instructions. Select (new field), right click on the yellow bar, choose the pot or object you want to log, then click Save.
    Ryan Shi
    National Instruments
    Attachments:
    350379e.pdf ‏570 KB
    untitled1.JPG ‏109 KB
    untitled2.JPG ‏48 KB

  • Fieldpoint object in Lookout

    Hello
    I have set up my FP1601 with a AI card and a TC card in MAX and saved the configuration to the .iak file. When I create an FieldPoint object in Lookout there is this option to import the iak file. If i choose not to import the file, but rather configure all the seperate channels on the cards in Lookout, which settings are the present ones? And if the FieldPoint for some reasen looses power, will the settings in Lookout be applied again?

    Ok. Thanks for the answer
    But do I really have to configure the IO cards at all in MAX or Fieldpoint explorer? What I`m a little confused about is the relationship between the Lookout settings and the configuration in the IO cards.
    Lets take this ex.: I put up a new FP1601 with 5 TC cards. Configure the FP module with the right IP etc. I dont do anything with the TC cards... Then I Start Lookout and configure each TC card in there.
    Will that work or do I have to first configure the TC cards in MAX\FP explorer?

  • Commands for RUN Object in Lookout

    I would like to know all the DOS commands that can be executed by an RUN object in Lookout 5.1.Is there a document for the syntax of these commands?

    Ok i have things running sort of.
    I have a datasocket that reads a local text file.
    I have a Run object that gets a file from the network and copies it to the local hard drive (as the text file above)
    The run command is linked to a Radio button array (of 10), so that when a radio button is clicked, the run command
    executes.
    The problem i am having is that after the file is transferred to the local hard drive, i now want to display the information in
    the text file using the datasocket.
    If i set the Connect & Update members of the datasocket object to the radio button object i get the run command but
    not the display of the updated data from the text file.
    I have added a pushbutton that can be pushed after the file transfer occurs which is linked to the Connect & Update members
    of the datasocket object.  This works fine but i would really like to eliminate the need to click the pushbutton after the radio
    button has been clicked. 
    Is there some way that allows the display of the datasocket object using just the radio buttons?
    Is there some way to build in a pause of the display to ensure that the data transfer has been completed?
    Also, is there some way that the run command can be triggered by the radio buttons but also every minute if
    no radio button has been clicked.  (the data on the server may have been updated for the selected radio button)
    frank

  • Communication problem with Modbus object in Lookout 3.8

    What means the error code 06 besides the following alarm message NO COMMUNICATION RESPONSE FROM MODBUS SECONDARY ? Lookout runtime-express version 3.8 build 7

    Greetings,
    The alarm message "No Communication response from modbus secondary" means that communication cannot be established between the modbus object and your external device. Verify that you have set up the serial port settings properly and that you have configured the modbus object. Verify that your external device is functioning properly and connected to the PC. If all of these things are ok, you may need to increase the receive gap of the serial port settings and the receive timeout of the modbus object. There is a tutorial on the web which outlines the troubleshooting steps for communication in Lookout.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/033CD84BAC7E1E7586256A3300756284?opendocument
    I hope this information is helpful. Have a good day!
    Patrick R.

  • X'ed out Objects in Lookout 5.0

    Recently our FP-1601 module took a blackout. Since then one of our Lookout 5.0 screens has red X'ed out objects. I verified that I can ping the FP-1601 module from the Lookout computer and can also view it as running in the FP-Explorer. Is it possible Lookout 5.0 is confused and needs to be reset to see the objects? How can I verify that I can poll the objects? Thanks in advance.

    The "nonexistent, access denied" message would imply (I am guessing here) that the Process is unreachable.
    For you to find out if you're using the OPCFieldPoint or the native FieldPoint, you would have to go into Edit mode, and then in the Object Explorer from the Object menu. Here, you should see your FP Objects. Right-click them and go into properties to find out what kind of an object they are.
    You can also find this info' from the LKS file. Look for the "new" keyword in there.
    Connection browser, again under the Object menu in Edit mode, lets you see the relationships between various objects and processes. Looks like you're having problems because not all of your processes are running. El
    iminate this possibility by making sure all your processes are running. We shall then see if you still get the red Xs.
    Khalid

  • How to use Logger object in Lookout 5.0

    I am now trying to log data using Logger object. I use Switch1 for activating LogContinuously mode and Switch2  for breaking logging process. If I turn off Switch1, the logging process stops, its ok. My problem is if Switch1 is still on and I turn off Switch2, the logging process is still running. I seems different from what I have read from Help file. Anyone has the solution for it?Please give me an advice! Thanks a lot. Its better if someone post an example about using Logger object here for reference.
    Regards, 

    I think the behaviour you described is correct. If you turn on switch2, the logging process will stop, even when switch1 is on. If you turn off switch2, the process will be running.
    Here is an example of logger object.
    http://zone.ni.com/devzone/cda/epd/p/id/3816
    you can change the "log break" button into a switch, which can better show you how it works.
    Ryan Shi
    National Instruments

  • Copying Lookout Objects

    Is there any way to copy Lookout "Expression" and "Average" objects using
    the keyboard shortcuts (i.e. "CTL-C") or with the mouse?. I can
    successfully copy objects such as "Gauges" and "Pots" and Lookout creates a
    new object with a number appended to the end of the original name. If I try
    to do the same thing with the expression it just creates a linked copy of
    the same object. I have many expressions that are practically identical
    except for the name and the source and I have to do "Object >> Create..."
    every time! This is REALLY slowing down my development.
    Geoffrey B. Klotz
    GK Associates, Inc.
    TEL: (805) 523-8700
    FAX: (805) 523-1216
    EMAIL: [email protected]

    Thanks for the suggestions. Editing the .lks file seems to work great. I
    figured out that when you are finished editing the source that you have to
    recompile manually. Maybe on a future release of Lookout, NI can include a
    text editor for manipulating the source code similar to some of the HTML
    editors like MS FrontPage.
    One other suggestion is adding a feature to the "alignment" commands that
    will make all highlighted display boxes equal in dimension. The most time
    consuming part of creating a user panel right now is manually manipulating
    each gauge object with the mouse and trying to match the size of previously
    created display objects.
    All in all, a nice product. Thanks again.
    Geoffrey B. Klotz
    GK Associates, Inc.
    TEL: (805) 523-8700
    FAX: (805) 523-1216
    EMAIL: [email protected]
    Guy McDonnell wrote in message
    news:[email protected]..
    > One approach, though it can be perilous, is to manualy edit the .lks file
    > with a basic text editor that does not force hidden character such as eol.
    > This approach allows the copy paste option you reference. I usually use
    the
    > editor with my C compiler but notepad will also work.
    >
    >
    > "newsgroups.ni.com" wrote in message
    > news:[email protected]..
    > > Is there any way to copy Lookout "Expression" and "Average" objects
    using
    > > the keyboard shortcuts (i.e. "CTL-C") or with the mouse?. I can
    > > successfully copy objects such as "Gauges" and "Pots" and Lookout
    creates
    > a
    > > new object with a number appended to the end of the original name. If I
    > try
    > > to do the same thing with the expression it just creates a linked copy
    of
    > > the same object. I have many expressions that are practically identical
    > > except for the name and the source and I have to do "Object >>
    Create..."
    > > every time! This is REALLY slowing down my development.
    > >
    > > --
    > > Geoffrey B. Klotz
    > > GK Associates, Inc.
    > > TEL: (805) 523-8700
    > > FAX: (805) 523-1216
    > > EMAIL: [email protected]
    > >
    > >
    > >
    >
    >

  • Acrobat 7.0 ActiveX Object example code in Lookout

    Help folks!
    I'm trying to set up the Adobe Acrobat 7.0 Browser Document ActiveX Object under Lookout 6.0 but it doesn't work. My goal is to display a pdf document by lookout.
    What should I set by Property Browser...?
    What should I set by Property Pages...?
    What should I set by Value Property:?
    What means the term "Property" in this kind of objects?
    Is there an example code I can get?
    Any suggestion will be appreciated.
    Thanx.

    I don't know of a FREE ActiveX control for MS Word.  However, if you have MS Word installed on the same computer, you can use MS Internet Explorer ActiveX Control to view Word documents. 
    But before we do that, we have to make sure that MS Word is set to open documents in the "same window."  This basically opens a DOC file in Internet Explorer itself rather than launching a new MS Word window and then opening the DOC file in it.  To set this (if it isn't already):
    1. Launch Windows Explorer. 
    2. From the Tools menu, select "Folder Options"
    3. Click the "File Types" tab. 
    4. From the listing of "Registered File Types," select "Microsoft Word Document," (you can get to it fast by typing "DOC"); click Advanced. 
    5. Click the "Browse in same window" check box -- this toggles whether a Word document is launched outside of Internet Explorer. 
    6. Click OK to close the dialog boxes. 
    NOTE:  if the DOC still opens in a new MS Word window (and not IE), go back and toggle the check-box. 
    In Lookout, use the Lookout Webbrowser control (which is nothing but MS IE Control).  Specify the file path to the DOC file as the URL.  I am attaching a process file which does this using a TextEntry object. 
    Hope this helps.
    -Khalid
    PS:  not sure when this changed but we can't directly attach .L4P files to a post.. what a pain!  Please take a minute to add your weight to this request: 
    http://forums.ni.com/ni/board/message?board.id=130​&message.id=2142
    Message Edited by Khalid on 12-28-2005 02:55 PM
    Attachments:
    doc_process.zip ‏4 KB

  • Display archived citadel data mixed with "live" Lookout machine data using Hypertrend object?

    Maybe a new feature request item?
    It would be really nice if you could use a Hypertrend object in Lookout to plot historical data from an archived Citadel database.  So this would be a feature where you could connect an additional (or many) additional databases as machine processes in (read only mode of course).  This would allow mixing display objects (trends) of running processes along with display objects (trends) of archived "processes" in the same Hypertrend display when using Hypertrend in the historical mode.
    The Lookout Hypertrend object is awesome and it is about time you folks gave Lookout some attention again to exploit its power and coolness.
    Thanks and Happy New Year!!

    The hypertrend use Citadel service to transfer the data between computer, while the live data is different, so your problem is probably in networking setting or firewall.
    If you have firewall on either computer, follow these KBs.
    http://digital.ni.com/public.nsf/allkb/0D7B86F4B4D19A5E86256F9A006EECB1?OpenDocument
    http://digital.ni.com/public.nsf/websearch/8AE45BBFA1D7025E862570F200642FD8?OpenDocument
    Lookout client software doesn't install MAX.exe, but if you have MAX.exe on the client computer, you can use MAX to check the connection. In MAX, try to view the remote trace.
    You can also use the NI Hypertrend ActiveX object to check the connection. Create a client process with just a NI Hypertrend ActiveX object. Move it to client computer. Edit its properties and add a trace, then try to view the remote trace. See the attached screenshot. If the Citadel communication has problem, you will not see the database or the trace.
    The ActiveX object doesn't fix the problem, but can tell you whether the remote connection is good or not.
    Message Edited by Ryan.S on 11-14-2008 03:49 AM
    Ryan Shi
    National Instruments
    Attachments:
    1.JPG ‏71 KB

  • Lookout (fieldpoint object) does not list any connection to fp aio 600 (outputs)

    The fieldpoint object in lookout reports that all channels in FP AIO 600 are inputs.
    To fix this go to "edit data member configuration" and select the "output" channels of the AIO 600 and change the "member" prefix to "AO". Save and you now have access (can connect to) the channels in "edit connections"

    Hi Rahul,
    this question does not seem to be related to SQL and PL/SQL forum.
    I guess you could use {forum:id=64} or {forum:id=61} forums.
    Regards.
    Al

  • Citadel ODBC Queries using Lookout SQLexec

    AAAARRRRRGGGGGHHHHH!!!!!!!
    Why is it so difficult to do queries with SQLexec? I have been trying for
    days to get even ONE query to work on the simplest task. I have studied
    every Lookout Help file on the subject MANY times and even looked through
    some examples that others have provided in this newsgroup. Nothing works!
    I always get a "syntax error" or else "unexpected character ". It seems
    that every database or version of Excel is expecting the quotes in different
    places.
    I have been programming nearly my whole life in many different languages,
    but this task seems much more complicated that it should be. Does anyone
    else have this problem with Lookout and SQLexec?
    All I am trying to do is query Citadel for one-minute averages of my data
    source. I would like to prompt the user somehow to enter the desired date
    and time range and then send the query results to a data table or an Excel
    spreadsheet. I have been successful in using the MS Query with Excel 97 so
    I can see all of my traces and I know they are in there. Since I have had
    no luck using SQLexec so far, I have created a workaround for now that
    generates the 1 minute averages using the "Average" object and then log the
    results to a "csv" file using the "Spreadsheet" object. This has some
    drawbacks since I need to perform some further averaging of my data and
    present it back to the user in a Lookout panel (15 minute and 1 hour
    averages with data validity calculations).
    If anyone has some REAL examples of a working SQLexec function that will do
    this task I would be very grateful for some help. I am using Lookout
    version 4.01.51 (the latest I believe). Below is an example of a basic
    query that I am trying to do (this was copy/pasted from a functioning MS
    Query table in Excel 97).
    SELECT Traces."LocalTime", Traces."Avg{\\geoff\project1\Exp_1}",
    Traces."Avg{\\geoff\project1\Exp_2}"
    FROM Traces Traces
    WHERE (Traces."LocalTime">"9/13/00 13:00")
    AND (Traces."Interval"="01:00")
    Thanks in advance,
    Geoffrey B. Klotz
    GK Associates, Inc.
    TEL: (805) 523-8700
    FAX: (805) 523-1216
    EMAIL: [email protected]

    SQL implemented by Citadel ODBC driver is subset of the SQL standard and is
    optimized for Citadel performance. The major distinctions are:
    1) Database has always two tables TRACES and POINTS (see online help for
    more info)
    2) You can only perform queries (SELECT statement)
    3) You can only search based on LocalTime, UTCTime and Interval columns
    (WHERE clause)
    A Lookout query can include special commands that perform data transforms to
    manipulate and analyze historical data. The AVG transform is one of them.
    Avg{Datapoint} returns the TIME WEIGHTED average for Datapoint across a time
    range. Time weighted means that the Avg transforms takes into consideration
    duration of each value. For example if the Pot1 value across time range is
    for the first 25% of the time 0 and for the rest 75% it is 100 then the
    average is going to be 25 not 50.
    Here is an example how to use the Avg transform in an SQL statement:
    SELECT "AVG{\\comp\process1\Pot1}", LocalTime
    FROM Traces
    WHERE LocalTime > '9/19/2000 6:00:00'
    AND LocalTime <= '9/19/2000 18:00:00'
    AND Interval = '12:00:00'
    This SELECT statement returns one row that represents average value of the
    \\comp\process1\Pot1 datapoint across 12 hours time range starting at 6:00AM
    and its Timestamp. There is a few important things to notice:
    1) The statements are not case sensitive
    2) AVG uses curve brackets {} to enclose the datapoint name:
    {\\comp\process1\Pot1}
    3) The AVG expression is in double quotes: "AVG{\\comp\process1\Pot1}"
    4) Time constants can be either in double or single quotes (refer to on-line
    help for details on formats)
    5) The LocalTime in the select list items (1st row) is optional and in this
    case returns the end of the time range ('9/19/2000 18:00:00'). In other
    words the average is always "timestamped" with the end of the time range.
    The time range across which the average is taken is determined by the
    starting LocalTime (LocalTime > '9/19/2000 6:00:00') and the Interval, it is
    NOT DETERMINED BY THE ENDING LocalTime (LocalTime <= '9/19/2000 18:00:00').
    The AVG transform always try to calculate sequence of averages starting from
    the LocalTime, all of them across the specified Interval (12:00). For
    example:
    1) '9/19/2000 6:00:00' - '9/19/2000 18:00:00' (timestamped as '9/19/2000
    18:00:00')
    2) '9/19/2000 18:00:00' - '9/20/2000 6:00:00' (timestamped as '9/20/2000
    6:00:00')
    3) average: '9/20/2000 6:00:00' - '9/20/2000 18:00:00' (timestamped as
    '9/20/2000 18:00:00')
    This is calculated internally, but only rows determined by the ending
    LocalTime are returned. In this case it was specified as LocalTime <=
    '9/20/2000 18:00:01', so only the first average is returned. The following
    example would return the first TWO rows:
    SELECT "AVG{\\comp\process1\Pot1}", LocalTime
    FROM Traces
    WHERE LocalTime > '9/19/2000 6:00:00'
    AND LocalTime <= '9/20/2000 6:00:00' <-- this rows has changed
    AND Interval = '12:00:00'
    Guy McDonnell
    "newsgroups.ni.com" wrote in message
    news:[email protected]...
    > AAAARRRRRGGGGGHHHHH!!!!!!!
    >
    > Why is it so difficult to do queries with SQLexec? I have been trying for
    > days to get even ONE query to work on the simplest task. I have studied
    > every Lookout Help file on the subject MANY times and even looked through
    > some examples that others have provided in this newsgroup. Nothing works!
    > I always get a "syntax error" or else "unexpected character ". It seems
    > that every database or version of Excel is expecting the quotes in
    different
    > places.
    >
    > I have been programming nearly my whole life in many different languages,
    > but this task seems much more complicated that it should be. Does anyone
    > else have this problem with Lookout and SQLexec?
    >
    > All I am trying to do is query Citadel for one-minute averages of my data
    > source. I would like to prompt the user somehow to enter the desired date
    > and time range and then send the query results to a data table or an Excel
    > spreadsheet. I have been successful in using the MS Query with Excel 97
    so
    > I can see all of my traces and I know they are in there. Since I have had
    > no luck using SQLexec so far, I have created a workaround for now that
    > generates the 1 minute averages using the "Average" object and then log
    the
    > results to a "csv" file using the "Spreadsheet" object. This has some
    > drawbacks since I need to perform some further averaging of my data and
    > present it back to the user in a Lookout panel (15 minute and 1 hour
    > averages with data validity calculations).
    >
    > If anyone has some REAL examples of a working SQLexec function that will
    do
    > this task I would be very grateful for some help. I am using Lookout
    > version 4.01.51 (the latest I believe). Below is an example of a basic
    > query that I am trying to do (this was copy/pasted from a functioning MS
    > Query table in Excel 97).
    >
    > SELECT Traces."LocalTime", Traces."Avg{\\geoff\project1\Exp_1}",
    > Traces."Avg{\\geoff\project1\Exp_2}"
    > FROM Traces Traces
    > WHERE (Traces."LocalTime">"9/13/00 13:00")
    > AND (Traces."Interval"="01:00")
    >
    > Thanks in advance,
    > --
    > Geoffrey B. Klotz
    > GK Associates, Inc.
    > TEL: (805) 523-8700
    > FAX: (805) 523-1216
    > EMAIL: [email protected]
    >
    >
    >

  • In a Mailer object, how do I include a username and password for authentica​tion or credential​s on my smtp server?

    My trace file is pasted below. 
    [[NEW SEND]]
    SMTP>220-elasmtp-junco.atl.sa.earthlink.net ESMTP Exim 4.34 #1 Wed, 27 Feb 2008 16:51:07 -0500
    220-NO UCE.  EarthLink does not authorize the use of its computers or network
    220 equipment to accept, transmit, or distribute unsolicited e-mail.
    LK>HELO basinenglt
    SMTP>250 elasmtp-junco.atl.sa.earthlink.net Hello basinenglt [65.60.113.243]
    LK>MAIL FROM:<[email protected]>
    SMTP>250 OK
    LK>RCPT TO:<[email protected]>
    SMTP>550 Please configure your mail client to use authentication.
    In visual basic, I'm able to send an email with this code:
            Dim Email As New System.Net.Mail.MailMessage()
            Email.From = New System.Net.Mail.MailAddress("[email protected]​m")
            Email.To.Add("[email protected]")
            Email.Subject = "This is a test"
            Email.Body = "Body of email goes here"
            Email.IsBodyHtml = True
            Dim x As New System.Net.Mail.SmtpClient("smtpauth.earthlink.net​")
            Dim net As New System.Net.NetworkCredential("[email protected]​et", "supersecretpassword")
            x.Credentials = net
            x.Port = 587
            x.Send(Email)
    Is there some way to use this code in Lookout or is there some Mailer datamember I don't know about that I can setup to provide the right credentials?  I'm at a loss for what to do and how to do it.  If I can't figure it out, I'll have to use the Run object in Lookout to call a program that I'll have to make in VB that'll send out an email.  In that case, I've got to install .Net on 60 computers in the field and then I'll have to make a series of exe files for each alarm condition and associate individual Run objects with each.  Sheesh.  Well, anything you all can do to help would really be appreciated.  Thanks for taking the time to answer me.
    Steve

    Lookout mailer object doesn't support authentication. We are considering adding this feature, but not yet.
    Another option for you is to use other Mail Server. There are some free Mail Server softwares which don't do authentication.
    Ryan Shi
    National Instruments

  • Lookout modbus plus performanc​e

    I'm running 9 Schneider Electric PLCs Compact 265 connected to Lookout v5 PC via modbus plus. I have cyclic stalls of transport, each 50 secs or so, which last for 3 or even more seconds. I've tried all the settings there are on modbus object in Lookout, but with no success, only different graph shapes in performance monitor (you can have a look at graphs at the end of mail). Even single PLC on network (with others shut down) freezes the communication for more then second, which is unacceptable since I need to refresh my data at least each 350ms.
    I've considered 3 things:
    1. PLC underperforms
    I've checked scan time in PLCs, they're all running smooth with scan time under 90ms. This time doesn't increase even during modbus peaks, I've reduced watchdog to 100ms and it never triggered. Looks to me like plc has more than enough time for modbus, so plc should not be the problem.
    2. PC underperforms
    Hardly a problem, PC running under 5% most of the time, never goes over 50% no matter what I do.
    3. modbus underperforms
    Statistics show no garbled or timed out frames on any plc, so wiring should be fine.
    PLC uses 130 registers of memory (type 4 – holding register). With all registers back to back (no slack between registers), this should mean that all the memory can be transferred in 2 frames. This also means total data load per sec should be
    9 plcs * 3 refreshes * 130 reg * 2 bytes = 7030 bytes.
    Even with overhead included, this is so little compared to theoretical 120 kbytes modbus plus should be able to perform, so nothing else for me to do but scratch my head.
    I've checked Lookout source for any loops which could initiate some read or write at 50sec cycle, but there's nothing even close anywhere in program.
    Am I missing something? Can anyone tell me why modbus freezes my system?
    Bye everyone,
    Darko
    SVETLOST TEATAR

    Hello,
    It’s been a while since I last checked the forum, but in the meanwhile I’ve resolve the problem.
    The solution lies in modbus.ini and the way modbus object communicates with modbus secondary, an issue not properly covered by help and ni.com. Unless defined otherwise in modbus.ini, modbus object will refresh all of the configured memory points in your plc each 50 or so polls (I can’t remember which is the default value). This can be a problem if the number of memory points is large, because it congests modbus and creates performance stalls.
    You can read more about this here: Lookout Driver Objects - Custom INI File Settings (http://zone.ni.com/devzone/conceptd.nsf/webmain/E​54F75254BBE772786256CFC00700B5F).
    Thanks everybody for joining in.
    Bye,
    Darko

  • Converting Object Arrat to double array

    public double average(Object ... object)
              double avg=0;
              int count=1;
              for (double d: object)
                   count++;
                    avg +=d;
              return (avg/count);
         }I wanted this code to get compiled with out making much changes(I do not want to change the parameter type of the method).I am gonna pass a double array as an argument to this method.And how could I test that the argument is a double array.

    Pravin
    I don't know if this is exactly what you want, but it is as close as I could make it to your post, and it compiles.    public double average(Object ... objects) {
            double avg = 0;
            int count = 1;
            for (Object d : objects) {
                count++;
                try {
                    avg += (Double) d;
                } catch (java.lang.ClassCastException e) {
                    System.out.println(e.toString());
                    System.out.println("Element No." + count +
                            "is not a valid double.");
            return (avg / count);
        }Please elaborate if you need something more.
    db

Maybe you are looking for

  • Hyperion Planning 11.1.1.3: Add New User

    1:      When trying to refresh security filters using the workspace interface I get the following error(s) AND the essbase security file gets messed up (including, the native admin id). I then need to login with an alternate id that does not have acc

  • Compiling a package without disturbing the load process

    Hi, I need to compile a package, with the changes, in the database without stopping the load process that is using this package. Please let me know if any one has any ideas. Thanks

  • Combine floor() and ceiling() functions

    I need to combine the functionality provided by both floor() and ceiling() functions using normal pl/sql function or proc. and without using any built-in functions in it.

  • Does an mac air need any internet/security protection from viruses etc. ?

    I was wondering does the mac need any interent security such as kaspersky or norton installed for protection? or is there already protection from viruses etc on the software installed? Thanks

  • Object Group Vs Object Libraries

    Hi , I have not used Object Groups and Object Libraries extensively....and am trying to understand them Having read the form builder help ,I am still not clear with the following. My questions are as follows 1)When should I be giving preference to Ob