Jump to content

Neil Pate

Members
  • Posts

    1,156
  • Joined

  • Last visited

  • Days Won

    102

Posts posted by Neil Pate

  1. 4 hours ago, Yean95 said:

    Hello ! I've been trying to solve this problem for two days and I really need help on this.

    So I have a weekly progress table as below :

    As long as there's already a non-empty column for the PES #, the rest of the empty column after that non-empty column needs to show 0%. How should I do this?

    image.png.50c4e83c234c5092f46510a23c13546f.png

     

    I need to make it into this table as below:

    image.png.5d7974d5c359bc5a75b269cb40b099b0.png

     

    Thank you so much in advance !

    Can you post what you have done so far?

  2. 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.

    image.png.da5c0d1ace221f1933b64aa97223a4a3.png

     

    This is my implementation. I struggled a long time with this until I figured out the Base64 decoding and encoding and URI encoding.

    image.png.3b15ade21a3b4c39d681a1b2f8490ea2.png

    For reference this is a typical SAS token (obviously URI and Key have been changed to protect my stuff)image.png.ed5588db0dff70333b828e7a660907c2.png

     

    The SAS token is then used as the Password like this:

     

    image.png.22ff31e5edc0d98359a96868e58ba3e4.png

     

    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!

  3. 1 hour ago, Lipko said:

    By "then something else broke" what kind off breaking do you mean?
    If replacing that Mean with my own solved the problem for me (no .dll error, the exe runs without obvious strange behavior), can I feel safe?

    My role is not a programmer, but a mere test engineer who makes tools for making test processes more convenient. So I don't really have the time to dig too deep into stuff like this, I need to have solutions for problems ASAP. Solving actual problems is not an easy task with a soo rigid IT department over me. I was surprised that I could add that environment value (which didn't solve the issue...)

    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.

     

  4. 1. What type of source control software you are using?

    Currently use Git for my LabVIEW work with my repos hosted on github.com

    2. You love it, or hate it?

    Love it. Sure there is a learning curve, but anything worth learning will take a bit of time.

    3. Are you forced to use this source control because it's the method used in your company, but you would rather use something else

    My choice. I have gone down the path of Nothing-->Zips-->SVN --> Mercurial --> Git   and am happy with git. I still have heaps to learn (even coming from pretty high competency with Mercurial), but I am treating this as an opportunity to get better.

    4. Pro's and Con's of the source control you are using?

    Pro: Lot's of resources out there to help me when I screw up. Git is ubiquitous now. I love the GitKraken client!

    Con: Some of the things still confuse me a bit, especially how local and remote can have different branches.

    5. Just how often does your source control software screw up and cause you major pain?

    I don't think I have ever actually lost work or been caused major pain because of my misuse of source code control. Certainly I have made mistakes but have always managed to recover things. Contrasting this, I still sometimes lose stuff when I am being careless with documents that are not yet under any kind of control

    In a nutshell I could not live without Source Code Control as a regular part of my daily workflow.

  5. 2 hours ago, drjdpowell said:

    Side note: I am definitely going with the native node, in LabVIEW 2020.  I think NI is underselling it by providing examples that are far too simple (including no examples of cluster-to-tuple or how to hold state data in your py module).  I prototyped my analysis template py module yesterday and it went easy.  No head banging frustrations at all.

    Would love to see your more sophisticated testing, especially the holding state data.

  6. 3 hours ago, drjdpowell said:

    Though I see the value in that, I don't think that is a significant advantage in my case.  Actually a disadvantage, as my client is already overburdened with "too many things" complexity and would benefit from a standardized python environment.  I also want to minimize the complexity of install on a fresh computer, and I think the native node only requires python itself.

     

    Sure. But doing dev work on your own PC could then be potentially problematic if you have to support multiple different projects and implementations.

    I do expect the native node to get better as time progresses and python slowly strangles all other languages.

  7. 13 hours ago, drjdpowell said:

    Can you say more about that?  What do you mean by a "virtual environment"?  I experimented with the native node in LabVIEW 2020 and I'm liking it so far.

    So again I am definitely not an expert but my understanding is that a virtual environment is like a small sandboxed instance where you can install packages and generally work without affecting all other python code on the system. I guess it's like nuget.

    If you don't use a virtual environment when you install packages it affects the global python installation on your machine.

    Seems like pretty sensible stuff (and hopefully what Project Dragon will do for LabVIEW). However I have not been able to get the native python node to work with a virtual environment.

  8. Nice question James! I have tried to go down this route myself and had a very similar journey.

    In the end I have decided to stick with VS Code for Python dev work as it seems to be gaining so much traction and is improving at a great rate.

    None of the python connectors I tried worked very well. I would prefer to use the native one but it does not seem to support virtual environments which is what seems to be the preferred way of doing things in Python. In the end I rolled a simple TCP/IP client/server solution and was planning on using that to get data to/from Python.

    But. I have no real experience with this so am going to shut up now for the rest of this thread and read every one else's answers with interest.

  9. 2 hours ago, nagesh said:

    Hi folks,

    I need to know if this is possible?

    if yes then the what are the possibilities??

    1. The user should select the signals (by check box or similar).

    2. My waveform chart should display only these signals on the front panel. (no of signals in the waveform chart must be modified based on this signals).

    3. it is better, by clicking a button the new front panel pops up with waveform chart.

     

    The graphs have a built in ability to allow the plots to be turned on/off at runtime. I think the option is hidden by default and might be called something like Visibility, that will probably solve your problems (1) and (2).

  10. 4 hours ago, JKSH said:

    I'm curious: What are some examples of Win32 API calls that have been most useful in LabVIEW programs?

    I too have a sprinkling of Win32 calls I have wrapped up over the space of many years. Most are pretty simple helper stuff like bringing a window to the front or printing or getting/setting current directory etc. No rocket science here.

     

  11. 18 hours ago, rharmon@sandia.gov said:

    You guys always have the best information/ideas... Thank you all...

    Since I really like the new entries at the top of the log file, and my major worry is that the file gets too big over time and causes the the log write to consume too much time I really like dhakkan's approach of checking the file size periodically and flushing the file and saving the data to numbered files.

    I totally get you wanting to display newer entries first, but surely this is just a presentation issue and should not be solved at the file level? I really think you are going against the stream here by wanting newer entries first in the actual file on disk. It is almost free to append a bit of text to the end of a file, but constantly rewriting it to prepend seems like a lot of trouble to go to.

    Rotating the log file is a good idea regardless though.

    Notepad++ has a "watch" feature that autoreloads the file that is open. It is not without its warts though as I think the Notepad++ window needs focus.

×
×
  • Create New...

Important Information

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