Jump to content

ShaunR

Members
  • Posts

    4,940
  • Joined

  • Days Won

    306

Everything posted by ShaunR

  1. I have 2009, 2012 and 2021 working in the Windows 11 preview. NET 3.5 was a bit of a pain to install but apart from that, I've had no problems so far.
  2. I use LabVIEW 2009 for all my development. While I don't have access to the latest and greatest features, compatibility is the main reason followed by robustness of that version. It should also be noted that I do have all versions (32 & 64 bit) from 2009 through to the latest that the final product is tested with. When producing code for customers I freeze versions on a per-project basis. You can consider this a micro version of what you are proposing. One of the worst things to do is to update half-way through a project and find out everything falls to pieces. Many projects have failed to meet the deadline due to this-I know from experience. This also applies for "bug-fix" updates. Generally, I will not use a version of LabVIEW on a project unless it is 1 year old or a customer demands it. I like to let those that must have the latest and greatest find the bugs LabVIEW is backward compatible over many versions but is not forward compatible. Therefore, if you producing tools for others to use, it is desirable to use the minimum version so that all forward versions can use it (bugs aside). LabVIEW is fairly unique in this regard and there are few, if any, that offer this feature-especially with 32 and 64 bit versions. This isn't much of an issue internal to teams but it is when distributing code outside or publicly. When in teams, updates must be synchronised so that everyone is using the same version. If one person updates their version and commits to the source control, others using a lower version cannot use that commit. Source control systems treat LabVIEW as binary so all members are forced to update to access the commit or the idiot that did it is forced to back-save and recommit . With large teams this is onerous but not insurmountable. If a volume licence is used, it can be easier to manage this than single licences. Version 2021 would be a good peg if you are looking to freeze the version. If everyone is on the same version, then compatibility isn't much of an issue on a day-to-day basis and you have a number of years (10+?) before your code will be obsoleted by an upgrade. You will also be saving a lot of maintenance headaches with the upgrade synchronisation and you will still be able to leverage code back to 2009. 2021 also has TLS which is a must-have for TCP nowadays, although you must keep on top of security updates which are usually only rolled out with new versions. If I didn't have my own TLS solution, I would have moved to 2020+ just for that. You won't be precluding yourself from upgrades, either. If something comes along that you must have, you can still upgrade. You will have just missed a couple of intermediate releases. While switching to single-seat licences is ok, it is worth bearing in mind that support is only granted with an SSP. I'm not going to suggest you have just one SSP and everyone and his dog claims they are using the SSP attached to that licence when contacting NI-that wouldn't be right But bear in mind that you won't get past the support triage without one. With your volume licence this would not have been an issue but with single seat licences only a person with an SSP for their seat is supposed to access support. At the end of the day, I view the difference between volume and single seat licencing as a procurement decision. It makes little difference to developers apart from they may have to order a licence and wait a bit. Volume licences make the purchasing department, IT and project managers' life a little easier rather then the developers. That's not my problem or my budgets
  3. There are Python primitives that enable you to work with Python scripts; there is no Python Node like the Formula Node. Search the examples for "Python".
  4. It's not under Front Panel. It's under Tool Bar. If you find your mind again, ask it to tell mine that I need it now.
  5. Many moons ago I wrote a cloner for embedded devices. It basically dumped a device firmware image to an S-Record file which was then used to upload to other devices on the production line. Like Rolf said. It did enough to do the task for those devices and took a couple of hours to write the basic functionality - S-Records aren't a difficult format. It just started at an address and byte-copied chunks so only S3 was required for that (and the S0/9). I think you'll find that most people either knock up a quick utility like that or invoke the programmer utility. That's the Intel Hex format.
  6. I think the UA_Server_run function may just write the boolean state to the running parameter (an out parm). Difficult to say with the info given but Pointer To Value for "running" might be all that's needed. The static volatile "running" variable is a red-herring in that it is an application variable that would be in LabVIEW as would the stopHandler. If the server is stopped and started by toggling the boolean, then there is a serious problem with either the DLL that exports UA_Server_run or the OP's understanding of how it works. I wouldn't be surprised if there is a UA_Server_stop which we haven't been shown.
  7. Yeah. If you want a clean image at zoom you'll have to mask it. woopswee.vi
  8. It is anti-aliasing because you have the zoom factor cranked up, right? Set the zoom factor to zero and get your magnifying glass out.
  9. StrLen doesn't allocate anything. It just scans the string until it reaches \00 and returns the length minus the \00 char. It does the same as your match pattern above if you were to look at the Offset Past Match (-1). With StrLen + Moveblock, you are finding how many bytes you need to allocate to hold a *copy*, then copying from s[0] to another location (the initialise array in the VI I posted). The memory of the source string you are copying must already exist, somehow, otherwise bad things happen.
  10. Ditto what Rolf said about corruption. Here's the PtrToStr VI with Rolfs suggestions. PtrToStr.vi
  11. I think I may know what's going on here. char *s; /* If a string user is responsible for * allocating memory. */ The "v" in your cluster is actually a pointer to char so v in your cluster should be an array of bytes which *you* will initialise with n bytes. i.e. You have to create the pointer. The function obviously copies data into your string (byte array) which is why you have responsibility for allocating the memory, rather than the function allocating the memory and you copying the data into LabVIEW. So you are going to either something like this: or this What are you doing? The second one?
  12. Yeah. Didn't think I'd get a definitive answer since size_t is only guaranteed to be greater than 15 bits. For MS it is UINT_MAX, which could be anything. The only way to know for certain is to test the compiled environment but even then it depends on things like if functions use 32 modular arithmetic. I don't think it can be resolved conclusively in LabVIEW but the choice is only unsigned pointer sized integer or a conditional case for target bitness. I guess you are alluding to the conditional for "most likely not to fall over in most circumstances" That's what they said about disk drives and look what happened
  13. Is that regardless of Application bitness? Should this be a unsigned pointer sized integer or is a more complex solution required to ascertain the OS (target) bitness?
  14. Are you sure you don't have a pointer to an array of strings?
  15. If you are tryin g to dereference a string pointer then try this. PtrToStr.vi
  16. From your project image you seem to have many conflicts. It's likely that you are picking up another version or VI's in a different location in your project. You need to resolve the conflicts before any troubleshooting can occur.
  17. There's a UI User group over on the Dark Side. If you hunt through it there are a few UI's like Star Trek, Media Interfaces and iPhone simulations.
  18. It seems the biggest problem you have is the axis grid colours. Try a dark grey! Splitters can't be placed on native tab controls-just one of the reasons we don't tend to use them. The other main reason is they make a mess of your main VI trying to control them. The tab xControl above uses VI panels (the tab panel is a subPanel which loads a VI when you click a tab) so you can use splitters on the pages and also means each page is self contained and doesn't pollute the main VI's event structure. It's things like you are highlighting which are the limitations of the LabVIEW UI. It's fairly easy to have nice graphics that make your Application look nice but as soon as you try to use it, the aesthetics generally falls to pieces. A lot of the time it's like in Windows 10 when you suddenly get a Windows XP dialogue when you've spent ages creating a theme... but worse. Really worry when your manager insists on all file dialogues being the same as the Windows 10 ones
  19. Splitters are your friend. This is one app that I've had for a while. Splitters are used to segregate the different sections and most controls are just default ones. There are no issues with maximising etc. The hard part is the button bars and Tab Bar which are actually xControls. (this is the example for the buttons bars xContol) (This is the example for the tab xContol) The most annoying for me is the things you said you don't care about. lol.
  20. "The software you are refactoring had one and it is too costly to change the training materials". How's that? It is likely that a great deal of pressure had to be applied to even allow a rewrite and the manager probably had a hard time arguing for a budget to do it. Getting hot under the collar over a button isn't a hill I would die on. I would concentrate of making my life easier supporting it going forward than what it looked like-which was decided a long time ago.
  21. The glib answer is that LabVIEW is a tool for engineers who generally prefer function over form. The actual reason is that the LabVIEW UI is limited, difficult and clunky to modify from the defaults. Just pop up a menu for example (no icons, can't change the background etc). The ability to create our own controls is also fraught with issues and extremely time consuming. The the only real option is XControls - which are a bit hit-and-miss. Give on-the-fly theme changing a go and you will quickly run into trouble with many controls. Making a pretty UI can double or triple the project time in some cases. There is also the subjective nature of "good looking". I hate the flat, monochrome icons that are all the rage, for example. What I may think is "cool", you may think is ugly.
  22. I vaguely remember some beautiful UI's. It might have been a coding challenge since there were quite a few - can't really remember now. I just remember thinking "wow, I'd never have the patience for that, but that is awesome". Mine tend to be very utilitarian with the occasional lip-service to aesethics.
  23. Lots of applications have an exit button in toolbars. They tend to be older since menu's became the preferred way to exit as not all applications had menus in those days. But historically test and automation were full screen, single purpose applications - often with touch screens - and it's hard to click a window button if there is no window titlebar.
  24. Stop isn't to close an application. It is closer to a reset. It is to stop/terminate/curtail the currently executing task and return the application to a known state. The application is still running. The application is still initialised and the application is still in contact with devices. In desktop terms; a "Stop" is to an exit/close as an exit/close is to a reboot. Not all applications need a Stop button (think of things like Notepad) but if you have a Start button you will probably need a Stop button.
×
×
  • Create New...

Important Information

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