Clear Filters
Clear Filters

Xfoil error reading input file run from matlab

3 views (last 30 days)
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 Comments
Walter Roberson
Walter Roberson on 5 Oct 2019
You did not include a copy of the error message ... ?
Haris Hameed
Haris Hameed on 5 Oct 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

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 5 Oct 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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!