08-30-2013 07:50 AM
Also, I've been using the 2013 trial version. I just bought the 2012 student version, and apparently the files aren't compatible. How inconvenient.
08-30-2013 07:54 AM
If the loop iteration count, wired to your constant of 8, is equal to N, and the smallest length array that is set to autoindex (tunnel on loop border has two brackets inside it rather than being a solid block of colour) is M long, the for loop will will run for a number of iterations equal to whichever is smaller of N or M.
08-30-2013 08:39 AM - edited 08-30-2013 08:40 AM
Here is how I would do it. You can see that this way you don't have to match the size of R2 and Vout yourself, LabVIEW will build the array for you. Obviously this only works for R2 increasing as it does in your question, you could use 'index array' tied to the iteration number just as easily if you made the array R2.
Also, you should be able to 'save for previous version' if you still have LV13 there.
08-30-2013 08:53 AM
@Torii wrote:
Also, I've been using the 2013 trial version. I just bought the 2012 student version, and apparently the files aren't compatible. How inconvenient.
Open them in LabVIEW 2013 and "save for previous". Voila!
08-30-2013 09:07 AM - edited 08-30-2013 09:07 AM
08-30-2013 09:46 AM
touche altenbach...
08-30-2013 10:05 AM
Torii wrote:(I am so LabVIEW illiterate it's not even funny. Sorry!)
Then may I recommend you take some of the online tutorials.
08-30-2013 10:25 AM
Wow guys, thanks for the help. I saved all my 2013 for 2012 and it worked.
I did those tutorials years ago but you're probably right, I could use a refresher. Did my formula node give it away? Using the math function buttons is probably the more accepted way of doing it. There's a lot of "shortcuts" that i'm not familiar with.
To the tutorial...!
08-30-2013 10:35 AM
As you probably noticed, the instructions are convoluted from the beginning, for example the statement:
"Use a for loop to calculate the value and build arrays for the voltage and R2 values."
... just forces you to create overly complicated and inefficient code. As you can see from my solution, neither a FOR loop nor "built array" primitives are needed here. Problems like that should not force you to do it in a certain way. Only the correct result counts! 😄
08-30-2013 10:06 PM
Nice line altenbach,Only the correct result counts !!!