Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with waveform generation

Solved!
Go to solution

Hello,

 

I have 2 waveforms and I’m trying to add one after another, (like an analogy of concatenation of characters).

I was thinking to make a time offset of one waveform and then add them, but it didn’t work well.

 

I would appreciate some ideas.

 

Thanks

 

I annex a picture of my VI

 

1.jpg

0 Kudos
Message 1 of 3
(5,646 Views)
Solution
Accepted by topic author lionhikary

The waveform data type is basically just a cluster of 3 pieces of data: 1. the actually data array (Y), 2. the time interval between the points (dt) and 3. the timestamp (t0) that was generated at the begining of the acquisition. The build array function won't let you concatenate the waveforms because it doesn't know if it should use the timestamp from the first waveform or the timestamp from the second. You will need to break each waveform down to its components, concatenate the data arrays, and insert this data into a new waveform with the desired timestamp that you want to use. It should look something like this:

 

waveform concatenate.png

 

Jeremy P.

Applications Engineer
National Instruments
Message 2 of 3
(5,636 Views)
Jeremy
Your explanation is very clear and right to the point.
now knowing exactly how waveforms works, it is more easy for me to manipulate them.
Thanks
0 Kudos
Message 3 of 3
(5,631 Views)