DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Select and Use Data Points Script

Solved!
Go to solution

Never mind all!

 

I found my error.

 

Thanks

Tim
0 Kudos
Message 31 of 33
(1,604 Views)

Hi Tim,

 

Could you go ahead and post the error you found as a future reference for others?

 

Cheers,

KyleP
Applications Engineer
National Instruments
0 Kudos
Message 32 of 33
(1,599 Views)

Sure

 

CtrlTimeVals(i)= Find("Ch(L2) >= R1", CtrlTimeVals(i)+ ControlPointValueArray(i))

 

In my find function the resulting value is being added to the initial value of array CtrlTimeVals(i)

 

This error did not surface during one test run as all array values would be zero.

 

However when I would cycle through the array a second time I was adding the found point value to the original point value location.  This would result in the find function starting from a location far beyond where data may even exists result in a return value of zero = not found.

Tim
Message 33 of 33
(1,594 Views)