close matlab through eviews if the program is open

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator

salahaddin
Posts: 16
Joined: Thu Dec 11, 2014 7:11 am

close matlab through eviews if the program is open

Postby salahaddin » Tue Oct 24, 2017 5:01 pm

Dear all,

I have integrated matlab into eviews. I want eviews to close matlab command line using xclose if matlab command line is already open. Otherwise, skip the command. Could you please help? thanks in advance.


Best,
S

EViews Steve
EViews Developer
Posts: 448
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: close matlab through eviews if the program is open

Postby EViews Steve » Wed Oct 25, 2017 8:30 am

I'm not sure what you're asking for.

You can change the type of MATLAB instance that EViews launches via XOPEN by changing the Program ID that is used. If you go to our Options menu/General Options/External program interface dialog, you will see a dropdown for MATLAB that contains any Program IDs found in your registry.

Here's a list of Program IDs (Programmatic Identifiers) available from MATLAB:
https://www.mathworks.com/help/matlab/m ... hworks.com

The Matlab.Application.Single Prog ID will prevent EViews from re-using any current instance of MATLAB you might have running already. Calling XCLOSE on this will shutdown the dedicated instance and leave yours running as usual.

Be sure to restart EViews and shutdown all instances of MATLAB before trying out any new Prog ID setting.

If this doesn't help with your issue, please describe in detail (with screenshots) of what you're seeing and what you'd like EViews to do.

Steve


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 8 guests