Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Not sure if this will help in your case, but here is what I discovered:

When I was running the .dyr through the gui I could have the PLBVFU1 file declared like this:

BusNr 'PLBVFU1' machID 1 1 'PLBFNAME' Ubase Fbase 0 0 /

However, when I ran it in a script I would receive the error that you had. In order to solve that and make the file discoverable, I needed to declare the model like this:

BusNr 'USRMDL' machID 'PLBVFU1' 1 1 3 4 3 6 1 1 'PLBFNAME' Ubase Fbase 0 0 /

Also, I have my scripts in a separate directory from my dynamics file. It is necessary that the PLB file be in the working directory (e.g. the directory where your script is ran from).