Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Mathematics
General TopicsResearchOperations ResearchStatisticsMathematical LogicNumerical AnalysisUndergraduate MathAlgebra HelpRecreational Math
Math Software
MapleMathematicaMATLABScilabSASSPSS

Math Forum / Math Software / MATLAB / July 2008



Tip: Looking for answers? Try searching our database.

figToImStream

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matteo - 11 Jul 2008 15:40 GMT
Hi all,

I followed a couple of webinars on deploying matlab
applications and I'm particularly interested in displaying a
matlab plot in a webpage in a .NET framework (unfortunately
the only feature missing in my matlab installation is the
Java Builder component). I read about this sort of hack in
the technical solution :
http://www.mathworks.com/support/solutions/data/1-32LPON.html?product=MN&solutio
n=1-32LPON


but then I saw the webinar "Application Depoloyment with
Matlab" and in the shown example the speaker mentions a
mysterious figToImStream function that would be ad hoc for
my goal, but impossibile to find.

Can anyone know something about this function? Or is there
someone that can provide me a hint on how streaming back
from matlab the image data array representing a plot?

Thanks in advance,

Matteo
Walter Roberson - 11 Jul 2008 17:33 GMT
>I followed a couple of webinars on deploying matlab
>applications and I'm particularly interested in displaying a
>matlab plot in a webpage in a .NET framework

The license terms for this are, ummm, not as clear as they could be.

According to the license.txt file:

THE MATHWORKS, INC. SOFTWARE LICENSE AGREEMENT - Deployment Addendum

8. WEB APPLICATIONS.  Only Programs licensed under the Network Concurrent
  User or Designated Computer Installation Types may be called from
  within a web Standalone Application, provided the web Standalone
  Application does not provide access to the MATLAB command line, or any
  of the licensed Programs with code generation capabilities.  In
  addition, Licensed Users may not provide access to an entire Program
  or a substantial portion of a Program.  Such operation of a Standalone
  Application via a web interface may be provided to an unlimited number
  of web browser clients, at no cost, for Licensee's own use for its
  Internal Operations, and for use by Third Parties.

Network Computer Use is relatively clear, but what is Designated
Computer Installation? For that we have to refer to other clauses
(that are officially in other addendums):

The MathWorks, Inc. Software License Agreement

5. INSTALLATION TYPES.

  5.1. Standalone Named User.  [...]

       Alternatively, for the Windows platform only, Licensee may
       install the Programs on a single, designated, standalone
       computer, provided the Programs are only operated from that
       computer's console by only one individual at any given time (a
       "Designated Computer" Installation Type).  Licensee may
       re-designate the standalone computer to a different standalone
       computer, whether temporarily or not, no more than four (4) times
       per year.  This Designated Computer Installation Type is in lieu
       of the Standalone Named User rights above, not in addition to
       those rights, and is intended to accommodate a single Windows
       computer shared by multiple users.                            

THE MATHWORKS, INC. SOFTWARE LICENSE AGREEMENT - Academic Installation
and Use Addendum

5. INSTALLATION TYPES.

  5.1. Standalone Named User. [....]

       Alternatively, for the Windows platform only, Licensee may    
       install and use the Programs on a single, designated, standalone
       computer as described in Section 5.3 below.  This Designated  
       Computer Installation Type is in lieu of the Standalone Named
       User rights above, not in addition to those rights.          

  5.3. Designated Computer.  The Programs may only be installed on a
       single, designated, standalone, computer, provided the Programs
       are only operated from that computer's console by only one    
       individual at any given time.  This Installation Type is      
       intended to accommodate Program access from a single computer
       shared by multiple users.  Licensee may re-designate the      
       standalone computer to a different standalone computer, whether
       temporarily or not, no more than four (4) times per year.    

So, if I have that right, for web deployment, you have to use either
Network Concurrent License (applicable to several platforms), or else
you have to use a Designated Computer license (Windows only); and
{here's the odd part} since the Designated Computer only permits the
Programs to be operated from the computer's console by only one
individual at a any given time", does that mean that whatever is seen
by the Standalone Application could only be the result of what
someone actually -at- the MS Windows computer console was doing?
That would seem to rather defeat the purpose of interfacing to it
via .NET ...

The addenda considered together also speak of "designated" usage
with respect to servers, but that does not qualify as a
Designated Computer Installation Type as is specifically mentioned
in clause 8 of the Deployment Addendum.

Even if you use the Network Concurrent User license mentioned in clause 8,
it isn't made clear whether you need to count a distinct
Network Concurrent User checkout for each simultaneous access,
or only for each matlab engine you fire up; if you write your
server so that it multiplexes simultaneous requests (e.g., divide
the work for each into manageable clumps and use a state machine to
keep track of what to do next for each connection), then would that
fall within the license terms??
Signature

 "Why does he stagger his mind with the mathematics of the sky?
 Once the question mark has arisen in the human brain the answer must
 be found, if it takes a hundred years. A thousand years."
                                             -- Walter Reisch

Matteo - 11 Jul 2008 18:58 GMT
Sorry probably you didn't understand my post, but anyway if
you take a look at the webinars the mathworks'guys underline
the fact that is feasable and royalty free!

roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <g58202$r2m$1@canopus.cc.umanitoba.ca>...

> >I followed a couple of webinars on deploying matlab
> >applications and I'm particularly interested in displaying a
[quoted text clipped - 38 lines]
>         those rights, and is intended to accommodate a single Windows
>         computer shared by multiple users.              
           

> THE MATHWORKS, INC. SOFTWARE LICENSE AGREEMENT - Academic Installation
> and Use Addendum
[quoted text clipped - 4 lines]
>
>         Alternatively, for the Windows platform only,
Licensee may    
>         install and use the Programs on a single, designated, standalone
>         computer as described in Section 5.3 below.  This Designated  
[quoted text clipped - 34 lines]
> keep track of what to do next for each connection), then would that
> fall within the license terms??
Walter Roberson - 11 Jul 2008 19:38 GMT
Please do not post your reply at the top of what you are commenting on;
it makes it difficult to hold conversations.

>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
>message <g58202$r2m$1@canopus.cc.umanitoba.ca>...
>>
>> >I followed a couple of webinars on deploying matlab
>> >applications and I'm particularly interested in displaying a
>> >matlab plot in a webpage in a .NET framework

>> The license terms for this are, ummm, not as clear as they
>could be.

>Sorry probably you didn't understand my post, but anyway if
>you take a look at the webinars the mathworks'guys underline
>the fact that is feasable and royalty free!

What the Mathworks think of as "feasable" and what you or I think
of as "feasable" are three different things. The material I quoted did
indicate that you were permitted unlimited third-party access at no
extra charge; that ties in with the "royalty free" part of what you
wrote.

However, to the Mathworks people, adding an extra license seat
per simultaneous remote access would be feasable, in the sense of
being a trivial change technically -- you just buy the licenses, get
the new key, and drop it into your license.dat file, possibly
updating only a single line along the way (the one that gives the
maximum TWM base product checkout count.) It's an administrative
issue, not a technical issue.

Similarily, getting a Network Concurrent License rather than
a Dedicated Computer License because you don't care to have a human
tied up running the remote-access program (because Dedicated Computer
License only allows the product to be run at the console) is a
trivial issue in the technical scheme of things.

Note: I am not asserting with certainty that one license is required
per simultaneous access or per simultaneous engine: the license terms
as written are insufficiently clear to make that determination.
Signature

 "And believe me, I was very lousy yesterday.
  I had nothing to say, and, by God, I said it."
                                         -- Walter Wellesley Smith

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.