Calculate max, min of simulate signal

I'm using Ampitude and Level Measurements to calculate max min and peak to peak of simulate signal but these values ever change.
why this application return all of value of function??
how can I resolve this problem
Thank you

Ocramm,
the point is in the way you configure the "Simulate Signal" Express VI. If you remove the while loop in your example, you will see that it will generate only the first part of a sine wave. And not an entire cycle. This is because you have configured it to generate 100 points at 1000 Samples/s. Putting this in a while loop generates 100 points continuously, describing a sine wave but the processing is always performed on the 100 points generated in the same iteration.
Remove the While loop, and you will see what I mean.
If you open up the Simulate Signal Express VI, modify the number of samples generated and put in 1000, so that it will generate 1 entire cycle. The measurements will be as expected.
AlessioD
National Instruments
(btw: si sono italiano)
Attachments:
TutorialGenAnalyzeDisp%201[1].vi ‏235 KB

Similar Messages

  • Max - min date difference

    Hello Guys, how are you.
    I'm facing a problem whan I try to get the difference between the max and min date of a KF.
    Mi requirement is like this:
    Min Date Max Date Difference (max - min)
    20/06/2008 26/06/2008 6
    My query result is like this:
    min date max date difference
    20/06/2008 26/06/2008 0
    It seems like the formula for getting the difference between the other 2 formulas is not working, because I'm using the function of aggregattion, based on some characteristic, in order to have the max value of the date in one formula, and then have the min value of the date in other formula (the KF store for date is the same, that's the reason i have to use aggregation in order to calculate min and max value).
    Then I have a third formula to calculate the difference between the min value and the max value, but it seems that its not working because of the aggregation.
    Can you please give me some ideas of how can i obtain the desire result.
    THANKS IN ADVANCE

    Hi Carmonia,
    (a) If you want to perform calculations on DATE and if both dates are characteristic infobjects, then you can go for Formula Replacement Path.
       1. Create a New Formula or CKF and then select a Formula Variable. Right click and select New Varaible.
       2. Now create a Variable for one of the Characteristic of Date type with  processing type Formula - Replacement path. Select Replace with 'Key' and Dimension as 'Date'. Similarly create another formula replacement variable for another characteristic.
       3. Now you can taken both these variables in calculations(such as A-B).
    (b) If you are using key figure for the dates, then try by using DATE function in Data Functions of New Formula.
    Example: DATE(kfig_MaxDate)-DATE(kfig_MinDate). Also try DATE(kfig1_MaxDate-kfig2_MaxDate).
    ***Assign points if useful.
    Thanks,
    Sasi

  • Max/Min Display

    Hello,
    I have some thermocouple, current and voltage signals and I just want to display the max and min on my front panel and can't seem to do it.  With the statistics VI, it recalculates the max and min each time, but I want it to hold the max value until a higher value comes along.  Plus I don't really understand how the max/min VI works.  Is there another VI I should use for this?
    Any help would be great.
    Thanks,
    Richard
    Carleton U

    Converting the constant to a dynamic data type did solve the problem of the breaking wires, but it is still not working properly.  Also, I think I do need 2 statistics VIs because I need to send a high initial value for the minimum and a low initial value for the maximum.  If there is any way around this, let me know.
    The program has delay times to account for the delay of the gas analyzer as well as a time averaging VI.  I tried removing these, thinking that the statistics VIs may not like comparing something to nothing.   Didn't seem to be the problem.  I've attached a screenshot of what I have now.  Any more ideas would be more than welcome.
    Also, I'm having another problem.  See screenshot 2 and notice that my time axes are inconsistent and the formats are different.  I tried changing the formats all to a simple hh/mm/ss format, but as soon as I run it, they change back to how they were.  They are not synchronized, sometimes start at strange numbers like 3,000,000 and will not stay the same format.   Any ideas for this would be great too.
    Thanks,
    Richard
    Attachments:
    screenshot1.JPG ‏93 KB
    screenshot2.JPG ‏140 KB

  • How to find out the max/min value of one field corresponding to a second field in HANA through graphical way.

    Hi,
    I am trying to find out the latest delivery date(EINDT)  for each purchasing document (EBELN) through graphical way.
    The view contains other fields apart from the above mentioned two fields.
    When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
    If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
    Hence , please help me in getting the solution while the view contains other fields also.
    Thanks in advance.
    Thanks,
    Jyothirmayi

    Hi Sreehari/Vinoth,
    Thank you for your replies.
    if only two fields are then I can get the max/min values of one field corresponding to other field.
    But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
    I hope you understood my issue.Please revert in case of questions.
    Thanks & Regards,
    Jyothirmayi

  • How do you choose a particular Channel from an Advise.vi to perform an Array Max & Min.vi on that particular channel only?

    Reading all the channels for a FP-AI-100 through an Advise.vi but I need to read the Max & Min from channels 0 & 1. How is this done?
    Thanks

    The easiest way is to use two copies of the Index Array function. You would wire the output from FP Advise.vi to the n-dimension array input of both Index Array functions. For channel 0, you would use the an index value of 0 (on the first Index Array) and for channel 1, you would use an index value of 1 (on the second Index Array). Alternatively, the Index Array function is what is called a growable array function, you can drag the bottom of the node downwards, adding outputs. In this case, you can set it for two outputs and only use one copy of the Index Array.
    Considering that you are relatively new to FieldPoint and LabVIEW, I recommend that you consider using the FP Read.vi instead of the FP Advise.vi. The FP Advise.vi is a more advanced version of the
    FP Read.vi and has more "gotcha's" in its use. To save yourself some debugging headaches it may be easier to use the FP Read.vi. The single biggest difference in coding between the two is that an FP Advise.vi in a loop, automatically times the loop, whereas an FP Read.vi in a loop requires a timer such as Wait Until Next ms Multiple.vi.
    Regards,
    Aaron

  • How to use the discrete unit delay function with the simulate signal as the input?

    Hi there,
    I want to use the simulate signal as the input. First, i downsample the input with the downsampler.vi. Then I want to feed the output of the downsampled signal to the discrete unit delay block and display the delayed signal on the graph.
    Somehow I can't use the delay block properly, do anyone know how to fix that?T_T
    thanks!!!!
    Ivy
    please see the attachment
    Attachments:
    test.vi ‏164 KB

    Hi nozombie,
    In your VI the Delay VI only delays the measurment for one interation of your simulation loop.  What are the results that you hope to see?
    Regards,
    Mike Altmann
    LabVIEW Platform PSE
    National Instruments

  • How do you create a max/min for a series of input in labview 2010

    with labview is there a way to get max/min values from a series of inputs? I want it to graph the data and keep track of what the highest and lowest values were. I am using Labview 2010

    While you don't really define what you mean by a "Series of inputs", maybe Array Min&Max PrByPt might be of interest.
    (For better help, attach a simplified VI that shows typical data.)
    LabVIEW Champion . Do more with less code and in less time .

  • Sound File not creating from simulate signal

    I am trying to create a white noise sound file.
    100 Hz to 8000 Hz 100ms long with a 10 ms ramp up and 10 ms ramp down.
    I have been able to create the signal and sound in this vi.
    Create sound - 8000 hz white noise
    High pass filter - remove noise below 100 hz
    ratio window - causes ramps
    turn back into waveform - why oh why
    normalize after filtering - for some reason the filtering changes the height of the whole waveform, if you have a solution to this......
    play back sound
    write sound to wav file.
    The problem is, I can only get a file as short as 500 ms.  I did this by changing the simulate signal options selecting 8000 samples at 16000 Hz.
    If I select 1600 samples (the number of samples needed for 100 ms) some error occurs in the writing process, and the file thinks it's still open by labview.  If I close labview, the file still does not work.  How can I do what I need to do?  Why can't I just reduce the number of samples to 1600 and get a 100 ms long waveform?
    -Regards
    eximo
    UofL Bioengineering M.S.
    Neuronetrix
    "I had rather be right than be president" -Henry Clay
    Attachments:
    white noise generator.vi ‏169 KB
    White noise generator.PNG ‏40 KB

    The Labview sound system is something that NI do not care much about. They actually neglect it. Errors reported in version 8.6 are still not fixed in Version 2010. And if they fix errors you can be sure some new errors will be introduced. What you can try to do is using the old sound system (used in 7.x) for writing your data to file. In your case it should have much to say. You will find the old sound system here ..\National Instruments\LabVIEW 20xx\vi.lib\sound\sound.llb
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Change y-axis BACK to auto/ auto for max min

    I have a bar chart and the settings for my y-axis are 250/auto. I need it to revert back to auto/auto for max/min b/c one of my numbers is large and is shooting off the graph.

    Here is a linear scale:
    change to a percentage scale for the y axis:
    Center the value labels:

  • Max, Min and Count with Group By

    Hello,
    i want the max, min and count of a table, which is grouped by a column
    I need a combination of these two selects:
    select
         max(COUNTRY_S) MAXVALUE,
         min(COUNTRY_S) MINVALUE
    from
         tab_Country
    select
         count(*)
    from
         (select COUNTRY_TXT from tab_Country group by COUNTRY_TXT) ;
    The result should be one row with the max and min value of the table and with the count of the grouped by table, not the max and min of each group! - i hope you understand my question?
    Is this possible in one SQL-select?
    Thank you very much
    Best regards
    Heidi

    Hi, Heidi,
    HeidiWeber wrote:
    Hello,
    i want the max, min and count of a table, which is grouped by a column
    I need a combination of these two selects:
    select 
         max(COUNTRY_S) MAXVALUE, 
         min(COUNTRY_S) MINVALUE 
    from 
         tab_Country 
    select 
         count(*) 
    from 
         (select COUNTRY_TXT from tab_Country group by COUNTRY_TXT) ; 
    The result should be one row with the max and min value of the table and with the count of the grouped by table, not the max and min of each group! - i hope you understand my question?
    Is this possible in one SQL-select?
    Thank you very much
    Best regards
    Heidi
    It's not clear what you want.  Perhaps
    SELECT  MAX (country_s)               AS max_country_s
    ,       MIN (country_s)               AS min_country_s
    ,       COUNT (DISTINCT country_txt)  AS count_country_txt
    FROM    tab_country
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to control the variables in 'timing' in simulate signal palette by user numeric control?

    is there a way to control the timings of the simulate signal function (i.e. samples per hz, num of sample, etc) by user input (numeric ctrl)? You could easily do so for amplitude, freq, etc but not the timing.
    Many thanks,

    Are you referring to an Express VI?
    I don't typically use the Express VI's because they do not offer the customization that I need or want.  They are configured by double clicking the icon and all settings are from within.  You already know that.  Some Express VI's do offer more controls.  But this one has only the error in control.
    However, you can right click it and select "Open Fron Panel". 
    It will ask you if you want to convert the Express VI to a standard sub-vi. Select Convert.
    You will then have a subvi that has all the input controls that you need
    Message Edited by Ray.R on 03-14-2009 10:32 AM
    Attachments:
    SimulateSignal.PNG ‏2 KB
    SimSignalOpenFP.PNG ‏7 KB
    SimSignalConvert.PNG ‏4 KB

  • How can I get max, min & average (hours with minutes) of fast 30 days data

    Table name:
    run_log
    TYPE VARCHAR2(10),
    SUBTYPE VARCHAR2(10),
    PROGRAM VARCHAR2(100),
    STATUS VARCHAR2(20),
    START_TIME      DATE,
    END_TIME      DATE
    How can I get max, min & average (hours with minutes) of fast 30 days data ?

    Hi,
    you have to use analytical functions:
    SELECT start_day,
           round(AVG(daily_avg)
                 over(ORDER BY start_day ASC RANGE BETWEEN INTERVAL '30' DAY preceding AND INTERVAL '0' DAY following)) AS moving_avg,
           round(MAX(daily_max)
                 over(ORDER BY start_day ASC RANGE BETWEEN INTERVAL '30' DAY preceding AND INTERVAL '0' DAY following)) AS moving_max,
           round(MIN(daily_min)
                 over(ORDER BY start_day ASC RANGE BETWEEN INTERVAL '30' DAY preceding AND INTERVAL '0' DAY following)) AS moving_min
      FROM (SELECT trunc(t.start_time) start_day,
                   AVG((t.end_time - t.start_time) * 24 * 60 * 60) AS daily_avg,
                   MAX((t.end_time - t.start_time) * 24 * 60 * 60) AS daily_max,
                   MIN((t.end_time - t.start_time) * 24 * 60 * 60) AS daily_min
              FROM run_log
             GROUP BY trunc(t.start_time)) t
    ORDER BY 1 DESCAnalytical functions are described in the Oracle doc "Data Warehousing Guide".
    Regards,
    Carsten.

  • How to Display MAX, MIN and AVG in  ALV

    Hello Friends,
    Can some one help me with MAX, MIN and AVG  in ALV..
    I am displaying a screen with ALV..  it displays 3 columns..
    below every column i have done .. summatation with the help of
    FIELDCATALOG-DO_SUM = 'X'.
    is there any way in which i can find out MAX, MIN and AVG of each column ?
    Thanking you in Anticipation.
    Best Regards,
    Jitesh P

    NO at the bottom of the screen ..
    Just below the summation.
    column 1            column2               column3
    10                         20                      30
    11                         21                      30
    12                         22                      30
    Sum            33                         63                      90
    Max             12                        22                       30
    min              10                     20                         30
    AVG              11                    21                         30

  • Max/Min Input Limits CRIO

    Hey Guys,
    I have a question about adjusting the Max/Min Input Limits on an analop input card for a CRIO to improve measurement precision.  I know this feature is available through the DAQmx drivers but I haven't found a way to do it with it plugged into my CRIO....
    Thanks
    Matt

    Hi Guy,
    you may try to find those settings in the module properties by right-clicking the module in the project tree.
    Or you use property nodes, atleast in the FPGA they are available.
    Can't check this as I don't have access to a cRIO project right now…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Simulate Signal Express VI is sending two periods of the wave per loop iteration - how can I reduce this to one period?

    Hello,
    I've been trying to use the Signal Generator Express VI and DAQ Assistant in order to generate an output waveform, as seen in this NI tutorial video:
    http://www.ni.com/academic/students/learn-daq/generate/ (timestamp is at 2:07 for what I'm trying to do)
    For background, I'm trying to move a piston device using Labview. The sine waveform is intended to move the piston at a smooth speed. For every loop iteration, the Simulate Signal VI running into my DAQ Assistant moves the piston to its maximum displacement and back twice. I cannot determine why this is occuring.
    The settings in my "Configure Simulate Signal" tab are as follows:
    Frequency: 1Hz
    Phase: 90 deg
    Amplitude: 2
    Offset: -2
    I would like my piston to only reach its maximum displacement and return for every iteration of the loop. I've tried adjusting all of the settings within "Configure Simluate Signal" but I can only work in even numbers - sending the piston back and fourth two, four, or eight times, ect.

    The Simulate Signal VI is set for integer number of cycles and the default frequency set in the Cycles per Second control is 3.75 Hz. That results in the signal containing three complete cycles and the data array contains 8000 elements, not the nominla 10000 specified in the Express VI dialog.
    If you only want one cycle, you need to specify the signal so that you only get one. Either reduce the frequency or reduce the number of samples.
    As you have noticed Express VIs do one thing exceedingly well: They obscure what is going on inside.  I pulled your signal generation code out into a separate VI and then created a generator which will generate the same signal but allow you to select the number of cycles. It uses the Sine Waveform.vi from the Signal Processing  >> Waveform Generation palette.
    I also recommend that you change the structure of your program. The use of sequence structures is discouraged in LabVIEW  because they defeat dataflow are very inflexible when changes need to be made. A Producer/Consumer Design Pattern plus a state machine would probably be a good choice. This will allow separation of the daq acquisition from the saving to file so that the timing of one does not constrain the timing of the other.
    Setting the Analog Input Read to read multiple samples simultaneously and using the hardware timing of the data acquisiton device will get data faster and the timing will be precisely (compared to software timing) controlled by the hardware.
    Writing to the same file in parallel loops probably results in some strange behavior such as differing numbers of writes from acquired data compared to generated cycles. As the file grows, the writes may slow down due to the OS needing to fragment or reallocate space for the file.
    Lynn
    Attachments:
    Signal generator.vi ‏49 KB

Maybe you are looking for

  • Field not present in the Field Catalog also getting displayed in the ALV

    Hi Experts, I am trying to display some to an ALV grid. But since i don't need all the fields from the internal table, i have deleted those fields from the field catalog. But in-spite of doing this the field heading is still getting displayed. I am n

  • Open VI's front panel

    Hi, See the included file 'Printing.bmp'. I am printing a VI's front panel, but before printing I want to open another VI's front panel that is showing the message 'Printing...'(P'ting). This VI's front panel should be closed after printing. But the

  • Looking for a specific 8-bit synth plugin

    There was one I found a while ago (maybe a year or so) that had a lot of Nintendo-type preset sounds. At the time, it wasn't Leopard compatible so I didn't keep it on my system. I've done some searching and checked out a couple plugins since includin

  • Dreamweaver falsely reports BBEdit problem after App Store install

    I just installed BBEdit 10.5.2 from the Mac App store. Off course that did not include the bbdiff tool that Dreamweaver uses, so I had to use BareBones' installer to reinstall that. BBEdit now again works fine in my DW CS6 install, with "Compare with

  • Authentication for anroid mobiles phones

    Hi all,   One of my customer place they want strong authencation for anroid mobiles also. Where apple phones supports WPA2-enterprise, they already  using mac based authentication. Thanks in advance.