LabVIEW

cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Build waveform from discrete points

Solved!
Go to solution

Hello all

 

I am trying to make a custom signal generator with the possibility of an arbitrary waveform. 

I have a graph with some cursors on it you can move around as you like (only in the Y direction, not the X) From these points I would like

to create a "soft" waveform, that is a waveform with lets say 500 points so the edges isn't so rough. I have attached some pictures showing what I

have and what I would like ๐Ÿต (I have the discrete and I would like a waveform smoothness like the output)..

I tried to mess around with FIR filter, interpolation, spline functions but I don't think it is the way to go because of the low amount of datapoints I have to start

with, but maybe these functions could be a step two in the process?!

This curve is something the user is going to draw each time he starts the program, that's why I am kind of limited to around 10-20 points max to create a waveform

like the one in the picture.

 

Hope you understand my problem and are able to help. ๐Ÿ™‚

 

Thanks

 

Regards

Tommy

-----
Running LabVIEW 2009 32bit SP1 on Windows 7 64Bit
Download All
0 Kudos
Message 1 of 5
(3,711 Views)

I saw the effects of the Cubic Hermite Spline Fit durring a demo and told myself "I should rember that one" for those cases where other fits give weird ringing type effects nears steps. So I never got around to using it but at least I rembered it.

 

I hope that helps you,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 5
(3,702 Views)

Hello Ben

 

Thanks for your input, I'll give it a try.

 

Have a nice day

 

Regards

Tommy

-----
Running LabVIEW 2009 32bit SP1 on Windows 7 64Bit
0 Kudos
Message 3 of 5
(3,673 Views)
Solution
Accepted by topic author tombech

here is my try... My quick input was an array of slider ๐Ÿ˜‰

 

 If you run it in a loop the operator get's a direct feedback.

Why you don't like  splines? 

 

Sidenote: If you choose  coerce for interpolation, you have a Pisa like impression ๐Ÿ™‚

 

Greetings from Germany
Henrik

LV since v3.1

โ€œgroundโ€ is a convenient fantasy

'ห™ห™ห™ห™uฤฑษฦƒษ lษฤฑp puษ ยฐ06 วuoษฅd ษนnoสŽ uษนnส‡ วsษวld 'สŽษนษuฤฑฦƒษษฏฤฑ sฤฑ pวlษฤฑp วสŒษษฅ noสŽ ษนวqษฏnu วษฅส‡'


0 Kudos
Message 4 of 5
(3,658 Views)

Hello

 

Thanks to both for good answers!!

 

Henrik: I don't mind spline functions, I just though it would require more points then what I had, but I see it works great.

Nice little example you made there, thanks a lot it works great!!!!

 

Have a nice weekend, I know I will now ๐Ÿ™‚

 

Regards

-Tommy

-----
Running LabVIEW 2009 32bit SP1 on Windows 7 64Bit
0 Kudos
Message 5 of 5
(3,649 Views)