Jump to content

MikaelH

Members
  • Posts

    835
  • Joined

  • Last visited

  • Days Won

    49

Posts posted by MikaelH

  1. QUOTE (pikro @ Nov 11 2008, 10:43 PM)

    Alt+F4,

    The Alt+F4 will close/hide the front panel, and that should normally unload the VI from memory, but as you say Aristos Queue, the VI must have an open reference to itself.

    I always use the filter "Panel Close?" event, and always discard this event, and then gracfully close down everything.

    The last thing I do is to call the EXIT LabVIEW function (only if the App.kind=RunTime), this will close and unload all runing VIs.

    Cheers,

    Mikael

  2. QUOTE (Norm Kirchner @ Oct 14 2008, 05:50 AM)

    Use vit's along w/ VI server or reentrant FP (personal choice) and each time that you spawn a new window, make sure the manager holds it and manages it as needed.

    ...and then this "Reentrant FP Window Holder" -VI only contains one big SubPanel, that is set to "Fit control to Pane".

    //Mikael

  3. Hi Niklas

    This is a perfect opportunity to use an OO approach.

    I did a simple "Creature in a maze" solution that you can download from here if you are interested.

    http://goop.endevo.net/GDS/MaceGame.zip

    (These classes needs a class template that you can get by running the installer below)

    http://goop.endevo.net/GDS/OpenGoop_Installer_03.zipThere is also a debug video that shows how to debug the objects using GDS here:

    http://goop.endevo.net/GDS/videos/GDS_Debug.swf.html

    Lycka till,

    Cheers,

    Mikael

  4. QUOTE (Eugen Graf @ Aug 2 2008, 04:12 AM)

    I want to make a general class for many projects and put it into the user.lib

    Is it Ok? Does anybody do so?

    We do so, our reusable library consists both of single VIs and classes and we place them all in the user.lib, we also have that folder under version control.

    //Mikael

  5. Hi

    I just came back from New Zealand where I held the OO course in Auckland at a company.

    During the first day of the course I go through the principle of OO-Design and Analysis and objects by flow and references.

    The second day we create a whole test system application from a problem description, using UML class diagram and then we implement it.

    I like to customize the course as much as possible depending on the student needs, so I normally like to know what kind of systems the students are developing.

    Cheers,

    Mikael

  6. QUOTE (crelf @ Jul 19 2008, 03:04 AM)

    Rumour has it that the course won't just concentrate on LVOOP, but also include some Endevo stuff too :thumbup:

    I can confirm the rumour :-) Since I'm teaching it.

    The course is on Sunday and Monday, so YOU won't miss the any of the NI-week days.

    Cheers,

    Mikael

  7. Hi Gustavo

    I've created dot net code that I call from LabVIEW without any problem, I also got the dot net code to invoke a VI when special event happens that the dot net code is controlling.

    I don't really understand what you are trying to achieve.

    But just to be sure, have you opened/called a constructor of the dot net class before you used it?

    You can create several constructors for a dot net class, the constructor in the example below takes 3 arguments.

    post-941-1216242998.png?width=400

    Cheers,

    Mikael

  8. Hi

    This is the design your leaning towards:

    post-941-1214191953.png?width=400

    I would probably use a composite aggregation, which means I would have to solve the creation of the correct I2C object internally in the battery create methods.

    Using this way it makes it easier to use the battery class, as you don't have to worry about the communication interface.

    Of cause it will be harder to develop the battery class but you top VI will be simpler.

    For the I2C communication I would probably not do an active object design to start with, I might use a static attribute in the I2C-Implementation classes which I use to synchronise the read and write to the batteries so I don't run into any race conditions.

    Good luck

  9. QUOTE (Paul W @ Jun 13 2008, 04:26 AM)

    Error message is:

    This labVIEW class cannot find its parent class. (That is understandable)

    Any other ideas how to fix it? I am a noob so the instructions need to be rather precise.

    If run into strange problemslike this, you could always open the lvclass-fle in a text editor and try to modify it manually.

    Remove this line: <Property Name="NI.LVClass.ParentClassLinkInfo" Type="Bin">....................</Property>

    and the reopen the project.

    I always use the GDS function "GOOP->Modify this class inheritance", to do this, but in your senario it can't solve your problem.

    //Mikael

  10. QUOTE (Jim Kring @ May 28 2008, 04:42 AM)

    Hi

    I hope NI will abandon the LLB structure they are using in the exe-file or at least add folder support in the a LLB, this will make it possible to store everything inside the exe-file.

    One other painful thing I have is that a quite large application, with lot of classes and lvlibs, it takes me more then 30 minutes to build an executable and during that time I can't use my computer for something else, since LabVIEW uses all my resources.

    Cheers,

    Mikael

  11. QUOTE (Yen @ May 22 2008, 02:54 AM)

    I did a test right now.

    http://lavag.org/old_files/monthly_05_2008/post-941-1211425248.png' target="_blank">post-941-1211425248.png?width=400

    ..and when sitting at the office and accessing my local network at home, it took 1448 ms per image.

    So on the same local network you should probably be able to get 2 images per second.

    You might need to use normal TCP/IP function so you don't need to reconnect every time, and use a normal HTTP Get command.

    //Mikael

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.