You are not logged in.
hi,
When I use the new version sysgen2opb to run a simple example--adder.mdl, the following error occurs.
Error: The script needs From/To Regs within the model
But if I use the old version, it works well.
Thanks
Offline
On my machine, the current version of the script (from the repository) works fine with the simple adder model.
-Make sure you're using the latest version of sysgen2opb
-Clear MATLAB's toolbox cache ('clear toolboxcache' in MATLAB)
-Test the script against the known-good Sysgen models from our workshop (see Lab 2 at the workshop page).
Offline
Hi,
I'm using the latest version of sysgen2opb in the repository (Revision 557), and it works with the Lab2 adder example you posted. However, when I ran it with a model using shared memory, it gives me an error:
sysgen2opb('SharedMem', 'smon')
??? Undefined function or variable "smChoice".
Error in ==> sysgen2opb_sm at 54
smChoice = smChoice;
According to >> help sysgen2opb, if I want to use shared memory I can just type 'smon' as the second argument. I believe the error occurs because smChoice is uninitialized in this case, and the code at line 54 should be replaced with:
smChoice = varargin{1};
or
smChoice = 'smon';
or something to that effect to set smChoice to 'smon'.
- Joshua
Offline
That's definitely a bug, left over from my hacking at rev 551. I just commited an updated script that works for a simple model with From/To regs and shared memories. Let me know if you still get errors.
Offline