Jump to content

Neil Pate

Members
  • Content Count

    642
  • Joined

  • Last visited

  • Days Won

    38

Everything posted by Neil Pate

  1. I cannot seem to get this to work on 2017 SP1 (64-bit). Tried various combinations of these: DragAutoWire=False LiveDrag=False But nothing seems to help the editing experience which lags so badly when doing "complicated" operations like a a box selection 😞 This is on a brand new dev PC with 32 GB of RAM, very fast SSD and processor.
  2. To badly paraphrase... Some people, when confronted with a problem, think “I know, I'll use packed libraries.” Now they have two problems.
  3. Not sure when I will ever get around to doing anything with these again, so for now I release into the wild "as is". https://github.com/neilpate/LabBASSMOD2 https://github.com/neilpate/LabSDL2 https://github.com/neilpate/LabMelee
  4. Does anybody know how to get a LabVIEW built application to ignore the scaling setting in Windows? I have some code designed to fit nicely in 1280x1024 pixels, but some of my customers say that even on a 1920x1080 display the menu bar at the top is cut off. I guess this is probably because their windows scaling is set to some number other than 100%. In my experience LabVIEW looks really rubbish when run on Windows 10 with this setting to anything other than 100% (blurry and inconsistent). I suppose is to be expected from an application like LabVIEW that is approaching retirement age! Am I missing something obvious here? Although I always set my Windows scaling to 100% on all the PCs I control it is not really practical for me to expect ask my clients to change this setting as some of them have probably gotten used to seeing Windows text nice and big at 125 or 150%. Edit 1 I have done quite a bit of googling and not really come across anything LabVIEW specific. The closest I got was some NI KB about LabWindows. Edit 2. Success! https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000004A7eSAE Note a newer Windows update adds a few more options which are now tucked away in a separate dialogue. I have not tried playing around with the other options yet as this fix works fine on my PC. Edit 3. And this is how it can be done programatically: https://blogs.technet.microsoft.com/mspfe/2013/11/21/disabling-dpi-scaling-on-windows-8-1-the-enterprise-way/ (i.e. as part of an installer action)
  5. I have seen a similar issue quite often with LV2015. When I right click on a build and explore it regularly takes me to the wrong build directory, usually a totally unrelated project. I do not do any programmatic builds.
  6. Sorry if I have mislead you, looking back at my post I have to make a correction to my vocabulary. The whole system probably had about 10 nodes in total and the LabVIEW based controller had to implement several OPC-UA clients and servers (I think two each). In total the system had about 500 tags (not nodes, sorry!). I tested things at a maximum rate of about 1 "update"/s where an "update" was changing all the tags of a particular subsystem. Performance was never an issue at all of this portion of the application, I cannot say I ever saw the CPU particularly taxed. What did cause performance issues was trying to update my tree control view and name based logging. What I gained in elegance in the code I sacrificed in performance. Also, if I never have to write another recursive tree updating routine based on hierarchical tag names I will be quite happy. I am not at liberty to share anything as I did it as consultancy for another company, sorry. In the end OPC-UA worked fine, and I would certainly consider it again. I will never use NSVs in a project; I just have too much distrust of them. In fairness though it has been nearly 7 years since I was scarred by them...
  7. Killer feature: new hardware only supported on NXG 🤦‍♂️
  8. Unfortunately I cannot share the whole project but I will see if I can trim out the broken bit and escalate. At the moment that particular VI is reliably broken, if I take out the "Always Copy" it still shows the weird behaviour, so at least it is consistent.
  9. For one of my projects that used OPC-UA I had probably 500 different nodes in the system. I did not really want to handle the data read using a case structure with 500 cases, so I went 100% down the route of name based lookup data structure implemented using Variant Attributes. I managed to extend this to a tree based system data viewer and configurable data logger, without ever actually using explicit node names (well, not perfectly but close enough). For the most part I did not have to fight with OPC-UA, it just worked.
  10. I used the same client from United Automation to test out my OPC-UA server, it works nicely. How do you plan on integrating that with the rest of your application though?
  11. This is LV2015 SP1 (not too sure the patch). I suspect the moment I start to chop things out to isolate the problem will just go away. Will try this when I get a moment.
  12. The Status.Playback.Position field is not being updated correctly. Works fine if I replace the input with a constant ? Also works fine if I do some IPE "mark as modifier" trickerey.
  13. No, I didn't raise it with them at the time as I was a bit too busy trying to finish the project and then forgot about it.
  14. I have used the NI OPC-UA toolkit in a bunch of projects. Both as a client and server. Had an issue with an earlier version of the toolkit (2015) where it was not working correctly with authentication, but NI released a patch for that. The only other strange thing is that the client (or server, cannot remember which it is) does not support Data Change events, so you have to poll. Oh yes the other weird thing is that when you do get a Data Change event you get the data coming in as a variant, but unlike regular variants this one seems to know nothing about its own type. This actually caused a bit of drama for me but managed to find a work-around as the data change event does actually include the type, so I was able to shove it back into the variant.
  15. Sure he can, I just prefer these days to no output the duplicate object if it is guaranteed to be never modified inside the method.
  16. I only asked because a few years ago I decided to change how I write classes. Methods that do not modify the data do not have the output class. See http://www.walkingthewires.com/2016/02/15/just-passing-through/ I really like this technique as to me as a developer it conveys intent to somebody else looking at the code. From a higher level it shows that the method does not modify any private data in the object.
  17. Totally off-topic, why would you "re-set" the session reference?
  18. I still use a few OpenG VIs in most of my projects. Things like fit to decoration, some array stuff, INI file stuff. I consider the library to be mature, not dead, but do not really expect any more updates on current gen.
  19. Amazing, thank you for the tip. Certainly easier than the way I do it using VI server when I accidentally hide an element of a cluster! Has this been in LabVIEW all along and I just never knew about it?
  20. OK, signed in and out a few times and everything seems normal. Thanks for the upgrade Michael, I like the new look ?
  21. Using the normal login, not Facebook. Just doing this now from my android phone and it did not show any error. I will try your suggestion when I get back to my PC.
  22. I spoke a bit too soon, now when I log on I get greeted with this. Seems I can still access the site though.
  23. I think NI is quite a bit better these days at keeping behaviour consistent between versions, except when there is clearly "buggy" behaviour. Given the focus on NXG I suspect it is pretty safe to say not too much is going to change in current gen LabVIEW going forwards.
×
×
  • Create New...

Important Information

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