08-29-2006 03:40 PM
08-30-2006 08:30 AM
08-31-2006 07:49 PM
09-01-2006 06:35 PM
09-05-2006 09:49 AM
12-31-2008 03:15 PM
Hi....Is it possible to create my own classes using xmath programming language in MATRIXx?.....I tried with an evaluation copy of MATRIXx and could not find any command that creates user defined class.....is it because I have got evaluation copy?.....I know that it is possible to do it on MATLAB and also LabVIEW is not really an object-oriented programme although it has OOP toolkit.
Thanks in advance 🐵
MM
01-05-2009 03:34 PM
Xmath has the concept of a MathScript Object (MSO). It is "object-like" in the sense that you can create an 'object' (just another variable in Xmath) that contains its own instance data and implements functions and commands that take the MSO as a formal argument. Due to syntax and operations limitations, you have to think really generally about the OOP concepts and not focus on the features of particular implementations of OOP (like C++) when comparing MSO capability.
If you're thinking about porting ML classes, it's not likely to be a direct translation, but then again, it will depend on the sophistication of the the ML code you're starting with.
Check out the MSO chapter within the Xmath UserGuide (PFD document) and there is also an MSO help topic as well.
With a SystemBuild model, v7.x has a concept of a 'Component', which, like MSO, thinking generally about OOP, might be considered somewhat OOP. It is a more of a sophisticated model hierarchy re-use mechanism. In v8, this feature is removed awaiting an upgraded replacement.
bob