MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced 'LOAD' for systembuild models using SBA

If I want to load a systembuild model using a script, I can use the command LOAD as follows :
load {build} file="model.sbd"
But if I want to load only a part of the model that is stored in the file, how do I do then? It is easy if I use the catalog browser and choose "Load..." from the File menu, then mark the model and click the "Advanced" button. Then it is possible to open single superblocks (or more) in the model. But if I want to do this from a script using SBA, how do I do?

/Torbjörn
0 Kudos
Message 1 of 4
(7,474 Views)
There is no direct method to load a portion of a model using SBA. To access only part of a model you can either:
Use SBA to delete blocks that you are not interested in, but you would first have to load the whole model using Load.

or:

Use the GUI to break your model up into seperate files by using the "selected" superblocks option. You should create a superblock for each portion of the model you want to access. Worst case you would have one file per SuperBlock. That way you can choose which files to load.

There are other possibilities of using library's, but this will only allow you to load a reference to library files. You would not be able to use sba commands to edit the original model.

Joseph D.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(7,474 Views)
Thanks Joseph for your answer allthough it wasn't what I wanted hear. My problem is that I have a complete model which we have in a configuration management system. This model is continuous and I am developing a command that takes the continuous model and make it discrete. What I wanted to do is to test different sampling periods for different parts in the model. So when the complete model is made discrete I want to resample limited parts of the model (containing dynamic blocks) using different sampling periods. The simplest way I thought was to reload the specific continuous part of the original model and make this discrete. If there had existed an advanced LOAD then this would have worked fine. Now I have to divide the original model into different files. Th
is also works of course, considering it is only for debugging. But I will appreciate an advanced LOAD from the command window in the future!

/Torbjörn
0 Kudos
Message 3 of 4
(7,474 Views)
Thank you for your product suggestion. I have passed your concerns on to our R&D department. I make no guarantees when/if it will be implemented, but please know that it will be looked into.

Joseph D.
National Instruments
0 Kudos
Message 4 of 4
(7,474 Views)