Jump to content

Neil Pate

  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Neil Pate

  1. I had a real struggle with some USB3.0 cameras and a Windows 10 PC. They were Basler cameras, and even Windows device manager sometimes did not pick them up. They would regularly just "not appear" in MAX. Never managed to solve the problem to my satisfaction and pretty much decided to not use USB hardware.
  2. Now that I think about it, I also cache the This VI ref in another VI which I use as sort of an actor debugger to allow me to open the FPs and BDs of any running actors including clones (not AF actors, my own home rolled framework). I poll all the refs multiple times per second to get status about the clone name and running status, and have never seen any weird crashes which I have attributed to that.
  3. I think the warning is related to the Open by name. I really hope so as I too use the technique you describe where the clones themselves get their own references so that they can insert themselves into a SubPanel (and do other stuff to the FP like title etc). Been using this architecture for five or six years now and never had any run-time crashes I can think of.
  4. This works. Note in my example I do not wait for the command to complete, I test for the result in some downstream code not shown in this snippet.
  5. Search the forums for calling a batch file from inside LabVIEW. Sometimes it can be a bit tricky to get the path right with the all the "" that you need. I dont have any code in front of me that does this right now, I can dig something up in a few hours.
  6. In situations like this with a not trivial set of arguments I normally create a batch file (from code) and then run that using the System Exec, with no parameters needed. I have done it like this for as long as I can remember so am not really sure if it is still necessary to do this.
  7. Not directly LabVIEW related, but a good listen anyway: https://www.codingblocks.net/podcast/why-date-ing-is-hard/ I seem to remember several people on this forum talking about ISO8601 a while back, the more you get into it the deeper the problem goes!
  8. Sure we all have our preferences, but please don't tell me everyone does this manually on new installs? Maybe I just install LabVIEW *way* too many times a year. Coping the LabVIEW.ini file seems like the only sensible option for me.
  9. Wow, glad I have my fireproof jacket on this morning! 🤣
  10. Yup, and now we are way too deep in the rabbit hole. A standard boolean does pretty much exactly what I need it just does not have an icon on it. As soon a NI open sources LabVIEW we will be able to fix things like this 🙂
  11. But mouse down fires off when the user clicks anywhere in the path, I am after just the browse button. I ended up replacing the button with my own one and it all works ok, just a bit of a bodge.
  12. Does this work at runtime in an exe? I never thought to try this, thanks for the suggestion. The problem is I need to set the default value as soon as the browse button is pressed, not before. There is no event exposed that will trigger when the browse button is clicked.
  13. Sure, but changing the port fixed things, which is surely just a number in a packet datagram somewhere?
  14. I have seen something similar. I supported a system that had 10 cRIOs all transmitting UDP data to be logged at a reasonable rate, and packets would indeed just get "lost" (as noticed by the receiver PC). I never did any analysis to see if they were not being transmitted or not being received, I just solved the problem by using a different port per cIRO.
  15. The best thing about a UDP joke is I don't care if you don't get it.
  16. Thanks James. I may be able to fix this then by colouring those arrows to be the same as my background colour rather than transparent. Edit: even more strangely, colouring them a colour and then back to transparent causes the problem to go away Edit2: LabVIEW is now behaving but the exe displays the same problem. I am going to leave this for now and just use the system control. If I get a moment I will try and fix it but for now I am moving on.
  17. Will check it out. I am on a new laptop so need to install the Flatline controls again. Edit: no everything seems to be behaving now. One strange thing, I see the latest Flatline slider has a round grab handle; has it always been like this? If so then I have no idea where I got my slider from as mine has a rectangular grab handle. Anyway, for now just going to use the system control (which is not ideal as I would like to be able to colour the grab handle to match some other colours on my GUI).
  18. So weird. I have replaced it with a system control and everything is now behaving as expected.
  19. Take a look at the attached control, all it is is a slider (which I think I modified from the flatline controls from drjdpowell) When I just open this in LabVIEW, not even anything running, my CPU usage jumps from about zero to nearly pegging one of the cores of my PC. Weird... Slider_Test.ctl
  • Create New...

Important Information

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