Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. RobynC

    Port Dimensions error, embedded Matlab/constant block

    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...
  2. RobynC

    Problem compiling c file to mexw32

    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...
  3. RobynC

    VBA & FEMAP retrieve bad elements to excel n make group in FEMAP

    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...
  4. RobynC

    Exit Main Sub from within Internal Sun

    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.
  5. RobynC

    Exit Main Sub from within Internal Sun

    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...
  6. RobynC

    Exit Main Sub from within Internal Sun

    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.
  7. RobynC

    Exit Main Sub from within Internal Sun

    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
  8. RobynC

    Exit Main Sub from within Internal Sun

    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...
  9. RobynC

    Element Orientation Vector

    Thanks, will give that a go
  10. RobynC

    Element Orientation Vector

    Oh sorry, yes that would help. Am using FEMAP
  11. RobynC

    Element Orientation Vector

    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...
  12. RobynC

    Boundary Conditions

    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...
Back
Top