Jump to content

Neil Pate

Members
  • Posts

    1,201
  • Joined

  • Last visited

  • Days Won

    114

Everything posted by Neil Pate

  1. Posted here: https://forums.ni.com/t5/LabVIEW-Idea-Exchange/idb-p/labviewideas/tab/most-recent There is a video linked in that post that pretty simple shows the behaviour. It is quite nice to use. If you like it please add your kudo on the Idea Exchange!
  2. Exactly why we need NI to buy in to the idea, otherwise it will never get off the ground.
  3. Excellent idea, I have added my kudo! I don't think this will get much traction from NI but it would be really nice to see this as something semi-official. Once you know what you are doing it is not super complicated to get RT linux running on a desktop.
  4. I have created some code that allows me to translate the GUI language on the fly at runtime. Is anyone else interested in this? At the moment it is a bit coupled into my actual application but I think I can extract the relevant bits. It supports pretty much any latin codepage language and once upon a time did also support Chinese (but I have not tested that in quite some time). Obvious disclaimer here: I just want to share what I made, but use at your own risk, and I am definitely not a UTF8/16 whatever expert so there might be some stuff that is just plain wrong.
  5. I am not *that* paranoid, but certainly I like to push my work at the end of each day. I am not actually anti-git, it is just taking me a while to get used to its best practices and nuances.
  6. I guess what I mean is I find it strange that people would even have local branches that are not pushed to the server. Maybe I am just paranoid about my house burning down, my computer getting stolen of my hard drive dying. For me one of big benefits of cloud based VCS is that I almost always have an up-to-date geographically distributed copy of my code.
  7. The thing I still find a bit strange is how it is possible for the remote and local branches to be totally different (even different names). I totally get that the local branch can be out of sync if you have not done a push/pull to the server, the thing that seems weird to me is that the local can have a totally different structure. This is just something I need to get used to.
  8. This morning I finally realised why I semi-regularly get into a detached head state (I think I know why...). In git there are several different options for checking out a commit (checkout commit, checkout branch etc) and I never really paid much attention to the subtleties of these. As far as I thought they all did the same thing, that is revert the local code to the state of that commit. It turns out that my understanding was flawed, and every time you check out a single commit (rather than the actual branch) the current state will not point to any particular branch and you will be in the detached head state. I find this a bit weird, as I presumed if you checkout a commit in say the middle of a branch somewhere you would still be on that particular branch. Checking out a branch will always checkout the latest commit of that branch. This article explains it nicely. I have not been too scared of detached head for a while now as I know it can be easily fixed just by making a new branch, but it is nice to know why this actually happening. Happy gitting! (next step in my git mastery is to understand the subtleties of local and remote branches).
  9. I use InnoSetup for a custom installer and I also install the 2019 runtime this way. It may not be the "right" way to do it, but the way I solve this problem is to manually extract the runtime installer and then just include that directory in my installer and run the Install.exe from the installer.
  10. I think LabVIEW is going to be around in some form for at least another ten years, primarily due to how entrenched it currently is in the niche it fills. However, if I was starting my career again in 2021 I would definitely not choose LabVIEW as my primary language of specialization. I think the poor decisions NI have made over the last ten years will lead to its irrelevance/obsolescence, which I am genuinely saddened by. It pains me to think where current gen LabVIEW could be if the money and time funneled into NXG had been put to overhauling current gen.
  11. I didn't say perfect...
  12. Being able to drop pictures on a block diagram is so amazing.
  13. I tried with a longer row replacement, 6000 elements, and the MoveBlock technique starts to become marginally faster. I am going to stick with the simple replace an element at a time method.
  14. It really makes sense to me to have the MoveBlock be the fastest when replacing a row (or subset of a row). I wonder if the difference is also more exteme as the size of the replacement changes? In other words replacing a section 1M elements long is probably much slower when doing it element by element compared to a single MoveBlock call.
  15. Sure, but I am surprised that looping over an array doing individual array element replaces is quicker than doing a single MoveBlock! Seems suspicious...
  16. In another plot twist it looks like my original naive method of just doing a for loop is actually quicker than the MoveBlock. I do not really understand this but am going to leave it here for now.
  17. Method 3 using MoveBlock seems the fastest when you want to replace without starting at zero
  18. I actually have a scenario where your MoveBlock method might be faster. Using the primitives you cannot replace a portion of a row (which is actually what I want to do). This should be a lightning fast operation but I have to either do it item by item or index out the row first, replace a portion of it and then replace the 2D array. My code might be sped up a bit with an In Place structure, I have not yet tried this.
  19. Yes I did. Actually my first benchmark was just to make the change manually in the VI and re-run it. The results are the same. Sorry my picture was not good, if you look closely I introduce some forced data flow from the first structure to the second so that they do not run in parallel as I did not want to bias the results in any way.
  20. Risky click of the day running that VI! But hey, life is short so I tried. My Russian is a bit rusty but I guess you came to a similar conclusion?
  21. I guess it is expected if you think about how the arrays are laid out in memory, but still interesting to confirm. For the eagle eyed I know my two loops will not actually produce the same result, but I don't think this should change the conclusion.
  22. That looks cool! My eldest is the right age but has literally zero interest in this kind of thing, my younger one is much more into this but right now is a bit too young.
  23. I was able to connect to an Azure IoT hub using a MQTT library and generating my own SAS token based on the following algorithm I found somewhere on a Microsoft site. This is my implementation. I struggled a long time with this until I figured out the Base64 decoding and encoding and URI encoding. For reference this is a typical SAS token (obviously URI and Key have been changed to protect my stuff) The SAS token is then used as the Password like this: Please note I am definitely not an expert here, I figured this out on my own so it is possible I am doing something terribly wrong!
  24. I mean I needed some other analysis functions and these were also broken. At that point I was worried I would hit something I would not be able to recreate myself. The environment variable solved it straight away for me so I am not sure what is going on with your PC.
×
×
  • Create New...

Important Information

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