WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2007-Mar-27 19:29:33

jlliu
Member
Registered: 2007-Jan-25
Posts: 31

Question about new version sysgen2opb

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

 

#2 2007-Mar-27 21:02:18

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Question about new version sysgen2opb

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

 

#3 2007-Mar-28 17:31:40

jyhng
Member
Registered: 2007-Jan-25
Posts: 37

Re: Question about new version sysgen2opb

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

 

#4 2007-Mar-28 23:02:48

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Question about new version sysgen2opb

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

 

Board footer