08-31-2012 11:58 AM
Great! As long as you only need that one index (and not any of the other information in the array) it should work great. Good luck with everything 🙂
09-04-2012 09:37 AM
Hello again....
OK I added the auto indexing, everything looks ok but I still get an error when I try to run.
Error -90058 occurred at Error in output variable: toggle_record. The variable is defined within the script, but the code that defines the variable did not execute
A current Pic is shown, and the Speeds input is an array of dbl precision numbers.
I did not write this program, I am just trying to get it to run in the 2011 version, The two lines that I do not understand are:
indexes=1:length(Speeds) -----what is the 1: doing?
if Channels_Complete(S_channel_index)~=true ----- what does ~= mean?
Thank you!
09-04-2012 10:08 AM
Hi Zack,
The colon operator creates a regularly spaced array depending on the numbers on either side.
For example, x=1:6 would create this array: [1 2 3 4 5 6]
The functionality of the ~= is decribed here: http://zone.ni.com/reference/en-XX/help/373123B-01/lvtextmath/msfunc_ne/
The error you're getting just says that toggle_record is never assigned a value. If you turn on highlight execution (the lightbulb in the top left-hand corner), you can see exactly which lines of code are executed. What you will probably see is that with the current inputs, the "else" section always executes. You should either initialize the "toggle_record" value in the beginning of the code or assign it a value in all execution possibilities.