07-06-2011 05:16 PM
07-06-2011 05:39 PM
@VedranJ wrote:
Wow!! I though you had this done from a previous .vi but it seems like you've made that whole .vi to suite my question!
Once you learn a few things in LV, it is surprisingly quick to create seemingly complex VIs. I am not so bold to as to claim to be the fastest G programmer around here, just the fastest named Darin (or alternate spellings). ![]()
07-06-2011 06:06 PM
Darin.K wrote:... just the fastest named Darin (or alternate spellings).
Very bold words! 😄 (especially considering the blue alternate spelling 🐵
(You should come to NI-Week and enter the speed coding challenge to back up your claim.)
VedranJ:
Typically, you don't need to generate these large intermediary data structures such as the 2D array, especially if you can calculate the desired row "on the fly" with little effort. Once you are dealing with massive data structures, being wasteful here can make you run out of memory in no time.
07-06-2011 07:31 PM
altenbach wrote:Very bold words! 😄 (especially considering the blue alternate spelling 🐵(You should come to NI-Week and enter the speed coding challenge to back up your claim.)
Texas in August? Oh, yes please. Maybe if I still needed an iPad.
I've heard from a few contestants that Darren has lost a step and will be going down hard.
07-07-2011 11:02 AM - edited 07-07-2011 11:08 AM
I am having trouble with a broken wire in part of my code. I'll just show you rather than explain it, it looks like its an input going to an input and I'm not sure why this is happening or how to fix it.
Also I included my attempt at making a slider-plot. You'll notice I did some weird stuff with the "time" which is simply the x-axis of my plot. I strung together the 3 x-axis values so that they would match the length of my array rows. The idea completely failed when I realized that I'm not offsetting the x-axis values so the x-axis is a complete mess that doesn't actually go up in any particular timestep over the entire range. (eg. 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5) instead of (0 1 2 3 4 5 6 7 8 9 10 11..)
and altenbach, thanks for the .vi, I would have spent hours trying to find that Property: Scale:Maximum without just copying it over from your vi... my trouble with your .vi is I don't understand how to change it for my input waveforms, I have 64bit doubles with about 800 points on average that I would like to overlap using this .vi and I am rather unclear how the start of your .vi puts the array together
07-07-2011 11:07 AM
What's wring with the suggested solutions? They work!
You probably have a broken wire because you deleted the stop button control.
Your "poor attempt" looks quite silly. Why don't you attach actual code instead of pictures?
07-07-2011 11:11 AM - edited 07-07-2011 11:15 AM
Your "poor attempt" looks quite silly. Why don't you attach actual code instead of pictures?
--yes I know, and I suppose attaching the vi is much easier than making png files in paint
What's wring with the suggested solutions? They work!
--I'm sure they both do
You probably have a broken wire because you deleted the stop button control.
--My picture looks identical to the one posted except the wire isnt broken
07-07-2011 11:50 AM - edited 07-07-2011 11:54 AM
This is my outline for what I want to get done in the next week or so.
Basically the idea is to take this overlapped waveform as determined by the slider and apply a FFT to it. Using an LRC cct with values defined by the user a filter function (bandpass) is applied to the FFT to make it a filtered FFT. Then use IFFT to get the filtered waveform back. From there apply the nonlinear equation where c1 c2 and V0 are user defined parameters. After offsetting the overlapped filtered waveform (after IFFT) we take the time intergral of each row of the array to produce a 2x(2N+1) array that we can easily plot using a 2D graph... this is my program I need to create 🙂