MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

ASSERT FAILURE when autocoding block with UCB

When we introduced UCB:s in our model we got problems when autocoding, see message below. We could workaround
the problem by splitting the function into three smaller functions which could then be autocoded separately.
The block with the UCB:s in not particulary large or complex, it reads two parameter files and uses one of them as calibration parameters to apply scaling and offset to an input signal vector. Now, when adding three new parameters I seem to pass the threshold again.

Any ideas how to solve this problem is appreciated.

MatrixX/Autocode 6.2 for Solaris.

command:
autostar -l c -doc -o ".isp1.c" -t "template/sdm.tpl" -procs -linesz 80 -Oinitmerge ".isp1.rtf"

output:
...
Initializing ...
Processing na
mes ...
Building symbols ...
ASSERT FAILURE (at /vob1/ac/build/procedure.cxx:125) - generic assert
Executing: 'sdm.dac' :

****** Error during code generation
`autocode' "MODULETEST",{language="c",tplsrc="template/sdm.tpl",file=".isp1.c",rtf=".isp1.rtf",procs_only=1,initmerge=1,linesz=80,docit=1}
0 Kudos
Message 1 of 2
(6,914 Views)
Tom,
From the print out it looks like the assert is happening before you get to the template. Can you confirm that it does not happen with the default template (c_sim.tpl)?

How many inputs, outputs, parameters are you passing the UCB, and anything else relevant about the UCB? Or even better can you post the model (or equivalent model)?

Carl L
National Instruments
www.ni.com/matrixx
0 Kudos
Message 2 of 2
(6,914 Views)