02-16-2023 10:45 AM
@billko wrote:
I have to think it hasn't changed from "this_parameter=this_value".
Oh sorry let me be clear. My software development skills 14 years ago were much less then they are today. The code probably works, it just isn't a development style I think someone should try to replicate.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-16-2023 10:52 AM
@Hooovahh wrote:
@billko wrote:
I have to think it hasn't changed from "this_parameter=this_value".
Oh sorry let me be clear. My software development skills 14 years ago were much less then they are today. The code probably works, it just isn't a development style I think someone should try to replicate.
Oh, okay. Yes I try not to look at code I generated a decade ago. But sometimes it's useful to see your humble beginnings to see how far you've come. But maybe best that it be a private viewing. 😄
10-11-2024 09:31 AM
@David_Grucza wrote:
Since I asked this question NI has added palette VIs for working wit Environment Variables.
What toolkit installs this palette? I do not see it in LV2020 installation.
11-01-2024 08:18 PM
@srlm wrote:
@David_Grucza wrote:
Since I asked this question NI has added palette VIs for working wit Environment Variables.What toolkit installs this palette? I do not see it in LV2020 installation.
My theory is that David meant that some of these things are in the NI palettes. But you cannot access ALL of them without the.NET method that I posted. Perhaps I am wrong, I did a search just now and didn’t find anything either.
11-02-2024 10:21 AM
I just looked up all the list of variables on the MS website, dumped them into an enum and called the system exec.
11-02-2024 11:03 AM - edited 11-02-2024 11:05 AM
I find it more convenient to use the Windows API.
11-03-2024 04:50 PM
@Martin_Henz wrote:
I find it more convenient to use the Windows API.
Your solution is elegant; it was much simpler to program using system exec.
11-04-2024 06:48 AM
Many thanks.
11-04-2024 06:57 AM
@Martin_Henz wrote:
I find it more convenient to use the Windows API.
Convinience is a matter of taste. 😁 I also prefer the Windows API path over .Net or command line tools.
.Net because of the additional overhead of interfacing between the LabVIEW managed environment and the siginificantly different .Net managed environment.
Command Line has the overhead of instantiating a separate process each time and while the cost for that under Linux is considerable, it is factors worse under Windows.
The Windows API is in process, direct and needs no extra invocation or marshalling. However it can require some parameter massaging and requires a fairly good understanding of C datatypes and how they are treated by a compiler.
11-04-2024 01:31 PM
@rolfk wrote:
@Martin_Henz wrote:
I find it more convenient to use the Windows API.
Convinience is a matter of taste. 😁 I also prefer the Windows API path over .Net or command line tools.
.Net because of the additional overhead of interfacing between the LabVIEW managed environment and the siginificantly different .Net managed environment.
Command Line has the overhead of instantiating a separate process each time and while the cost for that under Linux is considerable, it is factors worse under Windows.
The Windows API is in process, direct and needs no extra invocation or marshalling. However it can require some parameter massaging and requires a fairly good understanding of C datatypes and how they are treated by a compiler.
I don't expect to hammer my computer with requests for environmental variables, so I don't really factor in the overhead.
I only factored in the simplicity of implementing the solution, not the cost. All the info I needed was on one MS page.