Formula to find the value of the channel

Hi all

Support: Dat file containing the value of time and acceleration. Now, there are only two Channels.  Channel 1 is time. Channel 2's acceleration.

Step 1: Create more than two channels. Channel 3 and channel 4

Step 2: go to the analysis and acceleration channel research where its value is reached xxxxxxxx 1.

Step 3: where it has reached 1. XXXXXXXX in the process of accelerating from this point in the channel 3 and 4, paste all the values STD. STD values in the attached excel file.

How can I do this? What is the formula or the script to do this?

Thanks in advance.

Hi Rash.patel,

You didn't yet tell me where to find the Excel file, so I assumed it would be in the same folder as the VBScript script.  I used the DIAdem Excel Import Wizard to create an *.stp file that can be passed as parameter in the ExcelImport() command to load these curves 2 envelopes by program.  I also added a file dialog box, then you can select the *. DAT to deal with file.

I think that's

Brad Turpin

Tiara Product Support Engineer
National Instruments

Tags: NI Software

Similar Questions

  • Find the channel number

    Hi guys/girls,

    I want to be able to find a number (a number) in a text string, I want ultimately do is crop the number off the chain to simply meet with a numeric value, the only problem is the string could be any length and the number starts not necessarily at any time from the last character

    I have elements on the stage named 'image0', 'textfield2', 'button500' etc, as you can see the prefix before the number is not fixed length, so I could not use substr and define an index, and because the number could be any number I could not put the index as a certain value before the end of the string. (IE it can return '500' or 'ld2' or "ge0" in the examples given before)

    I was looking for how to use IndexOf, but I don't really know how to make sure that there any number and non-specific

    can someone help me?

    Thank you

    To do this is using regular expressions.  In the example below, the string str has everything that is not a retired number.

    var str:String = "button500";
    var regex: RegExp = \D/g; matches anything that is not a digit
    var numStr:String = str.replace (regex, "");
    trace (numStr);

  • How can we find formula function in the formula of the payroll

    Guys,

    Concern about the functionality of oracle is very extensive, especially in the payroll process, for most functions are integrated to avoid the user to create a custom code, but it is not fully covered business requirement. That's why we need to create our custom function for our coverage/validate business needs and for that, we record this function in the formula function, which is the best way to add any condition in the form of payroll by calling it. Now my requirement is that, to find the formula name where this function has been used.

    We will assume that any user is created 'X' formula with this feature and referred to in the way of the pay formula we find the name formula everywhere where this function has been called.


    Please suggestion

    That is a good question. The quick formula text is stored as a data type LONG, which is now a kind of stale data. You can write a utility function from PL/SQL to convert the text to a VARCHAR2 and is seeking, but has two problems:

    (1) it assumes that you are allowed to create a function that is not something that you'll probably on a production database
    (2) it'll barf for any formula superior to 32760 bytes

    You can also use the to_lob function to copy the contents of ff_formulas_f into a new table (with a CLOB data type) and then create an Oracle text index to quickly find the CLOB. But once again, which means that you have write access.

    If you are patient you can also run this awful piece of SQL:

    SELECT ff.formula_name
    ft.formula_type_name
    src.text source_plsql
    OF ff_formulas_f ff
    ff_formula_types ft
    ff_functions fff
    all_source CBC
    WHERE ff.business_group_id IS NOT NULL
    AND ff.formula_type_id = ft.formula_type_id
    AND src.name = 'FFP ' | TO_CHAR (FF.formula_id) | '_' || TO_CHAR (ff.effective_start_date, 'DDMMYYYY')
    AND src.type = 'PACKAGE BODY'
    AND lower (text) like '% "| Lower (FFF. Definition) | '%'
    AND trunc (sysdate) BETWEEN
    FF.effective_start_date AND ff.effective_end_date
    AND higher (nvl (fff.alias_name, fff.name)) = upper ('XXC_MY_FFFUNC');

    (replace "XXC_MY_FFFUNC" with the name of the function Fast formula you want to find). Do not expect to be fast. That it does not search the PLSQL generated rather than the text of the source formula. This search only defined by the client Fast formula (those whose value business_group_id).

  • 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")

  • chnFind - to find the value of chnnel

    Hi all

    According to DIadem help, SMC determines first index specifies the channel line, the second index specifies the channel by the channel name or the number of the channel.

    for example: ChnFind ("Ch (2) > 300", 250) line worth > 300 250 searches and gives the line number in the first column. Assume that answer is 4225 4225 online sense we find chnvalue > 300 in channel 2.

    But if I want to recover the value of column 4 (instead of 1st column) in the result according to the 2nd channel condition, which command, I can use?

    For more details,

    I enclose a dat file and an incomplete script.

    All the details I mentioned in the script only as comments.

    Hello

    Well, you already now the command: his coronary disease or Chdx (faster).

    Here, I have your script:

    Option Explicit  ' force explicit declaration of all variables in a script.
    Dim Row, FilePath
    Dim intMyResult

    Call Data.Root.Clear

    Call DataFileLoad (AutoActPath & "CHEST of C100225-1. "DAT", "DAT', 'Load') '... DataFilename, FileImportFilter, ImportAction

    "differentiate these two channels.
    Call ChnDifferentiate("[1]/000000000000TI00","[1]/000000000000DS0D","/DifferentiatedX","/DifferentiatedY") '... XW, Y, E, E

    ' Search for what is the value of differentiated Y channel at 300 mm in channel 2.
    intMyResult = ChnFind ("Ch (" ' C100225-1 CHEST/000000000000DS0D "'") > 300', 250 ")

    Call MsgBox (ChDx(intMyResult,4))

    When you run this code, you get the value of Channel 4 online 6225. This works if you want to get the same line (obviously )

    Hope that helps, RMathews

  • How to find the time between two channels of entry in the data acquisition card or pci 6036

    Hello

    I read a lot-related posts on the simultaneous measurement of two input voltage of similar channels in map data acquisition. I know that the best material is "simultaneous measurments of the Series DAQ cards" but I only pci data acquisition card 6036 and I try to understand what is the time between the reading of the two channels . This period is always constant? (must it rely on a voltage (amplitude, frequency, waveform..). I send the sine wave (s) to the two channels and read the values of V, if they read the same value, the difference should always be zero but I get-0,002 to 0.002 Volt difference (I must find a way to convert it in time). A screenshot of my VI is attached. I wonder how I can accurately measure the time delay between the channel.

    I am open to any suggestion, my final goal to read exactly two channels at the same time ((ou connaître le délai exact donc je peux correspondre les données correspondantes étant donné le temps de retard))

    Hi spinup,

    better you should post your question in the forum of LabVIEW, LabWindows/CVI is used

    Good luck.

  • How can I find the Menu of available channels

    Although having APT4 for a few months, I have finally connected. But although I got once on my PC, I can't find the LIST of all available TV channels? Where is he?

    Also, is there a separate Menu for free live TV channels?

    Assuming that what you mean by "chains" is the available apps, this will depend on your location, but you should find this useful: on the App Store on your Apple TV (4th generation) - Apple Support

  • Caveat "the formula uses a Boolean value instead of a number" would dismiss

    Hello!

    I do a "Calculator" to get estimates of price for the projects, according to which processes the customer wants.

    Rates for each process are added in another table, and I use the list of control buttons to enable or disable the various processes.

    Here is an example of a formula:

    D3 determines if the part of the project modeling is performed, so the price will be or will not be calculated.

    If D3 is true, the result is multiplied by 1, give me a positive amount. If false, the result will be multiplied by 0, 0, so nothing to add to the final cost he send me some.

    Same for B4 in the same formula.

    This formula is repeated all over the chart, with minor changes to add more complex options, but it's all the same.

    Everything works fine, but I got those blue triangles warning me of "the formula uses a Boolean value instead of the number". That's fine with me, I like the use of the Boolean types, and they make my formulas work well in my calculator. How can I reject the blue triangles?

    They are a little annoying. And they do not really correspond with the general style of my calculator.

    I saw someone talking other types of formulas, with SEARCH and yews, but who is really complicated and I don't know how to do... Especially for a simple calculator

    Is there a way to simply do not display warnings?

    Using the version 3.6.2 on a MacBook Pro, OSX El Capitan 10.11.5

    Thank you!

    Hi Sinshassan,

    I don't know a way to escape your blue flags except to make a formula which is consistent with the expected numbers. It is not difficult.

    My formula D2 = yew (AND(D1,B2), C2, 0)

    The IF statement tests the two D1 AND B2. If they are true, then it indicates the value of C2 your carbon Modeling::High Poly #1, if one or both are false (unchecked) then 0 is displayed.

    Give it a try.

    Quinn

  • Creation of formula help: how to find the percentage of increase or decrease

    Hello community,

    I am trying to create a formula that will find the percentage increase or decrease in sales from one year to another. For example, cell B1 is my sales for 2014. C1 represents my sales for 2015. How can I write the formula in D1 to find the percentage increase or decrease of sales between 2014 and 2015?

    Thanks in advance!

    You can try this:

    The formula in D1: = C1/B1−1

    Then set the Data Format of D1 to percentage:

    SG

  • Calculations using values in the channels

    Is there a way to make simple calculations (addition/subtraction) of single values selected channels?   New user DIAdem, so I'm not at all familiar with the scripts.  Looks like it should be a simple command, and I'm right on it.

    Thank you

    Shannon

    Hello Shannon,.

    It seems to me that you do not want to add two or more 'cells' (to use the jargon of Excel) together.

    DIAdem manages data such as channels, not individual cells. If the approach to add two cells in DIAdem works like this:

    The variable SMC allows you to access a 'cell' in a channel, using the following sequence parameters:

    ChD (X, Y)

    where X is the line number of the table of channel, and Y is the name of the channel (column) or the number of the cell you want to access.

    For example, this expression here calculates the result of adding the value of line 2 of the channel called "Temperature_1" and the channel called "Temperature_2" of the example data set that takes over at the start of tiara. In this case, R1 is a real internal DIAdem variable that stores a single value.

    R1 = SEC (2, Ch("[4]/Temperature_1")) + SMC (2, Ch("[4]/Temperature_2"))

    The calculation above can be entered in the "Calculator" which is available in MODE of DIAdem and DIAdem analysis in the toolbar.

    I hope it's useful, please let us know if you have additional questions.

    Otmar

  • read the independent values in a channel

    Hello

    I want to read the value of a chanel.

    I guess that every chanel's store as an array with an index and a value.

    I would like to read a value of a chanel with its index number, then do some calculations, and then write to it.

    For example:

    Chanel 1:
    index value
    1           1
    2           1
    3           1
    4           2
    5           1
    6           1

    start index = 0
    value > 1?
    If no control of the following
    If so do something

    Do you have a sample script to read a unique value in a chanel?

    Kind regards

    Frédéric MANUAL

    OK, so it should work

    Dim oChn, K, value
    "Go to the channel you are interested in.
    Set oChn = data. GetChannel ("Time")

    ' loop through all the values
    For K = 1 To oChn.Size
    Value = oChn (K)
    If (value > 1) then
    "do something
    MsgBox ("value WG 1")
    End If
    Next

  • How do you find the name of the Group and channel your TDMS file name?

    How do you find the name of the Group and channel your TDMS file name?

    Nevermind, I've used the file viewer.

  • Find the average value of a buffer

    Hello

    In my VI Panel, I have a digital control, a button and a digital display.

    When the user, enter a number in numerical order and press the button, the digital display should show the average value of all the past 5 values entered in the digital control, for example:

    1st entry: 10-online average = 10 (as sum = 10)

    2nd type: 0-online average = 5 (as sum = 10 + 0 = 10)

    3rd enter: 5-online average = 5 (you get the idea...)

    4 enter: 1-average online = 4

    5 enter: 14-online medium = 6

    6 enter: 2-online average = 4.4 (sum = 0 + 5 + 1 + 14 + 2 = 22, because the 1st value is thrown)

    How to write this VI?

    Thank you!!

    You can also use arrays to hold the data in a registry change and find the average value of the last five items.

    Good luck

  • How to find the value closest in the table?

    Hi all

    I just want to find the value closest from the string table. That I joined herer as an image.

    Now, if I want to find the value of 350 of the string table and that's not in the table in the output array there should be more close 350 display value...

    Thank you for the support

    Vinal Gandhi

    Hi G Vinal,

    something like the joint comes to my mind.

    It may be useful

    Mike

  • Look for the logic find the value of m and c of this equation y = mx + c.

    Hello

    I have 4 points for example = 3.38276, 0.375866 xi

    Yi = 3.37749, 0.281924

    using this tip, I want to find the value of m and c.

    You please suggest me some logic to solve this equation using labview programming.

    I tried with one solution, but in this case I do not have the correct answer. Here as an attachment, there is vi help I tried to solve my equation, but in this case the value that never got as a response it is dissatisfied with the equation, means if I replace the value of m and c eqation then it must be L.H.S = R.H.S, but I don't have the right solution.

    You please guide me.

    Thank you very much.

    Why do you think that the results are incorrect? I put your numbers in your code and the result on a XY Chart Wescott, I then bunk which with more than 20 values with a value ranging from 0.6 to 3.2 x and use factors calculated in your code to generate values of Y. The two overlap almost exactly...

    Mike...

    BTW: There is a linear adjustment integrated into LV VI

Maybe you are looking for