05-06-2010 08:23 AM
05-06-2010 08:25 AM
Hi Leco,
Could you post some code please. Is a lot easier to help when looking at what you are trying to do.
Rgs,
Lucither
05-06-2010 08:27 AM
Sorry, now it´s postet 2 times.....something is crazy with this page today....i could not add attachments....
here they are.
the zeroes are at end of file 1 and at begin of file 2 (ca. at 200 seconds)
05-06-2010 09:27 AM - edited 05-06-2010 09:29 AM
Hi Leco,
Try this at the end instead:
Have posted the snippet above in case you dont have LV2009, will post an updated version of your code below.
Note: you shouldnt normally use the = 0 with doubles but as you are reading from a spreadsheet that have fixed string values of 0 i think that
this should be ok. It worked for the test anyway. Im sure if this is still a problem someone will correct me.
Rgs,
Lucither
05-06-2010 09:31 AM - edited 05-06-2010 09:33 AM
Well, a local variable won't "magically" fix an algorithm error. It can actually make things worse by potentially creating a race condition.
In your code off to the right you only need one for-loop. You have the basic idea of what you need to do. See attached modification that works on the 2D array after it's been all read in. You could actually place the loop that does the replacing inside the loop that reads each file as well.
Notes:
05-06-2010 09:48 AM
Lucither wrote:Hi Leco,
Note: you shouldnt normally use the = 0 with doubles but as you are reading from a spreadsheet that have fixed string values of 0 i think that
this should be ok. It worked for the test anyway. Im sure if this is still a problem someone will correct me.
It probably will be OK. But then, I like to play things safe.
05-06-2010 09:51 AM
Smercurio,
Your absolutely right. Should really practise good habits all the time, wont then bite me in the ass in years to come:
Have altered it. Now uses an 'Approx Equals' vi. Have set this accurate to 3 decimal places.
Will re-post your updated vi with this vi in a folder also.
Rgs,
Lucither
05-06-2010 03:34 PM
05-06-2010 03:52 PM
lecojon wrote:
thanks, guys, now i can finish my homework 😉
Now I just feel dirty.
05-07-2010 04:32 AM
Hi,
you feel dirty when you help people? it was this little thing that didn´t work, and you helped me to realize that. where´s the problem?
greetings.