StatBlockCalc without creating data channels for results

I am creating the min, max and average for a group of channels (3 of them), but I don't want to create/store new data channels - I prefer to use the variables StatMin, StatMax, and StatArithMean.  For example, by using the script

StatClipCopy = 0

StatClipValue = 0

StatFormat = «»

StatResChn = 1

Call StatBlockCalc ("Channel", "2-254", "" [1] / Ah - ' [1] / temperature A1'") '... StatDirec, RowNoStr, ChnNoStr

causes of 3 new channels (min/max/AVG) with 3 items in each channelto created in the data portal.  Rather than create channels, I change the StatResChn = 0, I thought I should store only the values in the variables StatMin, StatMax, and StatArithMean

StatClipCopy = 0

StatClipValue = 0

StatFormat = «»

StatResChn = 0

Call StatBlockCalc ("Channel", "2-254", "" [1] / Ah - ' [1] / temperature A1'") '... StatDirec, RowNoStr, ChnNoStr

However this only seems to work uses a single channel (amperes / hour or temperature A1)

Is it possible to get multiple statistical values (statmin, statmax, etc.) on multiple channels without creating separate portal data channels?

Otmar

Exactly what I was looking for.  I tried and it works fine.  Thank you very much!!!

I have a supplementary question - is there any kind of available documents describing these properties/values such as ResultMin, etc.?

Tags: NI Software

Similar Questions

  • How to create a channel for a PXI-6509

    I'm working on a program to fight the PXI-6509. The only area that I have problems with creates the string by calling the function DAQmxCreateDOChan. I get no errors during the first DAQmxCreateTask, but get an error when you try to create the channel. Exactly how to create the channel name? In MAX, I have named the "DIO" device, do not know if it matters. Any help would be greatly appreciated.

    Hi schelgr,

    Have you had a glance examples DAQmx in finder example found in help > find examples.  In input and output equipment > DAQmx there is a lot of examples that should be able to help with this query.

    Concerning

  • To find the first Summit for data channel

    Hey guys,.

    I need a little help. I wrote a script to process some data. Basically, what the script does is calculate the linear accelerations peak, peak of the angular speeds, HIC values and IF. But there is a problem with my script that I need help. In my script, I use the ChnPeakFind command to find the pics in my chains. This command works fine to find the peak value, but what I want to do is find the FIRST Summit in the data, without worrying whether or not it is a maximum. I always encountered data that varies in which my first pic (impact analysis) may or may not be the highest point in the channel. As you can see in the Graphs.png that I have attached, the ChnPeakFind command found the 2nd Summit (red circle #2) in my chain of angular velocity (ARS resulting). But what I report is the first peak value (red circle #1). I've also attached a screenshot of the section in my code where I calculate the angular velocity. The 'i' in the calculation is just the channel group number. In this case, it is 1. Anyone know how to change the code or have another suggestion how to find the first Summit in a channel without having to stop and go to the tab analysis to manually find the pic?

    Thank you!

    Hello

    If it please see my littl below escript and let me know if this could work for you

    Dim     oChnResultant
    Call Data.Root.Clear)
    Call DataFileLoad ("E:\Customer_Examples\01_Head_Impact\Head Impact Data.tdm", "CT", "Load")
    Set oChnResultant = data. Root.ActiveChannelGroup.Channels.Add ("Result", DataTypeChnFloat64)
    Call ChnXYZAbsValue ("[1] / ARS X","[1] / ARS Y","[1] / ARS Z", oChnResultant)
    "Use the filter twice to get rid of the jig
    Call ChnSavitzkyGolayFilter (oChnResultant, oChnResultant, 1, 12)
    Call ChnSavitzkyGolayFilter (oChnResultant, oChnResultant, 1, 12)
    ' Delete few maxima to the beginninf of the signal.
    Calculate the call ("R = IIF (R)<>
    'Research for first peak.
    Call ChnPeakFind ("[1] / Time axis","[1]/Resultant","/PeakX","/PeakY",1,"Max.Peaks","Time")

  • Write orders for specific data channels in report output via script or generating an automated script...

    In my project, I need to do some calculations, and then get the data plotted in the given report model. I use an automated for this script. My script is doing all the calculations and then he did not select and drag and drop the selected channels on the report model. His recording of the report template is empty.

    I'm fighting to get the specific channels data plotted using the script. I need the selected channels appear on this report template and then get saved.

    Any help will be much appreciated. Thank you

    Hi LaxG,

    If your script creates calculated channels, then you know what you're naming them - why your presentation of the STATE could not contain references to these names channels already?  Is it a dynamic number of conditional curves to the results of the analysis, or perhaps a dynamic number of REPORT sheets?

    You can programmatically change the reference of string of existing curves or the columns of the table with a VBScript DIAdem.  You can also add a curved column or a table with a VBScript DIAdem.  But the more you can save in the TDR file, work less you programming, this is the best place to start.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • DAQmx (Version 9.1) Create Channel for accelerometer will NOT convert m/s ^ 2

    I use DAQmx create channels for accelerometer to get results in the unit (m/s ^ 2)

    It worked until DAQmx Version 8.9.

    Now, I tested it with DAQmxVersion 9.1 and the results are in g (not converted to m/s ^ 2!)

    I use wth .vi DAQmx Create Channel (I-acceleration-accelerometer) entries

    units = m/s ^ 2

    sensitivity units = V/g (there is no sensitivity unit V /(m/s^2) available)

    sensitivity sensitivity value in V/g =

    I have read the data with

    . VI DAQmx reading (analog 2D DBL NChan NSamp)

    In DAQmx<= 8.9="" the="" double="" numbers="" are ="" correct="" converted="" to="">

    but in DAQmx 9.1 not (values are in g and low by 9.81)

    My solution is the following change

    units = g

    sensitivity units = V/g

    sensitivity = sensitivity value in V /(m/s^2)

    Then the double numbers are not converted, but m/s ^ 2.

    And this work in all versions of DAQmx.

    The problem is:

    An older program that uses the settings of the first and tested with DAQmx<=8.9 will="" get="" wrong="" measurement="" result="" with="" daqmx="" 9.1="" and="" no="" error="">

    Peter

    Hi Peter,.

    I'm not in my office at the moment and I can't try it by myself, I have forwarded your request to one of my colleagues, I hope he will contact you soon.

    Sorry for the delay,

    Tobias

    The language of MAX settings depend on the regional settings of your Windows operating system. See the following page:

    http://digital.NI.com/public.nsf/allkb/9893C1767C93D20E86256F49001CDA92

    Kind regards

    Tobias

  • How can I autoindex looping for to create several channels daqmx

    I'm trying to autoindex create a loop FOR containing the DAQmx vi to create AI multi-channel voltage with identical settings, except that I need to apply specific channel names using a constant and specific physical channels using a constant of channel. Wiring of a constant DAQmx of physical channel does not work because the data type is incorrect. Similarly, I don't understand how to use a string constant to autoindex through the channel names is or how to configure the constant string (s) to assign names. Also, when I try to make one of these, I get a tunnel to exit the DAQmx autoindex create channel, rather than a task out. I can achieve my goal using several explicit DAQmx create calls to channel, but for high channel count, it is very time consuming.

    I use LV 8.5.

    I'm hoping to find the code showing how to perform the conversion type, flattening, or what to do.

    Diane has.

    I have an array of clusters.  Each element of this array is a cluster.  The cluster consists of a (scalar) string and input/output (also scalar).

    In addition, my TI attachment extracted.  I think that your file has been LV2009.  If so, you can drag the image from the browser and drop it onto a diagram.

  • Need to create a structure for the target data store?

    Hi Experts,

    If I create a structure for the target data store, and then load the data from source to target works fine. If I make mistakes.

    Is necessary to create a structure for target?

    Please help me...

    Thanks in advance.

    A.Kavya.

    I found the answer. No need to create the structure for target temporary data store. and we need to create the structure for the permanent target data store.

  • How to use powershell to create data warehouses Fibre Channel

    Hello

    Does anyone know how to use powershell to create data warehouses Fibre Channel?

    A text file lists the data warehouse with data store names and sizes (GB) as input:
    DatastoreName1 10
    DatastoreName2 200
    DatastoreName3 10

    Version5 VMFS file system
    Block size of 1 MB

    The script should ignore LUN ID 0 as long as it is not a data store, it's a startup logic unit number.

    The value in $esxname is correct?

    Do you want to see this name when you

    Get-VMHost | Select name

  • Use the stored procedure to create the data model for the bi publisher report

    Hi all

    Can we use stored procedure to create the data model for BI Publisher reports? I did find an example by using the stored procedure to complete the data model in the bi publisher report.

    Thank you

    Virat

    Check out these links

    BI publisher to use the stored procedure
    Re: Stored procedures and dynamic columns
    Re: Is it possible to use stored procedures in BI Publisher GUI?
    Re: PL/SQL stored w / model XML?

    If brand pls help

  • Best practices for creating data warehouses

    I have 10 iSCSI LUN (all on the same device), each 1.8 size to which I want to introduce ESXi to create data warehouses.  Are there all recommended for how I divide these LUNS to the top, or should I just do a giant data store?  Maybe there are performance factors to consider here?

    If I had to do 10 1.8 data stores to I can see a problem on the road when I need to expand a vmdk but cannot because there is not enough free space on the data store, it would be less of a problem if I had a giant data store at first.

    Thank you.

    First of all, it's one of those type questions "how long is a piece of string.

    It depends of course of the VMDK number you're going to be running, the available storage, the type of storage, IO, storage, type of virtual machines etc. etc. etc.,

    Things to consider are for example, you have a storage that deduplication and storage cost a major factor (and so on)
    Of course. . almost always, a cost reduction is equivalent to a drop in performance.

    In any case, a rule very loose, I have (in most cases), among which I size LUN somewhere between 400 and 750 GB and rarely (if ever) have more than 30 VMDK per LUN.

    Almost always, redirect the request to the following resources:

    first of all, the maximum rates of configuration:
    http://www.VMware.com/PDF/vSphere4/R40/vsp_40_config_max.PDF

    http://www.gabesvirtualworld.com/?p=68
    http://SearchVMware.TechTarget.com/Tip/0, 289483, sid179_gci1350469, 00.html
    http://communities.VMware.com/thread/104211
    http://communities.VMware.com/thread/238199
    http://www.yellow-bricks.com/2009/06/23/vmfslun-size/

    (although Post-andre above covers most of them)

  • How to create a function for the function date two

    Hai All

    How can we create a function for the date function two and to return the number of hours between two dates

    For example

    1 January 2010 0815' - '01-jan-2010 1715' and I need to calculate the time between two dates

    How can I create a procedure

    Thanks I advance

    Srikkanth.M

    What have you tried?

    Here is an example (untested):

    CREATE OR REPLACE FUNCTION RETURN_HOURS
    (
            pDateStart      IN DATE
    ,       pDateEnd        IN DATE
    )
    RETURN NUMBER
    DETERMINISTIC
    AS
    BEGIN
            RETURN (pDateEnd - pDateStart) * 24;
    END RETURN_HOURS;
    
  • Fiscal year / Trim, for the occasion created Date?

    Is there a way to query users for the year and the quarter that will then filter the creation Date in the historic opportunity or sales milestone?

    Thank you!

    You can convert a value of year or quarter according to a formula of column Date created:

    YEAR (possibility." Created Date')
    Quarter_of_year (possibility." Created Date')

    You can then create guests from filter on these columns. Note that this is calendar year, not fiscal year. If you calendar and fiscal quarters differ, you may need to perform a few additional calculations to convert - or just make sure your guests are labeled accurately as "calendar year".

    If you use real-time reporting, there is a dimension "Opening Date" which includes fields of exercise pre-calculated.

    -Louis

  • Create a channel by combining smaller values of the other two channels

    Hello, I have two channels (v + and Volts1 +) and I am trying to create another channel (Volts_Small) that will have smaller values of the two channels. I need to compare each data point in the two channels and add little value to the new channel.

    THS is what I tried without success:

    I have Sun
    Dim: Set Group = Data.Root.ChannelGroups ("200_68")
    Dim Chn1: Set Chn1 = Group.Channels ("v +")
    Dim Chn2: Set Chn2 = Group.Channels ("Volts1 +")
    Dim Chn3: Set Chn3 = Group.Channels ("Volts_Small")

    For i = 1 to Chn1.Size
    If (Chn1.Values (i) > Chn2.Values (i)) then
    Chn3.values (i) = Chn2.Values (i)
    On the other
    Chn3.values (i) = Chn1.Values (i)
    End If
    Next

    I would give much help appreciate with this! Thank you.

    Cedric

    EDIT:

    Nevermind, I solved this problem:

    I have Sun
    Dim: Set Group = Data.Root.ChannelGroups ("200_68")
    Dim Chn1: Set Chn1 = Group.Channels ("v +")
    Dim Chn2: Set Chn2 = Group.Channels ("Volts1 +")
    Dim Chn3: Set Chn3 = Group.Channels ("Volts_Small")

    For i = 1 to 900000
    If (Chn1.Values (i) > Chn2.Values (i)) then
    Chn3.values (i) = Chn2.Values (i)
    On the other
    Chn3.values (i) = Chn1.Values (i)
    End If
    Next

    Hi Cedric,

    I strongly advise to use the calculator channel and the MinV() function that is already integrated to tiara.  You have less code that runs much faster, especially for the largest data sets.

    Dim: Set Group = Data.Root.ChannelGroups ("200_68")
    Dim Chn1: Set Chn1 = Group.Channels ("v +")
    Dim Chn2: Set Chn2 = Group.Channels ("Volts1 +")
    Dim Chn3: Set Chn3 = Group.Channels ("Volts_Small")
    Var Variables: Variables = Array ("Ch1", "Ch2", "Ch3")
    Dim channels: channels = Array (Chn1, Chn2, Chn3)
    Call to calculate ("Ch3 = MinV (Ch1, Ch2)", Variables, channels)

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • DAQmx create virtual channel (VI) error-229771 reports

    Hello

    When in a project that I am working to get error-229771 code whenever I try to run 'DAQmx create Virtual Channel (VI)' this does not happen when I create a vi not in a project.  The problem is that this project is very large and it if poster impossible to recreate. It's several hundred vi. Y at - it something that I missed in the forums and support that could explain this. I created the VI below in the project and outside the project. In the project, the error occurs outside the project, it runs without any problems.

    Message:

    229771 error occurred at .vi:1780003 DAQmx create channel (I-voltage-Basic)

    Possible reasons:

    Internal software error has occurred in the MIG software. Please contact the support of National Instruments.

    Task name: _unnamedTask

    Any help would be appreciated.  Thank you, Matt.

    LabVIEW version: 15.052(32bit)

    OR Max Version: 15.0.f0

    NEITHER DAQmx Verson: 15

    OS: windows 7 service pack 1

    PC: Intel Core i7-2600, 8 GB of ram

    Data Aquistion: NEITHER DAQ USB-6289 calibrated June 2015

    This code snippet returns the name of the first channel of analog input on the device first, and then tries to create a task for her. The bed of the canal, then close the task.

    Error message

    Hi Matthew,

    Thank you for following up after you fix your problem.  I'm glad to hear that you do not encounter this problem more.

    Here is an article that lists the reasons for this error (although unfortunately, I cannot pin down which is the exact cause in this case).

    http://digital.NI.com/public.nsf/allkb/03123D0E8A36C48E862577A4005B6BAA

    NOTE: This article specifies that the error occurs at startup task VI DAQmx.  You do not use the start task VI, so the task starts automatically in the DAQmx Read function.  The error will occur instead in the DAQmx virtual channel create, that you encounter in your error.

    I hope this gives you an idea about what could have gone wrong, and I'm sorry he is no more details.

    Good programming!

  • How to count the amount of toys that every boy has (without creating any table)?

    For example, there are 3 boys (boy, a boy b, boy c) and 2 types of toys (A toy, toy B).

    Insert the following records:

    (boy a, A toy)

    (boy a toy B)

    (boy a toy B)

    (boy b, a toy)

    So I expect to get the following statistics:


    A toy
    Toy B
    Boy one12
    b Boy10
    c boy00

    Notice 1: The list of boys and the list of the toy_kind are determined, that is, I can generate the phrase sql in c#, using the two lists.

    Notice 2: I wish that all the columns appeared, even if a column is made up of 0. If a row of 0 as 'boy c' is displayed or not has no importance.

    How to do this WITHOUT creating tables? Use sql or a procedure are OK. I had to use the result in c# to add the table to Word.

    Thank you!

    These data are stored in a table already?

    You say "without creating table", but we don't know what that makes reference.

    You are looking for something like this?

    SQL > with boys like (select "boy a ' as a boy all the double union")
    2 Select 'b boy' union double all the
    3 select 'boy c' double
    4               )
    5, boys_toys as (select ' boy a "boy,"A toy"as any double union toy")
    6 select 'boy a', 'toy B' from dual union all
    7 if he would choose "a boy ', 'toy B' dual Union all"
    8 select 'boy b', 'A Toy' go two
    9                    )
    10-
    11 - the end of test data
    12-
    13. Select boys.boy
    14, sum (case when toy = 'toy A' then 1 else 0 end) as the toyA
    15, sum (case when toy = ' toy B' then 1 else 0 ") as toyB
    boys 16
    17 left outer join (boys_toys.boy = boys.boy) boys_toys
    Group 18 by boys.boy
    19 order by 1
    20.
    TOYA TOYB BOY
    ----- ---------- ----------
    boy's 1 2
    Boy b 1 0
    Boy c 0 0

    3 selected lines.

Maybe you are looking for