Jump to content

Neil Pate

Members
  • Content Count

    657
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by Neil Pate

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. Totally off-topic, why would you "re-set" the session reference?
  8. 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.
  9. 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?
  10. OK, signed in and out a few times and everything seems normal. Thanks for the upgrade Michael, I like the new look ?
  11. 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.
  12. I spoke a bit too soon, now when I log on I get greeted with this. Seems I can still access the site though.
  13. 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.
  14. Ah yes thanks for the reminder. I have actually done this myself in the past to dynamically register FP controls but wanted to do it "inside" the event structure, so I registered the event outside (of course) and then had a different event to populate with actual refs inside. This was actually my first introduction to User Events and totally did not understand why I needed to do this!
  15. OK, figured it out. Turns out the actor I thought was Creating the User Event was not actually doing it. In my code the first time the reference is requested it is Created and then reused from that point onwards. Due to some clever stupid logic my second actor (the one using the data) was actually running before the producer of the data actor, so when the consumer shutdown the reference went stale.
  16. I have some behaviour in an application I cannot understand and wonder if anybody can share some light. I can't really post an example as its part of quite a large framework, but I think I can discuss the issue reasonably succinctly. There is an "actor" that generates some data on a User Event. The main loop VI of that "actor" is the bit of code that also creates and "owns" the actual User Event, and it never stops running so should never go out of scope. There is a second "actor" that registers for this User Event and receives the data. This VI gets dynamically loaded into and out of a subpanel. This is all working well and is a technique I have used successfully for a long time. When I insert a different VI into the subpanel (or rather as soon as I remove the first VI and stop the loop) the Generate User Event in (1.) errors out with Error 1 and if I validate the User Event reference it transitions to Not A Reference at the same time. What I do not understand is why a consumer of the User Event (i.e. registered for it) can cause the underlying User Event to become invalid. Edit 1:Even weirder, if I try and Register again using this same User Event (exactly the same refnum number) there is no error (yet if I test for Not A Reference at the exact same place I am registering it gives True), see picture. Edit 2: Today I learned that the Register Event node does not seem to do any checking on the input refnum, as can be seen in the second picture you can register a NULL reference which seems strange to me. As I said I have used this technique many times in the past and cannot recall seeing this behaviour. Any ideas? Using LV2015 SP1 on Win 10
  17. You cannot directly access the parent class from a child, you have to use accessor methods of the parent. Regarding your second question, why do you need to know the parent?
  18. LogMan, I have tried your 2017 version and I get the same issue you reported. Starting a fresh VI in 2015 and dropping down a random .net constructor I am also able to wire up to those invisible terminals. Curiouser and Couriouser!
  19. Any chance we can get a Machine Learning / AI group created? I am starting to implement various algorithms in Octave and LabVIEW and would be interested to discuss these ideas here,
  20. Hi Jon, Thanks for your comments. It is nice to know our concerns are being taken seriously. I attempted to create a video of the behaviour I originally posted about, but cannot recreate it at the moment. I have just tested 2013, 15, 17 and 18 and all drag operations seem quite smooth (LiveDrag=False in my LabVIEW.ini file for '17 and '18), but these are for very simple test VIs not in a project. I have definitely seen the issue in '18 in the last month or so though. I currently use '15 for all serious projects and only tinker with '18 for personal projects. The grey selection rectangle introduced after 2015 does feel a bit sluggish though. One thing I did notice in my comparison tests is that the toolbar seems to refresh much more often in '17 and '18. Try this experiment: create a VI and drop down a single For Loop. Now resize this loop and take a look at the toolbar. In '13 and '15 nothing noticeable changes in the toolbar however in '17 and '18 the toolbar seems to refresh/redraw (flickers) regularly. If I see the other issues again I will try and take a video of it in action. 2018-08-28 23-26-24.flv
  21. Some interesting reading for those who have not seen it yet. Turn off Automatic Error Handling :-) An End to Brainless LabVIEW Programming.pptx
  22. Speaking of classes and style... http://www.walkingthewires.com/2016/02/15/just-passing-through/
  23. I generally prefer to lay out my block diagrams with the error cluster in a straight line. It provides a nice datum for aligning code and is the wire most common across diagrams. Having this datum on the diagram results in fewer wire bends which to me "feels right". I found in the past that if I did not use the error cluster there was generally a slightly messier feel to the diagrams. Completely personal preference though.
×
×
  • Create New...

Important Information

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