필터 지우기
필터 지우기

Xfoil error reading input file run from matlab

조회 수: 3 (최근 30일)
Haris Hameed
Haris Hameed 2019년 10월 5일
댓글: Haris Hameed 2019년 10월 6일
i created input file as a vbs scrpit. now want to run the xfoil using the dos command
dos(cscript//nologo input.vbs | xfoil)
but it is giving me error
can someone guide me where i am doing mistake
the input.vbs is given below
you will need NACA0012.dat and xfoil exe for this
Wscript.sleep 100
Wscript.echo "load NACA0012.dat"
Wscrpit.sleep 1000
Wscrpit.echo "ppar"
Wscrpit.sleep 1000
Wscrpit.echo "N 160"
Wscrpit.sleep 1000
Wscrpit.echo ""
Wscrpit.sleep 1000
Wscrpit.echo ""
Wscrpit.sleep 1000
Wscrpit.echo "oper"
Wscrpit.sleep 1000
Wscrpit.echo "visc"
Wscrpit.sleep 1000
Wscrpit.echo "1.852014e+04"
Wscrpit.sleep 1000
Wscrpit.echo "Mach"
Wscrpit.sleep 1000
Wscrpit.echo "1.000000e-01"
Wscrpit.sleep 1000
Wscrpit.echo "iter"
Wscrpit.sleep 1000
Wscrpit.echo "600"
Wscrpit.sleep 1000
Wscrpit.echo "alfa -4.000000"
Wscrpit.sleep 2000
Wscrpit.echo "init"
Wscrpit.sleep 2000
Wscrpit.echo "pacc"
Wscrpit.sleep 2000
Wscrpit.echo "NACA5610pol1.pol"
Wscrpit.sleep 2000
Wscrpit.echo ""
Wscrpit.sleep 2000
Wscrpit.echo "iter"
Wscrpit.sleep 2000
Wscrpit.echo "600"
Wscrpit.sleep 2000
Wscrpit.echo "aseq -4.0 0.25"
Wscrpit.sleep 2000
Wscrpit.echo "aseq 0.25 12.0 0.25"
Wscrpit.sleep 2000
Wscrpit.echo "pacc"
Wscrpit.sleep 2000
Wscrpit.echo ""
Wscrpit.sleep 2000
Wscrpit.echo "quit"
cannot attached it so just pasted it
  댓글 수: 4
Walter Roberson
Walter Roberson 2019년 10월 5일
You did not include a copy of the error message ... ?
Haris Hameed
Haris Hameed 2019년 10월 5일
This error
XFOIL c> H:\code\input.vbs(3, 1) Microsoft VBScript runtime error: Object required: 'Wscrpit'
and it never runs the xfoil.exe

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2019년 10월 5일
The third line of your input.vbs file contains
Wscrpit.sleep 1000
when it needs to contain
Wscript.sleep 1000
scrpit compare to script

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by