MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

Autocode and UCBs

Hello,

I could not find the anwer to my question in the manuals or in the knowled base on the web site. Here is my question.

I'm currently trying to autocode some superblocks into UCBs (on windows XP). The goal is to reuse the UCBs in other models. To test, I have one superblock that only contains an "integrator block". To autocode the superblock into a UCB, I'm using the "c_ucb.tpl" template provided in the "mx_70.1\case\ACC\templates" directory. I get errors when autocode is running (see attchment).

What am I doing wrong? Am I using the right template? Am I going the right way about this? I do not want to use Hyperbuild, because I will be integrating many superblocks (translated into UCBs) into a single model.

Thanks!

Charles
0 Kudos
Message 1 of 4
(7,548 Views)
Per the error message, the main thing that was missing on the autocode command was the argument procs_only=1.
This assumes that your model is made up of "Procedure" superblock hiearachies and thus creates a set of callable procedures. I'm not presently running with version 7 here, so I can't comment on the particular template that you are using, but I would assume that in contains the correct "wrapper" for a callable User Code block to link into your MatrixX simulation. We have, however, successfully used the approach that you are attempting to create to allow for accelerated simulation of larger models. The main disadvantage with this approach is the the loss of access to the details within each of the "autocoded" models.
0 Kudos
Message 2 of 4
(7,548 Views)
Charles,

One thought I had, and you probably already are doing this, are you generating "procedures only" code? For that matter is the SuperBlock containing the integrator a procedure SuperBlock?

Garrett
Garrett Thurston
gthurston@foliage.com
Phone: 781.993.5540
0 Kudos
Message 3 of 4
(7,548 Views)
Hello Charles;

Others have given you some very good information. I want to let you know that vs70.1 was not released for Windows XP and there may be problems from that direction.

National Instruments has released vs6.3.2 that is Windows XP compatible. There will be an update to vs70.1 in th elate spring of 2004.

If you have not yet taken advantage of the NI Software Subscription Plan (SSP) I recommend you take it into consideration. You can read about SSP at;
http://sine.ni.com/apps/we/nioc.vp?cid=12287〈=US
http://www.ni.com/matrixx/welcome_back_program.htm

Please feel free to contact me directly.

Regards;
Marcus Lites, MATRIXx National Sales Manager
National Instruments
P: 972-742-8353
E: marcus.lites@ni.com
http:\\www.ni.com/matrixx
0 Kudos
Message 4 of 4
(7,548 Views)