Jump to content

MikaelH

Members
  • Content Count

    785
  • Joined

  • Last visited

  • Days Won

    40

MikaelH last won the day on November 27 2018

MikaelH had the most liked content!

Community Reputation

171

About MikaelH

  • Rank
    The 500 club
  • Birthday 12/25/1972

Profile Information

  • Gender
    Male
  • Location
    Sydney

LabVIEW Information

  • Version
    LabVIEW 2016
  • Since
    1996

Contact Methods

Recent Profile Visitors

5,754 profile views
  1. Hi Yes start with the Projected Provider documentation and the look through examples (e.g. the OpenGDS). I started in LV8.2, and lots of the issues I had, have probably been fixed since then. But one thing to remember is that it doesn’t (or at least didn’t) like to do things in parallel. E.g. if you add an item to the project tree (e.g. a new class), then that could trigger some other project provider calls (e.g. a new item added to the project window), so I had to add a small wait after those functions. If I didn’t do that LV could crash from time to time, that’s why you can find a lot to 150ms wait in the Open GDS code. Debugging the project provider code is a bit tricky. You can save a Break point on the BD of the provider VI, and then restart LV. The first time the code hits that break point the You can debug the code, but after that you Can debug the VI anymore, you have to restart LV again. Make sure you open VIs in the correct application instance if you want to modify them, and always remember to close all the referees opened in the provider VIs.
  2. Is this what you are doing? SubPanel_Main.zip
  3. It works great for me, if you right click and select: "FatBits", it becomes a bit bigger and could be a good tool to create a 32x32 icon (That's the only size it supports). There are no Property/Invoke nodes for this control, and Value change event don't seems to work 😞
  4. Why not merge it into OpenGDS's wire editor and create a Pull request.
  5. Sorry missed the lvclass files. BTW, I used OpenGDS to create the class and methods. XY-Shape.zip
  6. Try something like this 🙂 XY-Shape.zip
  7. FYI, version 1.2.38 has an issues when creating Override methods. Please use the latest one 1.2.39 https://opengds.github.io/ You won't believe what I had to do to get it working ;-), coding VIs that runs in the project provider application instance is not always easy. A VI that works fine when you run it normally, could still crash/freeze LV when it's running under the project provider application. I hope it will be easier in NXG.
  8. I would love to get more time to show everyone all the nice and fun feature that exists in the GDS tool. If anyone like to help please feel free :-). I'm aiming to document the "Convert Text based code to LabVIEW" next. You can always test it and see if you understand how to use it... You can google come Java or c# Design pattern examples (e.g. Observer pattern), and convert those classes straight into LabVIEW. I also want to document the API VIs, if you haven't tested them you can find them + examples here: LabVIEW 20XX\resource\Framework\Providers\Open_GDS\API
  9. The new version is ready for download under Untested Version https://opengds.github.io/
  10. I don’t agree ?, you just need to know where to look ? Every design pattern that is added to a class, have the ability to add new Method templates and you’ll find them here. This is the same if you add the Active Object Design pattern there is a method templates that helps you send and receive a message form the active process. BTW, I've created the new version with new templates, I just need to upload them, I let you know when it's done.
  11. The GetAttributes checks the DVR ref and generates a 1556 error if the DVR is invalid, but of course the DVR Ref could be killed externally between the Get Attribute and when the IPE node is executed...there is always a chance.
  12. Some test code I made of doing 500 Get Attributes of a class with some large data sets. I would try to avoid having to much data in the Attribute, but if I need it I might user the Reference Variable Design Pattern GDS can apply to a class. GetAttribute.zip
  13. You are right the read will be much faster if you use the DVR and use the IP Structure to just extract the element you need form the cluster. I'll update the templates to use this method.
×
×
  • Create New...

Important Information

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