Hello.
It is just writing the lua commands in a textfile.
The program calculates the values and build the lua lines. The VB program then
starts femme:
Public Function CreateSimulation(DosPath As String,
Location As String, LuaFile As String) As Boolean ' start
femm to create bitmap With
tShellAndWait .sCommand = Location
+ "femme.exe -lua-script=" + DosPath + "\S" + LuaFile + "
-windowhide" .bLogFile =
0 .sLogFile =
"" .bNoTerminate =
False .lMilliseconds =
90000 End With ShellAndWait
tShellAndWait If tShellAndWait.bTerminated = True
Then CreateSimulation =
False Else
CreateSimulation = True End If End
Function
Just click on SHOW FLUX PLOT
The whole VB project (all the components) are not
so very well documentated so sending you the project will confuse
you.
Regards,
Eric.
----- Original Message -----
Sent: Tuesday, September 16, 2003 9:18
PM
Subject: Re: [femm] FEMM & C++
Do you have a sample in VB ?
Thanks
Fabio
----- Original Message -----
Sent: Tuesday, September 16, 2003 9:12
AM
Subject: Re: [femm] FEMM &
C++
Hi Ahmad.
May I advice to use C++ to generate the
LUA-script? Since LUA and Femm works very well together I think (feeling)
that you try to build a new LUA interface. I use VB to build LUA scripts and
therefore I don't have to touch Femm. The only think that is a bit tricky is
that sometimes Femm generates an error message that need an OK-click. The
only thing you have to change in the Femm source is to take out all those
msgbox and replace them with a log or so.
Best regards,
Eric.
----- Original Message -----
Sent: Tuesday, September 16, 2003
3:35 AM
Subject: [femm] FEMM & C++
Dear all
I use FEMM and C++ in my reseach. I
know that FEMM is written in C++ and I downloaded the source
files.
I want to use C++ with FEMM instead of LUA language to do my
work. can anyone explain to me how to compile the program and linking
it with the FEMM.
I can use C++ and FEMM separately, but I
want to link them like LUA language.
any example will be
good.
thank you all
ahmad
Your
use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Your
use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|