Filter löschen
Filter löschen

Xfoil error reading input file run from matlab

3 Ansichten (letzte 30 Tage)
Haris Hameed
Haris Hameed am 5 Okt. 2019
Kommentiert: Haris Hameed am 6 Okt. 2019
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 Kommentare
Walter Roberson
Walter Roberson am 5 Okt. 2019
You did not include a copy of the error message ... ?
Haris Hameed
Haris Hameed am 5 Okt. 2019
This error
XFOIL c> H:\code\input.vbs(3, 1) Microsoft VBScript runtime error: Object required: 'Wscrpit'
and it never runs the xfoil.exe

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by