AnsweredAssumed Answered

vrf AW: SAVING MATLAB FIGURE IN BMP FORMAT AUTOMATICALLY IN VEE

Question asked by bernhardt on Nov 18, 2003
Hi,

I used : saveas(fig,'c:     emp     est.jpg') . No problem.
Maybe you should try : saveas (fig,'d:     .bmp');

Best regards
M. Bernhardt
---------------------------------------------
SOMATEC - Software fr Maschinensteuerungen
und Automatisierungstechnik GbR

Jagdweg 7a
D-82041 Deisenhofen

Telefon :  (089) 613 984 94
Fax :      (089) 613 981 23
Email :    Bernhardt@somatec.de
homepage : www.somatec.com
---------------------------------------------

-----Ursprngliche Nachricht-----
Von:      YoshidaE@ee.nec.de [mailto:YoshidaE@ee.nec.de]
Gesendet:     Mittwoch, 19. November 2003 12:21
An:     VRF
Betreff:     [vrf] SAVING MATLAB FIGURE IN BMP FORMAT AUTOMATICALLY IN
VEE PROGRAM


Hi all,

Can someone help me with Matlab under Vee Pro 6.1. ?

I create a figure by using matlab script under vee pro and I would like to
save it automatically (that means without cliking on the matlab figure
window FILE-> EXPORT-> bmp file name). I would like also to define the bmp
filename in vee program.

I have done a first matlab script, without controlling the bmp filename, as
following:

*************** starting of matlab script
****************************************
fig = findobj ('Type','Figure','Tag',tagname);
if isempty(fig),
     fig=figure('Tag',tagname);
else,
     figure(fig),
end,
scatter(X,Y,S,C);
title('scatter');

saveas (fig,'d:     .bmp','bmp');

*************** end of matlab scrip
****************************************
X,Y,S,C and tagname are the inputs of Matlab script box.

These lines are defined by default by selecting the "scatter" function,
except the last line.

But when I execute this, I have the following message with an OK button and
Abort button:
"Reference to uninitialized variable dbstat in
veepro6.1matlab     oolboxmathlabgraphicsprivatedisabledberror"
I click OK and the figure is saved correctly.

Well, I have the figure saved as I wanted, but it is still not automatic.

Did someone already have already done an automatic saving of matlab figure?

Thanks for your help!

Elisabeth.


---
You are currently subscribed to vrf as: Bernhardt@somatec.de
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes