02-15-2010 12:38 PM
Derrick M wrote:company as guides, and only have about 10 hours worth of programming experience so far. Any and all help is greatly appreciated, thanks!
Yup I know. I was just responding to that last setence there.
02-15-2010 12:44 PM
Well I certainly do appreciate the help! This is all new to me, this if my first time programming with something that is data driven and not event driven.
I am not opposed to starting over either if someone has a better way of doing this.
02-16-2010 08:08 AM
After doing some reading I was wondering how I could make it so instead of filling the smaller files with zeros it fills them with "NaN" instead. Like I said I am new to this so if that idea doesnt make sense just let me know.
02-16-2010 08:13 AM
Quoting myself fromthis thread ;
"
Use a double nested For loops to check if = 0 and if true use "NaN" (hint a select node on compare palette wil let you choose between the value of NaN.
If you have trouble with that part code what you can and re-post to let someone give you anothe push.
"
Ben
02-16-2010 08:42 AM
Ben, thanks for the speedy reply!
I did this already, and it did not take care of the plots ending at zero. However, I could have done it wrong. Here is the block diagram:
02-16-2010 08:48 AM
First a leason....
Inside the big For loop your data is OK.
The output tunnel is where the extra zero get insterted to pad out the extra space.
1) Put an indicator on the wire inside the big For loop.
2) Put an indicator on the 2d-wire coming out of teh big For loop.
3) Run your code execution highlighting (light buld on) and pasue the code after each file read.
4) Look at teh indicator inside teh loop and you will see your data as read from file.
5) Let teh code complete and then check the indicator outside teh loop. You will see the extra stuff in the indicator.
So...
Put the double nested loops outside the big For loop to fix-up what is coming for that output tunnel.
Ben
02-16-2010 09:21 AM
Thanks Ben, I got it to work and learned something while doing it!
02-16-2010 09:25 AM
Derrick M wrote:Thanks Ben, I got it to work and learned something while doing it!
...
Thank you very much for the update! That is why I'm WE are here.
Ben