Hi,
I hope you can help. I am trying to set up a test of an imbedded Matlab function I have produced. I have it set up with a series of constant blocks that get their values from an initialisation script.
Whenever I run it, I get the following error:
??? Error using ==> sim
--> Error...
Hi. I'm trying to upgrade a simulator for 6.5.1 to 2007b (7.1?) and to do this I need to recompile all the .dll files to make them .mexw32 files.
I am starting off with a matlab m file.
I then use the command
mcc -l csma.m (csma.m is the file name)
to convert the file into c,
I am...
Have you tried asking this in the FEMAP forum on this site. I speant a few months last year interfacing with FEMAP from VBA and they were very helpful, else there is also a FEMAP group in Yahoo who are very good, responces tend to be fairly slow due to the small number of people using it, but...
OKay, I will try to do that. At the moment I'm working on a fairly specialised program (automating some finite element analysis - A wonderful starter job!) But will look into using functions more, since as at present I only use them for some simple calculations.
Thanks, that's interesting, I hadn't thought of doing it like that. So you can pretty much write anything as a function then as long as it has a quantifiable outcome?
I think for this program I will use prost's method as there would be a fair amount of code in the function's If and End If...
Thanks prost, that is very helpful, and thanks for explaining it so well. I'm just learning VBA so replys that explain why you would want to do something as well as how to do it are greatly appreciated.
Just to clarify when I say Main Sub I don't mean one called 'Sub Main()' I just mean that its a Sub that does little more than call the other subs in the correct order, so that the code is nicely split up into easily understandable blocks
Hi, I'm quite new to VBA.
I have a main sub which calls other subs in order to run. If a condition in one of these Subs is met I want to exit the main sub. Using 'Exit Sub' just exits the internal sub rather than the whole program. I remember seeing how to do this somewhere a while back but...
Hi I have a similar question to the one discussed here.
I am trying to mesh a line (set of curves) that uses all three golbal planes with beam elements. Is there a way I can make the element orientation vector to be always perpendicular to the direction of the curve, rather than being relative...
I'm trying to program FEMAP using VBA through Excel. Am quite new to it and am having problems applying boundary conditions. I want to constrain a point (of which I know the ID) in all six dof. I am trying to use feBCSets and feBCGeom to do this. The code runs without errors but appears to...