LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 90129, unable to coerce data

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 🙂

0 Kudos
Message 11 of 13
(625 Views)

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!

 

Blue hills3.JPG

 

0 Kudos
Message 12 of 13
(614 Views)

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.

 

 

0 Kudos
Message 13 of 13
(606 Views)