AnsweredAssumed Answered

vrf MATLAB Script engine

Question asked by VRFuser on Jul 25, 2002
Hi,

I am not sure that you can (at least in a low stress manner).  When VEE 1st encounters a Matlab object it fires up the server (as you have noticed, a fairly slow process - so always good to use a dummy function at start up).  Now, the server will stay up until VEE exits (upon which it will close down the server).

It gets interesting when your Matlab stuff is in an imported user function or you access a VEE function via the COM Server.  In the 1st instance, you can get multiple copies of Matlab running if the imported UFs have Matlab objects, but main does not.  Solution, fire up a dummy Matlab object in main and everything should track okay.  I have not figured out a clean way of controlling the Matlab engine when you go in from the COM server i.e. you call a UF with some Matlab in.  I think what happens is the VEE UF sees some Matlab script and says, hey I need to boot Matlab.  When the UF exits, it does not close Matlab (why should it, if you are going to use another UF or the same one 0.2 msec later, you do not want to kick up another Matlab process).  And now here it is - another UF is called, it does not know what else has been going on, sees some Matlab stuff that it has got to do and... up comes another Matlab process.  In this instance, I guess you would need to resort to a li
ttle bit of 'process killing'...

Hope this helps

Andy

-----------------------
Andy Street
Technical Consultant
Agilent Technologies
Tel: 01189-275395
Mob: 07765-897003
e-mail: andy_street@agilent.com

-----Original Message-----
From: majed.ali@se.abb.com [mailto:majed.ali@se.abb.com]
Sent: 25 July 2002 08:55
To: vrf@lvld.agilent.com
Subject: vrf MATLAB Script engine


Hi!

How can I close the MATLAB Script engine from my VEE?

Any feedback would be appreciated.

Best regards

Majed Ali
ABB Corporate Research


majed.ali@se.abb.com


---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------

Outcomes