Jump to content

Neil Pate

Members
  • Posts

    1,156
  • Joined

  • Last visited

  • Days Won

    102

Everything posted by Neil Pate

  1. I gave quite serious thought to whether I should post or not as I did not really want to derail the thread. However, that joke is perhaps in my top two of tech jokes I know, it is too good to not share. The other one is.. “Whenever faced with a problem, some people say `Lets use AWK.' Now, they have two problems.”
  2. The best thing about UDP jokes is that I don't care if you get them or not.
  3. I regularly use the "Explore" option from a build spec, it normally works as expected. Just yesterday LV2015 SP1 would take me to a different build spec folder when I did this. Very strange indeed.
  4. Sorry, I will check out the community page and keep my comments there. (sometimes I get my tone wrong after being handed two babies at 6 AM)
  5. Thread hijack! DCAF, (de-caf, right?). Looks interesting, but am a bit put off by the code smells in this screenshot...
  6. Last year I tinkered with one of the Linux based cDAQ systems, and yes it supported a GUI. I did not try any kind of events, just wanted to show the FP of the RT code for info purposes. Some strange things happened though, some of the indicators just would not update even though they were being fed data in the same loop as others which were working. I had no real use-case for the GUI, it was more out of curiosity, so I left it there.
  7. Sure I know about the CTRL-drag trick, I use it all the time. The problem is I use locals seldom, so most of the time there isn't another one to clone nearby on the BD.
  8. I use locals sparingly, but in my typical use case where I really just need to use a value in more than one place (lazy yes, but not worth the effort to do it any other way) I need to read from a local rather than write to it. The default condition is to write though, so I need to change my virtually every time I need to use one. Am I the odd one out here? Don't suppose there is some SuperSpecialIniKeyForDefaultLocalVariableDirection?
  9. Did not know about this workaround. Thanks!
  10. So of course my first attempt to create a simplified version has failed spectacularly. Rock-solid memory usage... drat. Perhaps it has something to do with arrays embedded in the inner clusters.
  11. A most excellent description of the sometimes arcane Front Panel dimensions can be found here. All credit belongs with the original author, David Staab. I put this here so I can find it easier next time I need it, which seems to happen every couple of years or so :-)
  12. Something like that. If I get a chance I will see if I can create a minimum code proof of this bug so that it can be analysed further.
  13. Interestingly, this slight modification does not appear to have any leak. LabVIEW bug?
  14. I am currently working on a project, one component of which is a OPC-UA interface to a PLC. There are approximately 100 nodes (variables). Part of my work has been to keep in mind the next iteration of the architecture needs to be able to handle approximately an order of magnitude more nodes. Dealing with this many "variables" in LabVIEW can be painful unless some programattic techniques can be used. For debugging it is useful to see all the node values, and so I implemented the technique shown below where the name of the variable can be used to update a cluster (nested to a maximum of two levels deep). This works well. The green VIs are the OpenG Cluster access VIs. However I have virtually conclusively proven to myself that when this is built into an executable this portion of code shown below exhibits a memory leak of several kB per second. Interestingly, I use a more simple version of this technique in another portion of the project to update some GUI elements, and there is no noticeable leak. Has anybody seen this behaviour before? I have not poked too far inside the OpenG VIs, but from what I have seen they should not leak anything.
  15. Update: this is caused by including the Get Build Specification Version VI (\vi.lib\AppBuilder\AB_API_Simple\Get Build Specification Version (path).vi) For various reasons I needed to know the current build number, and found that VI to do it. Unfortunately this causes a bunch of extra dependencies to appear in the project and the necessity of this mxLvProvider.mxx in the built application, so for me is not a pleasant solution.
  16. The selector terminal on a polymorphic VI does not really take space away from anything else, who wires that close to the bottom? I get your point though.
  17. Nice to know. I hate settings that are tucked away in menu options like that. Such little discoverability for somebody trying to grok the API. Wonder why the polymorphic selector is not visible? Just checked and by default if the VI is dropped from the palette it is hidden.
  18. Does anybody know why my application executable all of a sudden needs the file "mxLvProvider.mxx" to be in the data directory? The application builder puts it there automatically, but I do not know what it is for. If I remove it my application does not run, instead the usual file prompt dialogue pops up when I run the application. Also, can anybody shed any light on what this file is for? My PC seems to think it is a "MAX Configuration UI" but that does not make any sense either. Crossposted here.
  19. Interesting, do you have any official documentation to back this up? Not that I don't believe you, I am just super curious about optimizations the compiler can make, and things that can be done to help. For example see this discussion about using the Swap Values prim.
  20. Sorry no, I have not tried the .NET interface. I suspect MS will have lots of angry customers if they truly decide to remove (rather than just deprecate) the ActiveX interface. I am going to leave it to NI to solve that problem if it arises,
  21. Strange, I have Excel 2016 and my Report Generation Toolkit code still works just fine, with its usual ActiveX implementation underneath.
  22. Whatever the reason, since the upgrade I visit lavag.org far less regularly on my phone, which is a pity.
  23. You are right. I am overthinking this, I will keep my System Config action engine and just extend it a bit.
×
×
  • Create New...

Important Information

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