After the target is booted and the generated code is compiled, you can run the executable. If you intend to run the model directly on the embedded prototyping system target, you should start the target server on the host machine, load the executable, and start it on the target.
The target server can be started from the command line using the following command:
Load the executable using the following command:
Run the executable using the following command:
If you intend to run the model using the
WindSh
remote shell, you must complete the following:
2. RunWindSh
.These actions can be done using the
run_windsh
batch file, whose full name (including path) should be printed into the#Run script name
paragraph of the<target>.rtrg
file. It looks something like the following:In the command,
<target name>
is the name or TCP/IP address of the target machine.Note: The filesrun_windsh.bat
andrun_windsh.csh
are located in the encrypted VxWorks distribution file.The
run_windsh
batch file has two input parameters (target name and executable name) and looks like the following:echo ioGlobalStdSet(0,vf0) >> run_model.bat - reopening of the virtual I/O channel 0echo ioGlobalStdSet(1,vf0) >> run_model.bat - designation of standard input fileecho ioGlobalStdSet(2,vf0) >> run_model.bat - designation of standard error fileecho logFdAdd(vf0)" >> run_model.bat - sending logging output to the virtual channel 0echo ld 1,0, "%2" >> run_model.bat - download of the executableecho vxmain >> run_model.bat - model execution startingstart tgtsvr %1 –C –c%WIND_BASE%/target/config/pc486/vxworks - target server starting