Average 14 thermistor values in c on linux

i have a pci-6031e on a mandrake 10.1 machine with nidaqmx drivers. i
want to average data from 14 channels in C. what's the best way to
accomplish this?
Thanks,
Edward

You might want to contact the DAQ forum, this forum is for LabVIEW development.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • How can I use a webcam to feed live values (or even better, an average of said values over time) into a subVI?

    The values will be read from a digital measurement device, so there shouldn't be much of a problem in recognizing the fonts, I hope.
    Ideally, it'd function like this: Webcam is trained on device, and without interaction from the user, labview processes the current data every 30 seconds, converts it to a string, and averages 30-second values over a period of 5 minutes. The average is then given to a VI that would normally poll the user for a value every 5 minutes. I'm trying to close the loop on a control system, and think this is the best way to do it.

    If I understand this correctly, you would like to take a picture of a screen every 30 seconds and read some text on that screen. You can do that using the NI Vision Development Module's Optical Character Recognition function palette. This will allow you to create a set of images of each character that you expect to read. You can then train the software to assositate an image of that character with the actual digital character. In this way, the software will be able to read the text. You can read more about this concept in the NI Vision Concepts Help 2013 manual.
    Is there any other way to transfer the information from the first computer to the second computer other than using a camera to read the text off a screen? That seems like a strange way to transfer data, but it's possible that you don't have access to the code on the first computer and you can only access it from the front panel. Is that the situation that you are in?
    Take care,
    Jeremy P.
    Applications Engineer
    National Instruments

  • Exception Aggregation (Average of all values 0)  -  Non cumulative KF

    Hi Experts,
    I am using the Exception Aggregation (Average of all values <> 0) on a Non Cumulative KF. Most of the times i am not getting the desired results but some times it gives me the desired result.
    my doubt is whether we can use  Exception Aggregation on Non cumulatives?????
    Thanks for any help
    boobal

    Hi,
    Non-cumulative valuesare those key figures that are measured in relation to a period in time; that is to say they cannot be meaningfully cumulated over time. Non-cumulative values are summarized over time using so-called exception aggregation.
    Example:stock quantities/-values, number of employees, account balances, etc.
    Please check this document:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d61b1e95-0501-0010-dfbe-a03970712ef1
    Hope this helps.
    Regards,
    Mona
    Edited by: Mona Kapur on Jan 17, 2008 10:45 AM

  • How I manually calculate the Average Valuated Stock Value like in MC.3

    In the R/3 transaction MC.3  the  "Average Valuated Stock Value" help window shows a formula to calculate it.
    AVSV = ( begining stock value + n stock value at months end ) / ( n + 1 )
    What is the meaning of the N?. Where is this value come from.?
    I'd really appreciate any help.

    Hi
    N is the number of periods. The calculation with an example is as follows:
    Op. Stock Value on 1.12.2006: 40
    Cl. Stock Value on 31.12.2006: 80
    Op. Stock Value on 1.1.2007: 80
    Cl. Stock Value on 31.1.2007: 120
    The above can be viewed in MB5B
    In MC.3, if you choose the period 12.2006 to 01.2007, the calculations are as follows:
    AVSV for 12.2006: {40+(1*80)}/2 = 60  [N = 1 period]
    AVSV for 01.2007: {80+(1*120)}/2 = 100  [N = 1 Period]
    Total AVSV for 12.2006 to 01.2007: {40+(2*120)}/3 = 93.33 [N = 2 Periods]
    Hope this clarifies.
    Thanks

  • RE:calculated Average Valuated Stock Value

    Hi ALL,
    how to calculated Average Valuated Stock Value  logic (The sum of the daily stock value for the time frame of the analysis divided by the number of days) please guide me.
    regards,
    ravi

    Please ...........................
    guide me.......................
    how to created formula for this logic
    (The sum of the daily stock value for the time frame of the analysis divided by the number of days)
    Regards,
    ravi

  • Calculate Results As Average of Detailed Values That Are Not Zero... with hiearchies doesn't work

    Hi all,
    For the key figures, the option of "Calculate Results As Average of Detailed Values That Are Not Zero, Null, or Error" works fine for characteristics drilldown without hierarchies, but with hierarchies it simply doesn't work; instead of calculate the overall result as average, the system calculates it as SUM. It works like the option "Nothing Defined" where the results provided by the analytic engine are displayed. No local calculation takes place.
    How can I do to display the overall result of hierarchical drilldown of a characteristic as an average?
    Many thanks in advance!
    Abraham

    It is usually best to just keep it as simple as possible.  What do you think the code in the OR Array Elements does?  I imagine it is just a simple FOR loop with a variable to keep the latest OR.  So I would do what GerdW just showed with the FOR loop.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Average of all values between (first above and last above) a threshold value.

    Currently I have a VI which I programmed a year or more ago, which grabs any value out of a data set that is above a threshold value. This is used for capturing the average of all values over a threshold when there is one peak of values that go above that threshold. However, when there are two or more peaks that go above this threshold, only the values above that value are averaged, so the end result is the average of two or more averages.
    What I need is for every value that occurs after the threshold is reached and before the threshold is dropped below for the last time. Picturing a set of data whose graph looks like the letter "M," for example with the threshold being halfway up the M, I want to show the average of (the first hump, plus the dip below the humps, plus the last hump) but what I'm getting now is the average of (the first hump, plus the last hump). What I get now cuts out the data between the two peaks.
    Any assistance would of course be appreciated.
    Solved!
    Go to Solution.
    Attachments:
    AveAboveThresholdAll.vi ‏15 KB

    Actually I think that Tims solution has a little difference to the stated problem that both limits should be above a threshold value. Since the second array is inverted the rounding should be not towards +Infinity but towards -Infinity in order to really only go up to the last element that is above the threshold. The code as made by Tim takes one sample more, which could or couldn't have any significance.
    Nevermind, I take that back.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • No correct exception when using "average of all values"

    Hello all,
    I have created a query with different duration days as key figures. The result row is displayed for the main characteristic and in the key figures I have select "Average of all values".
    The avergae value is calculated correctly in the result row at the end, but the exception is just take sums of the days into consideration, not the average values. Some values are red because there sum would be red, but just the avergae is displayed.
    Is there a way how I can apply exceptions also on avergae values?
    Th eBW release is 3.5.
    Any help would be great.
    Best regards,
    Stefan from Munich/Germany

    Instead of creating a Formula Key Figure, create a Calculated Key Figure .
    In that from the Enhance option select Exception Aggregation as Average of all values.
    Now use this Calculated Key figure in  your query and for creating exception.

  • Exception aggregation 'Average of all values'

    Hi,
    What is Exception aggregation 'Average of all values' wrt a reference characteristic. an how do I use it in Bex?
    -Simmi

    hi,
    it determines how the key figure is aggregated in the BEx in relation to the exception characteristic, in your case it's averaged for all values.
    another case sample maybe you need to report stock, which should not accumulated, but the last value, then you can choose 'last value', with reference chacarteristic to certain time characteristic.
    you may also use it for 'calculated key figure' in BEx to get average value.
    http://help.sap.com/saphelp_nw04s/helpdata/en/82/f2dc37f0f12313e10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/6f/56853c08c7aa11e10000000a11405a/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/9d/76563cc368b60fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/e0173f5ff48443e10000000a114084/content.htm

  • BEx calculation for 'average sales order value'

    Hi all,
    Can someone tell me how to use BEx query function to compute the <b>'average sales order values' by month</b>? Thank you.
    J.

    Hi John,
         You've two characteristics in the rows, right? Calendar Month and Order Type.
    Try the option Calculate Result as Average of All Values and
    Calculate Single Value as Nothing Defined? See if this works.
    Or else in Modelling,
    In the Info Object Create/Change screen, you can specify an Exception Aggregation based on
    <b>Aggregate Reference Characteristic</b> Calendar Month.
    I think there's an option for Average Values in the <b>Exception Aggregation</b> tab.
    For more Information,
    http://help.sap.com/saphelp_nw04/helpdata/en/75/21054da1392649948e5b94e4fc4bce/content.htm
    Hope this helps.
    Regards
    Hari
    Message was edited by: Hari Krishnan K

  • Exception Aggregation (Average) displaying incorrect values after EHP1 Upgr

    Hi All,
    Exception Aggregation (Average) displaying incorrect values after EHP1 Upgrade in our BW system
    We have recently upgraded the system to EHP1. After the upgrade some of the queries where we are using Exception Aggregation (Average) started giving the incorrect values.
    Eg. We are displaying three Key Figures KF1, KF2 and KF3 (=KF1 %A KF2) against Store Hierarchy. In KF3 we are using Exception Aggregation (Average) on a characteristic 0PLANT.
    There are 14 rows against 0PLANT and out of those 2 rows are blank for KF1, so for KF3. When it is calculating the average of these key figures its dividing the total value by 12 instead of 14 which is not correct in our case. Earlier it was dividing the total by 14.       
    So in this case 'Average' and "Average of all values <>0" are behaving the same way.
    Kindly provide some inputs on this.
    Best Regards,
    Sachin Verma
    +44 7506740018

    Hi,
    Thanks for viewing the thread. And happy to let you know that the issue was resolved.
    The solution was:
    Two formulas (local) were created, one including the formula variable with replacement path for ZD1, with exception aggregation on ZD1, and the other with formula variable with replacement path for ZD2, with exception aggregation on ZD2. Both these formulas are hidden.
    Another formula (local) was created for u2018time takenu2019 = formula with ZD1 u2013 formula with ZD2, with exception aggregation total on u2018ZDOCNOu2019.
    For the second instance, when one requires exception aggregation on records that has multiple values for keys, a nesting of formulas can be done displaying only the ones required.
    For e.g. a formula with exception aggregation on say characteristic u2018item no.u2019 can be hidden, and included in another formula for exception aggregation on characteristic u2018document no.u2019. This is a typical case where one can achieve calculation before aggregation for a calculated key figure, formula or a counter.
    Hope it might help someone, and saves time and effort for a similar issue posted.
    Also would like to keep this thread open for exploring better solutions.   
    Regards,
    Vijay

  • Has anyone any experience with a USB-6008 and reading a thermistor value

    Labview 8.0 connected to a USB-6008
    I am using 'BC Components' NTC Thermistor. I used the express VI to create a Vex input and entered the A,B,& C values from the datasheet. The thermistor is the 10K version and I placed a 10K resistor in series with it. I wired it as is shown in the connection diagram, and applied 2.5 volts to it.
    I get completly the wrong temperature readings out of it! I called the NI help line in the UK and the engineer confirmed that I had done everything correctly but couldn't understand why it didn't work.
    Any thoughts?
    Steve Lawson

    I had a similar problem, had it working at one point then screwed it up.
    try this:
    Attachments:
    Temp Pressure EXpress.vi ‏92 KB

  • Question about the vi : Average Last Five Values

    Hello,
    I found the vi to make the average of the last five values here : https://decibel.ni.com/content/docs/DOC-4013
    But i think that it is not really the average of the last five values...
    The problem in my opinion is that the shift register on the left should contain only 4 and not 5 elements.
    Can someone check it ?
    Thanks to answer

    That looks like the correct fix to me.  The previous version was definitely wrong.
    I wanted to add a comment to that article in the community zone, but couldn't find a way to do it event though I was logged in.
    There is a comment that the results are in valid for the first 4 iterations.  The way to fix that is to divide by the number of iteration that have occurred using the In range and coerce function to limit it to 5.
    Attachments:
    Example_VI_BD.png ‏15 KB

  • Trust and Key Store config values? - OBPM 10g (Linux) With Websphere6 (AIX)

    HI,
    We installed OBPM 10gR3 on Linux (10.3.2 for Websphere) with Websphere 6.1.0.21 on AIX,
    When we try to save values in following section we are getting an error:
    Engines > Edit Engine bpmengine > JMX Engine Management Configuration
    Attributes are:
    Host / Port / Security Enabled / Principal / Credentials / Trust store / Trust store password / Key store / Key store password
    Can anybody please help what values to put for following parameters under JMX Engine Management Configuration with respect to Websphere Application Sever 6.1.0.21:
    Trust store: ?
    Trust store password: ?
    Key store: ?
    Key store password: ?
    Please help us in case anybody came across this.
    Thanks and Regards
    SH

    Well it seems that my trouble all started when I began using the 'printable = yes' option for shares. Since I removed that the troubles seem to have left me.
    Does anyone know why that is listed as on option in smb.conf here:
    # A publicly accessible directory, but read only, except for people in
    # the "staff" group
    ;[public]
    ; comment = Public Stuff
    ; path = /home/samba
    ; public = yes
    ; writable = yes
    ; printable = no
    ; write list = @staff
    As well as in a few other examples if it doesn't work? I seen the example and assumed that option was needed to print from those shared directories.
    Also, it seems that the comma is not needed between the 'valid users' names.
    Also, I guess it wasn't Windows XP's fault either but rather my own ignorance. I like the idea of blaming Windows better though.....
    I hope this servers to help others to aviod my mistakes.

  • Average KW's value

    Hello BW experts ,
    We have a requirement as below ,
    The report should run for Last 12 months excluding the current month only.
    It means the user will enter 012.2006 then data for 012.2005 to 011.2006 should be displayed in the report.
    I have done this by means of infosets in query  over the Fiscal Year / period.
    Now I want to calculate the Average value of KW 's over a period of 12 months.
    We have Fiscal Year/Period and KW's per month.
    <b>Fiscal Year /Period</b>  012.2005 ,  001.2006 ,002.2006 ......011.2006 ( 12 months )
    <b>KW's </b>                     100          , 200 ,        400................900        ( 12 values )
    Formula for 
    Avg KW's   
    per month            = ( 100 + 200 400.....+900 ) /12 = for period 012.2005 to 011.2006 each month this value should be same .
    So,
    Avg Kw's
    per month           =      Say 123 ( for 012.2005 )  ,
                                     123 ( for 001.2006 ),123,123......till 12 month.
    How to get this figure ?
    Thanks in Advance ,
    Amol Kulkarni .

    Soory Venkat ,
    It's offsets.
    Please reply how to get Average .
    I have created Offsets for Fiscal Year Period in Rows from 0 to -11 .
    Then I drag drop the key figure KW's in the Columns.
    I create a structrue and then for Each Fiscal Year /period 0 to -11 offsets ,
    I drag drop the same key figure KW's.
    So I have 12 selections for KWs for each month.
    Then I created another formula as Average KW's and then added these 12 selections and divide by 12.
    But when I check the result I get following reply ,
    suppose I have
    100 , 200 ,  300 , 400 , 500 .....KWs value over the last 12 months ,
    then the <b>Avg KWs</b> gives me the result as 100/12 for 011.2005 , 200/12 for 001.2006 , 300/12 for 003.2006 ...till 12 months.
    It seems the formula created by me is dividing each KW's by 12 and not making the sum of KW's first and then dividing by 12.
    Amol.

Maybe you are looking for

  • What is the difference between these two programs?

    Hello, I disassembled the following java class file. public class Test1 {     public static final void test1 (byte[] ba, int v) {      ba[0] = (byte)v; }and got the following output; Compiled from "Test1.java" public class Test1 extends java.lang.Obj

  • Minus Sign in front

    Hello all, I have a requirement where in I need to bring the minus sign in front for the amount field in ALV Grid Display. I used the FM CLOI_PUT_SIGN_IN_FRONT, but after I pass back the values, the sign gets set at the end. Moreover, I cannot create

  • Excel file upload in ODI 11g

    Hi, I am trying to define new data server in topology manager in order to upload excel file, and when i test the connection i got this error:The specified DSN contains an architecture mismatch between the Driver and Application. I did all the steps r

  • Manual bank statement processing

    Dear friends, I am trying to upload bank statements through transaction FF67. I thought of using a BAPI instead of BDC. While searching in SDN i got to know about BAPI_BANK_STATEMENT_EXEC. I am trying to make use of it, but it is not working properly

  • What happened? I installed 10.4 on my G4 1.33 iBook 10.4too old- problems!

    Hello, Recently I purchased a 1.33 iBook on ebay for my wife. Upon receiving it I swapped out the 40GB with a Seagate 100GB. I then installed OS 10.4 (not the iBook grey discs, but the retail version which was 10.4.2) Well this caused problems, no mo