On Tuesday 12 June 2007 21:39, marco tozzini wrote:
> Hi all,
>
> I wrote a code to drive 1Wire bus from matplc
>
> It correctly compiles as driver stand alone
> I created a new branch in demo dir called basic_1w
(derived from one of
> the basic demo)
> I compiles correctly
>
> Unfortunately this is the result from MatPLC start
command:
>
> marco asus-debian:~/mat/weekly/mat-weekly/demo/basic_1w$
> ../../tools/run/matplc -g
> Error initializing the plc.
>
> How can I debug this?
This most common reason for the above to occur is because
the matplc is
already running.
It is possible to have several running simultaneously, and
it would only take
a little changing of the config file to do it. However, I
sugest you try
running the
matplc -d
command to dump the current state of the matplc.
You can stop the matplc with the '-s' switch
matplc -s
Another sugestion is to use '--PLCdebug=9' when starting up
the matplc to
increase logging verbosity, then check the log files (by
default matplc.log
on the current directory).
Since the matplc is one process for each module, you can
start each module
with a different logging verbosity level. Use the same
switch when starting
each module/process if you want to increase verbosity for
that
process/module.
> Can I copy/upload my actual work somewhere so that
someone else can have
> a look at it and fix some error?
>
If you wish, you may send your config files and error
logging files directly
to me, and I'll look them over.
Cheers,
Mario.
------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
MAT-devel mailing list
MAT-devel lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mat-devel
|