Jump to content

Neil Pate

Members
  • Posts

    1,025
  • Joined

  • Last visited

  • Days Won

    84

Everything posted by Neil Pate

  1. In the case of a circular buffer your "get data" method would deal with the wrap around so would return to the caller data in time order (otherwise what would be the point). This is a nice use case for a class as you don't really want to expose the implementation to the calling code. I have something like this
  2. ok ok I take it all back. Seems like a Windows thing. Copying this from Notepad++ to Notepad results in this which if I then copy back to Notepad++ I get this I guess some applications sanitise the string before sending to the windows API.
  3. I don't think so as I can copy and paste with null chars just fine using notepad to notepad++
  4. Nope. If I start with this same string in notepad or some other application it copies and pastes correctly. For example notepad to notepad++ works correctly. I classify this as a bug. The string in LabVIEW includes all the characters, it should copy them correctly. I don't think this is a limitation of the windows API
  5. Yes I know. But this is LabVIEW which does not have null terminated strings. That is what makes this strange.
  6. Nice spot. It is a perfectly valid character though.
  7. Anyone want to guess what happens if you try and copy and paste the contents of this string to some other application like Notepad? String Copy Weirdness.vi
  8. Yeah sorry I did not mean to derail things. That sounds really cool and the more VIMs we get into the community the better.
  9. Total thread derailment... Hands up who remembers the great error cluster colour change. Was it 2005?
  10. I now lump Network Streams in the same category as Network Shared Variables; generally more trouble than the benefit they offer for the various reasons captured above. I now prefer to do this kind of thing "manually" using the low level TCP/IP prims.
  11. Thank you, I did find the service request I opened. Turns out I was mistaken and it never got escalated to a CAR. Sorry @joerghampel For what it is worth, on a different PC I have not seen the same problem, so I think it might just be down to a bad install of LabVIEW. Super annoying though!
  12. Would love to, but I cannot find it in my email 😞 Do you know if my CARs are listed somewhere on my ni.com profile?
  13. @X___good luck. I had exactly this problem when joining my new company. I went around the houses over and over with NI, most of the support staff had no idea what was going on. I am not sure it was ever resolved. In the end I managed to get through to a human via email and they were able to help me with my technical question.
  14. I think an important point has been missed in this discussion. The fact that the solvent name and density make up a "collection" of information (i.e. a data type). @Mahbod Morshedi if you don't already know about them go an read up about Clusters in LabVIEW. They allow you to make custom data types where you can group together related elements. Maybe even a Set would be an interesting implementation here where you can look up the density by using the name of the product. Don't be tempted to grab into your GUI to get at your data (i.e. reading from a combo box to get the density). Rather store the data somewhere else (on a wire) and just access it as you need to.
  15. Disclaimer: this is some time ago so my memory is pretty foggy! I had some very strange crashes on bunch of cRIOs in a lab. Eventually after much trouble I diagnosed the problem as being related to setting the system time! I had a routine that tried to sync all the cRIO clocks and every now and then the call to the System Configuration VIs would hard crash a system. I never actually saw it happen with my own eyes but I have enough evidence to be able to blame it on that. I cannot recall exactly how I solved the problem in the end, I suspect I slowed down the rate at which the clocks were set. As I said, this was a long time ago though and the cRIOs were probably not running RT-linux. You mentioned you have a GPS module, so maybe just maybe this is related?
  16. After getting burned by the system with the USB cameras I switched over to GigE and never looked back. Multiple USB cameras running at full frame-rate is a recipe for disaster!
  17. Thanks! Mine has definitely wandered off.
  18. Am I losing my mind? I cannot find the VI Server property to change the visibility of the Toolbar. I know I can do this in the build spec, but I want to be able to force this off in an executable. I am being dumb, and it's obvious, right?
  19. Sorry @FixedWire, I took a look at my old code and indeed I have LabVIEW code to read a hex file, not to generate it.
  20. I have done something like this years ago. I will see if I can dust off what I have. My memory could be totally faulty though!
  21. Thanks, that is a nice project; I had not seen it. I found a C64 implementation, but this Apple II one is nicely structured.
  22. Got it, thanks. This is a bit annoying, but I can use the technique @ShaunR suggested with the mask. I am busy making some kind of weird C64 with a real 6502 but ROM and RAM (and I guess VIC-II) faked in LabVIEW, so the speed is going to be terrible!
  23. I cannot really see the pattern though. These have the anti-aliasing But this doesn't and surely has similar groups of pixels
  24. Further experimentation shows me this weird effect happens as soon as you go above 1 for the ZoomFactor. Even sticking with integer values for ZoomFactor causes it to happen as soon as ZoomFactor is > 1
×
×
  • Create New...

Important Information

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