フィルターのクリア

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
  1 件のコメント
Haris Hameed
Haris Hameed 2019 年 10 月 6 日
got that, thank you
it was the mistake

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by