Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1067019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:05:50+00:00 2026-05-16T20:05:50+00:00

Hello I’m trying to control FastHenry2 via Windows automation with Matlab. I’m new to

  • 0

Hello I’m trying to control FastHenry2 via Windows automation with Matlab.
I’m new to that topic. If I understood everything right I have to open it:

ax=actxserver('FastHenry2.Document');

and than run the function I want with the handle?

ax.Run('coils1.inp') 

but that doesn’t work. Matlab can’t find Run and uses run instead, which is some build in Function not related at all with the problem. Also all other Function this UI should support don’t work either. For Example FastHenry2.IsRunning or FastHenry2.GetInductance. So I guess I do something wrong with the whole UI handling. FastHenry provides an example script using VBS which I attached bellow and since it works fine FastHenry should be installed right on computer. I’m thankful for every hint I can get.

so long
eactor

The following VBS example works fine

Dim FastHenry2
pathPos = InstrRev(Wscript.ScriptFullName, Wscript.ScriptName)
path = left(Wscript.ScriptFullName, pathPos-1)

Set FastHenry2 = CreateObject("FastHenry2.Document")
couldRun = FastHenry2.Run("""" + path + "coils1.inp""")

Do While FastHenry2.IsRunning = True
  Wscript.Sleep 500
Loop

inductance = FastHenry2.GetInductance()
WScript.Echo "Coils1 mutual inductance is " + CStr(inductance(0, 0, 1))

FastHenry2.Quit
Set FastHenry2 = Nothing
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:05:51+00:00Added an answer on May 16, 2026 at 8:05 pm

    You might need to use an alternate syntax. Instead of

    FastHenry2.Run('coils1.inp')
    

    try this.

    invoke(FastHenry2, 'Run', 'coils2.inp')
    

    I’ve had to do this for some methods on the Excel.Application ActiveX control. I’m not clear why the first syntax doesn’t work in some cases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello i am new to android , i am trying to send array of
Hello everyone and thanks for your help! I currently have this program that renames
Hello all and a Happy New Year SITUATION: I have some tables in MySQL
Hello everyone, var stage = new Kinetic.Stage({ container: 'container', width: 1230, height: 40 });
Hello I am working on a small script that will allow me to parse
Hello I'm making RSS reader and I'm using DOM. Now I stuck, trying to
hello all i am new to iphone development i am working on a application
Hello i am looking for a very basic (lightweight) jquery lightbox solution that i
Hello I am trying to implement a wake lock for an application. PowerManager pm
Hello I am trying to make an invisible button (still functional and clickable), because

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.