certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-dev] Compiling and Running the Federate


From: Waléria Antunes David
Subject: [certi-dev] Compiling and Running the Federate
Date: Wed, 20 Feb 2013 12:37:04 -0300

Hi all,


I'm developing a federated executeCerti.bat to run so I did this:

I created two .bat:
1-) confvars.bat (
containing the environment variables necessary)
2-) executeCerti.bat (It calls the confvars.bat and runs the federated model)

I created a directory called \etc in C:\CERTI_3_4_0\etc and put the confvars.bat this directory \etc.

And I created a directory called \exec in C:\CERTI_3_4_0\exec and put the executeCerti.bat this directory \exec

But when i try to execute in Prompt Command:
1) Run RTIG (ok - this running)
C:\CERTI_3_4_0\exec>executeCerti.bat r
0=executeCerti.bat
1=r
CERTI RTIG 3.4.0 - Copyright 2002-2008  ONERA
This is free software ; see the source for copying conditions. There is NO
warranty ; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

CERTI RTIG up and running ...

2) Run the billard program( ERROR)
C:\CERTI_3_4_0\exec>executeCerti.bat m billard
0=executeCerti.bat
1=m
"C:\CERTI_3_4_0\bin\billard.exe
CERTI Billard 3.4.0
billard: '--name' ('-n') option required
Terminated - Normal

I don't understand this error. Why?

See my code: executeCerti.bat

@echo off

rem ##############################
rem #     implementation/version           #
rem ##############################


rem #################################
rem #  check command line arguments      #
rem #################################
:checkargs
if "%0" == "" goto usage
if "%1" == "" goto usage

echo 0=%0
echo 1=%1

rem #######################
rem #  test for RTI_HOME       #
rem #######################
:rtihometest
call C:\CERTI_3_4_0\etc\confvars.bat
if "%CERTI_HOME%" == "" goto nortihome
if not "%CERTI_HOME%" == "" goto execute

:nortihome
echo ERROR Your CERTI_HOME environment variable is not set!
goto usage

############################################
### (target) execute        #######################
############################################
:execute
SHIFT
set RTI_FEDDIR=C:\CERTI_3_4_0\share\federations
set EXEC=C:\CERTI_3_4_0\bin\
set FILE=C:\CERTI_3_4_0\share\federations\

:executehla
if "%0"=="r" goto exec0
if "%0"=="m" goto exec1

goto finish

rem ##################
rem #  run the RTIG       #
rem ##################
:exec0
"%CERTI_HOME%"\bin\rtig.exe -v 3
goto finish


rem ############################
rem #  run the billard program           #
rem ############################
:exec1
echo "%EXEC%billard.exe
"%EXEC%billard.exe" –n 1 -fTest -FTest.fed
goto finish

:usage
echo usage: executeCerti.bat (r)ti/(m)odel nome_modelo
goto err

:err
echo Terminated - Error
goto end

:finish
echo Terminated - Normal

:end

Can you help me??

Thanks,
reply via email to

[Prev in Thread] Current Thread [Next in Thread]