Menu

#4 chp 1 1.2 example gives error.

open
nobody
None
5
2004-10-07
2004-10-07
Anonymous
No

Hi,

I am a graduate student trying to use SUGAR in my MEMS
class project.

I downloaded the windows package and installed it. I
did not modify any file.

I have difficulty running the first example (chp 1 1.2
) in the Users Guide. I have no idea what I am doing wrong.

This is what I did.

>> ver
-------------------------------------------------------------------------------------
MATLAB Version 6.5.0.180913a (R13)
MATLAB License Number: 196012
Operating System: Microsoft Windows XP Version 5.1
(Build 2600: Service Pack 1)
Java VM Version: Java 1.3.1_01 with Sun Microsystems
Inc. Java HotSpot(TM) Client VM
-------------------------------------------------------------------------------------
MATLAB Version 6.5
(R13)
Simulink Version 5.0
(R13)
Bioinformatics Toolbox Version 1.0.1
(R13SP1+)
Communications Toolbox Version 2.1
(R13)
Control System Toolbox Version 5.2
(R13)
Image Processing Toolbox Version 3.2
(R13)
Optimization Toolbox Version 2.2
(R13)
SB2SL (converts SystemBuild to Simu... Version 2.5
(R13)
Signal Processing Toolbox Version 6.0
(R13)
Wavelet Toolbox Version 2.2
(R13)

>> addpath c:\programs\sugar31-040403

>> run c:\programs\sugar31-040403\sugar_init.m
SUGAR 3.1
Build system: i686-pc-cygwin
Build date : Fri Apr 4 10:59:37 2003
Bug reports : dbindel@cs.berkeley.edu

>> net=cho_load('cantilever.net');
error: table index is nil
stack traceback:
1: function `relpos_get_elist' at line 23 [file
`c:\programs\sugar31-040403\src\lua\relpos.lua']
2: function `relpos_add' at line 15 [file
`c:\programs\sugar31-040403\src\lua\relpos.lua']
3: function <29:file
`c:\programs\sugar31-040403\src\lua\std2.net'> at line 45
4: function `beam3d' at line 45 [file
`...:\programs\sugar31-040403\src\lua\subnetize.lua']
5: main of file
`c:\programs\sugar31-040403\cantilever.net' at line 8
error: attempt to index local `nbr' (a nil value)
stack traceback:
1: function `relpos_treewalk' at line 59 [file
`c:\programs\sugar31-040403\src\lua\relpos.lua']
2: main of string "relpos_treewalk()" at line 1
??? Error while interpreting net file

Error in ==> c:\programs\sugar31-040403\src\c\sugarmex.dll
Error in ==>
c:\programs\sugar31-040403\src\matlab\cho_load.m
On line 12 ==> handle = sugarmex('use', file);

>>

Discussion

  • Nobody/Anonymous

    cantilever.net

     
  • tran duc tan

    tran duc tan - 2004-10-15

    Logged In: YES
    user_id=1104679

    You have to put your file *.net exactly in your workspace.
    It's mean that you have to put 'cantilever.net' to your
    workspace.

     

Log in to post a comment.