Add waveforms N

I would take an unknown number of waveforms in a table and add each signal so that I find myself with a waveform that is the sum of all data is the waveforms. DT will be the same for all waveforms.

I could get this to work by using the Add function with a fixed number of elements in array waveform (as I've attached to it), but I was not able to find a way to do it if I don't know how many elements in the table.

I tried to use a loop and a registry change, but it does not work the same way.

Any suggestions would be greatly appreciated.

Thank you

Apparently I was not explicit enough when I booted the shift register. This is a working version using a shift register

Tags: NI Software

Similar Questions

  • Why not add waveforms with arithmetic work composed?

    Hi all

    I have a program that adds several waveforms and displays them all together as a distorted in a graph curve simple waveform.

    I had to add all together using simple add functions, since the block consisting of the arithmetic doesn't work.

    Why would this be the case? Is essentially just done multiple additions in a convinient way? I have attached a VI with a simple example to show what I mean.

    fr00tcrunch

    Waveforms have timing information.  What happens if the timing is different?  You need to throw an error somehow.  Add it has this ability.  The arithmetic function composed has not just inside arsenal.

  • How to use that create the wavefrom

    I would like a Plugin of data from a custom data format. Example of following data:

    some_name_1 $ (name)
    $ (id) 1
    $ (Color) 1,000000 0.000000 1.000000
    $ (X axis) time [ms]
    $ (Y axis) [kN]
    0.00000000E + 00, -4.30788916E - 09
    1.0112.999e - 01, -2.26056017E - 02
    4.99011459E + 01, 3.88890062E - 23
    5.00010223E + 01, 2.55677929E - 23
    some_name_2 $ (name)
    $ (id) 2
    $ (Color) 1.000000 0.000000 0.000000
    $ (X axis) time [ms]
    $ (Y axis) [mm]
    0.00000000E + 00, 4.53233423E - 10
    1.01121999E - 01, -2.85587949E - 03
    4.99011459E + 01, 7.13293237E - 24
    5.00010223E + 01, 2.88725773E - 23
    some_name_3 $ (name)
    $ (id) 2
    $ (Color) 1.000000 0.000000 0.000000
    $ (X axis) time [ms]
    $ (Y axis) [g]
    0.00000000E + 00, 4.53233423E - 10
    1.01121999E - 01, -2.85587949E - 03
    4.99011459E + 01, 7.13293237E - 24
    5.00010223E + 01, 2.88725773E - 23
    * END

    File always come with channels. Allways channels have two column - time and values.

    I have loads whitch Plugin data to work for me, but I have a lot of useless weather channels. So I would like to create a waveformat channels rather than doubles all digital.

    Simple approach I have just add waveform properties does not work.

    Please how can I create waveform of this data format?

    The code I use is attatched

    Thank you.

    Radek

    Hi Radel_Codr,

    is the right approach to add properties of waveform.

    An important property is missing. See below the list of available properties for the waveforms and its data types:

    Call ChnValues.Properties.Add ("wf_samples", CLong (1))
    Call ChnValues.Properties.Add ("wf_increment", CDbl (0.1))
    Call ChnValues.Properties.Add ("wf_xname", "time")
    Call ChnValues.Properties.Add ("wf_xunit_string", "ms")
    Call ChnValues.Properties.Add ("wf_start_time", CreateTime (2015,8,12,12,10,0))
    Call ChnValues.Properties.Add ("wf_start_offset", CDBl (0.1))

    Except "wf_samples", all properties are optional. Please follow the explicit data type conversion for property values.

    With our support of output channels 2015 a new function to add waveform properties, that simplify the creation of channels of waveform.

  • Where is this guy? (vi internal)

    Hi all

    Today, I opened a vi sample that is the 'noise of the waveforms' and PS Density.vi and I found an interesting nuggets, vi "ADD", it's an internal LabVIEW vi (cannot be opened by double click), vi is different from the normal we use, it was 'mistake' in and connectors 'error', at the beginning, I guess, I can do as connectors out through a right-click menu , but fails and I can't find it anywhere in the palette of functions and the context help does not appear any help. See attached.

    It's just the regular Add function. You automatically get input/output error when wire you in waveform data types. A cause of an error, if you try to add waveforms with a different dt.

  • FFT problem

    I'm figuring the FFT of several signals, I have used sine waves in the attached vi to highlight my problem.

    I created 3 sinusoidal signals using signal generated express vi.

    Sinusoidal signal 1: Fs = 20 Hz

    Sine wave 2: Fs = 250 Hz

    Sine wave 3: Fs = 500 Hz

    I combined these signals in a table and fed in FFT Soectrum (Mag Phase) VI and see the results on a graph in the form of wave. I changed the property of multiplier of charts to the sampling frequency of the singal handset (1 sine wave Sine Wave 2 + Sine Wave 3) which is equal to 770Hz.

    The plot of the FFT spectrum is throw up quite unexpected results. I expected peaks at 20 Hz, 250 Hz and 500 Hz, but I get crazy values.

    I'm doing something wrong... ? Take a look at the vi attached please.

    Stroke

    Hi the shots.

    You seem to be missing a few basics about LabVIEW data types as well as their manipulation...

    You cannot add waveforms by adding berries to Y in a larger painting, you must Add the.

    Play with the filter command in the attachment (to perform a control of it can make it easier...)

  • AI data seem to be fallen on the NI USB-6211 case

    Hi all

    It seems that, after a thorough inspection, I am having some problems with a DAQ USB (USB-6211).  I try to read and to capture a series of samples to a fixed dt for a fixed rate (i.e. 50 ksps / s to 50 kHz for 1 s).  At every point I have retrieve the data (using the vi DAQmx Read), I add the (recovered as a waveform) data to all previously retrieved data (using the vi Append waveform).  After that I captured my 50 kS, I then ship the data off the coast in a queue for processing in the frequency domain using one of the FFT routines. Pretty easy, right?   However, according to what is happening on the desktop, it seems that the data acquisition time can vary at least +/-20 we tell me that some of the sampled data may have been deleted (if only a few samples) and is irregularly spaced out in time.  It is a problem like falling none of the data is likely to skew the results in the frequency domain.

    If you have a thought, please let me know.

    Thanks, Matt

    Thanks for the timely response, kikiduu and I apologize for the delay in responding.  It turns out that I've implemented my evil FFT and it was question thereal I deal with.  Briefly, I was generating a tophat in the shape of signal in the frequency domain, and then using the IDFT to convert the singal to a time field that could be sent to the DAC.  When I got the signal that I had generated, depended on the result of the where the AO signal was sampled.  The simple answer to why it happened was with the windowing feature that I used.

    However, as you pointed out, my use of the DAQmx Read and add waveforms is unnecessary and causes data drops that I demanded a fixed number of samples each time.  I have since implemented the reading as you suggested and everything works perfectly (and uses a lot less time CPU).  Thanks for the comments.

    Cheers, Matt

  • train of generation of alternative pulse with USB-6251

    Hi all

    My goal is to generation on the USB6251 signal as output:

    http://S232.Photobucket.com/albums/ee262/rusian24h/?action=view¤t=formofsignal.jpg"target ="_blank"" >http://i232.photobucket.com/albums/ee262/rusian24h/formofsignal.jpg "border ="0"alt ="Photobucket">"

    First, I marked VI "generation signal ' (attached fllowing), after that, I replaced under VI"Basic fuction generator"in VI"Multi-Fuction-Synch I-AO"(in the library of examples of Laview) with VI"generating the signal.

    http://S232.Photobucket.com/albums/ee262/rusian24h/?action=view¤t=Outputanalogsignal.jpg"target ="_blank"" >http://i232.photobucket.com/albums/ee262/rusian24h/Outputanalogsignal.jpg "border ="0"alt ="output signal">"

    When the program runs, the output signal is last 6 periods of the signal.

    How can I output the entire signal?

    Please help me

    Thank you very much!

    Rostov,

    Please use the Forums of NOR. I have seen the same behavior that you experience when you place your custom in the AI Multi-multifunction-Synch-AO VI. This behavior is because your personalized VI wasn't out the data you expect. When you wrote your data on you placed him in a graphic waveform and graphics have memory. So he was combining all data in a single chart, even though she was only being written in pieces. That's why when you place your VI in the other program that you saw only the last couple periods. I enclose a VI that I did which will display the step that you are missing, and I used one 'Add waveforms' VI to ensure that all data is saved correctly.  If you place this VI in the code you should see everything correctly. Let me know if you have any questions.

    I have attached the VI in version 8.6 and 8.0, if you need a later version of 8.0, let me know.

  • How to add a record button on the front panel to save waveform data

    Hi, I'm new kind of LabVIEW and I worked on a code for an agilent oscilloscope communicate via GPIB and so far it works well on the collection of these two analog channels one by one, "Not UNLIMITED" but it does the trick (vpp, Vrms, frequency, etc.).  I've added the feature to add data to a .csv file waveform (problem: opens a dialog box until the user gathers all the data.) Solution: I want the user to save the. File CSV whenever he wants to use later on the front panel). I've added another feature to get a snapshot of the curve waveform (problem: opens a dialog box.) Solution: I want the user to save the JPEG file, whenever he wants to take a snapshot ("take snapshot" button on the front panel)).  I work with the agilent hp54645d driver. I have attached my code, if someone can tell me please how do I do this (maybe cabling and structures are solutions do not know). Thank you in advance.

    I would recommend adding a case structure just around the two record VI and a button to check the condition of the structure of each case. If you want a button to control both save functions you can put the two record functions in the same structure of business controlled by a single button. You are right in saying that the loop will cause your code runs until the stop button is pressed or until the stop condition is met. If you are wanting the while loop to stop once the recorded information you can use the button that you use to control structures case to also stop the while loop. I hope this information helps.

  • Add the waveform does not reset

    Here is the explanation of high level.  I want that samples of 100 Hz, groups of 10.  I like to check to the discontinuities and then take the last data point in each group of ten.  Then take this last datapoint so I 1sample/s if all goes well.  Add to the top of my 1 s/s at a "rate of scanning in seconds" (generally 15 sec) and if there is no anomaly data, take the last data point and write it to the file. If there is an anomaly, I want the typical scans over an additional column of the event recorded in the 100 s/s complete.

    Specifically, I use the subset of waveform get successfully, I think, but when I Append Waveform, the timestamp is stripped. I was about to try to get XY waveform, but I thought this announcement on the forums might make me come more quickly than the obstinate by it.  So how can I easily draw the last data point in these subgroups with success?

    I'll take other ideas, too.  I seem to get popped up on little things like that.  Also, you'll forgive the mess. It's a work in progress.  Thermal cycling rig 02/08/13 v2.vi is the code base and TDMStoExcel and RunMacro live can be deleted if you try to run it. they work

    Thanks in advance

    the loop is just to remove the ten sets of ten, resulting in a bit rate a second base.  This way I can run a 'scan in seconds rate' for the while loop with the ability to capture events at 100 Hz.  I solved the problem of the table do not reset using the auto index function.  I had Dale this initially because, when I develop the process of data for all channels, I didn't know how it would affect waveform bays.  I didn't manipulate 3d tables if I could help him.  not my forte.  Then, I'll try the subarray of waveform get nine full channels and see if it works. After that, the receipt of the data.  I need to write to the file for nine channels and hopefully not wait to write until the dump event data.  I want to tick away at the speed of scanning and then create an additional column only if there is an event.  I'm trying to capture functions to void / screws.   the first Subvi process data will do much limits responsible Boolean logic check of the control of movement.

    The example you gave is a great idea for the logic, I would like to implement.  Thanks for the suggestion!

    Tom

  • How to add the phase parameter to array of waveform in the DaQmx continuous output example?

    Hi all

    I'm quite beginning to Labview. I just wanted to know how can I add stage information for the module of waveform existing as shown in the example of output Voltage-Continuous DaQmx.

    SEEE attached, I thought that the "output" is actually a built-in control, is there anyway I can add the phase as an additional parameter which?

    Thanks in advance for any help.

    Eric

    If you press ctrl + H, the context help window opens, and you can hover over the generating function VI to see its inputs/outputs, but also to navigate to the detailed help. As you can see from this screenshot, there is an exit for the phase which is separated from the output waveform.

  • Add the delay between periods of a waveform

    Hey all,.

    I have used Labview to implement a generator of signals using the 'base FuncGen' VI, (WF-Gen.png) and I'm looking to make a change to the waveform.  Currently I have my VI, set up to generate a square signal to a specified frequency and number of cycles.  For example, a waveform of 1000 Hz for 1000 cycles would go for a second.  My question is: how would I go put some points of zero V between each cycle?  I've attached a picture to show what I mean (Signal.png).

    Thank you.

    GE

    You need generate multiple signals and use Add a waveform.

  • How to add a cursor to a graph of waveform on mouse click

    Hi, I have a waveform graph, which is displaying the data. I wish I could click on a point on this graph during execution and add a cursor to this place. Any suggestions? I tried to understand this for awhile but I'm completely stuck. Thank you, Ty

    Here is a version 8.0

  • Add the waveform, keep the timestamp

    I'm reading of a module of 500 Hz USB data acquisition. To achieve this within the period of the loop, I need to acquire several samples per loop. Once I have these samples (waveform output), is it possible to add the waveform that keeps the timestamps?

    I am currently using the 'time to get picture', and then insert the data into a the same shift register. I would like to re - insert the data in the rest of the waveform added to simplify the writing of information that much easier. If this does not work, I'll probably just to do a string 2D array to write the data.

    Thank you!


  • How to add more samples to a waveform

    I have a waveform of 100 samples. I want to make the No.: samples of 1000 without changing the shape of the wave. How can I do that.

    Hello

    The addition of Waveforms.vi. You can find it in the palette of functions in respect of the programming-> wave-> similar Wfn.

    Make sure you only read the help about the behavior of the dt and t0 the waveforms you add.

    Best regards

    David

    NISW

  • Add noise and waveform

    I'm doing a VI that shows how certain types of noise on a signal. The result is not what I expected, comments or recommendations to improve? below is the vi

    Use the treatment-> screws of generation of waveforms for your generation of noise from the Signal.  They use the same sampling information according to your main signal.

Maybe you are looking for

  • HP Envy Phoenix 860-112nf: information for HP Envy Phoenix 860-112nf HW

    Hello I need detailed HW utilisateur5 my HP Envy Phoenix 860-112nf I need certain information such as: -What type of module of memory is necessary to upgrade to 16 GB? -Which USB ports are 2.0 or 3.0 -are there an IDE port to plug the old hard drive

  • I JUST LOST FLASH AND IT WILL NOT RE-INSTALL?

    Any ideas guys? I tried to upload a video of your tube and xoom completely dead for several minutes. I finally got on and everything seems fine but I lost the flash player. I'm getting just annoying points mark as in iphone. The video content of BBC

  • HP Officejet 6100 e printer will not stop running

    I have a printer portable officejet 6100 e.  This isn't an all in one printer.  It worked fine for a few months.  Now, it continues to operate. In other words, the ink cartridges continue cycling back and forth.  I am unable to print anything, becaus

  • Support Bluetooth? Please? Does not at all!

    Hi, I have a problem with my laptop's built-in bluetooth device. I use a Dell Inspiron 15r n5010 Windows 7-based. Recently, I tried to use the bluetooth device built to my laptop for the first time in a long time and couldn't make it work. I have had

  • You cannot change the administrator account

    Original title: sdasdasdas I ca't change on my computer, my OS is windows 7 when I try to change administrator, it asks for a password when I put my password it say "" connection failed: the user did not request type of login on this computer "for th