Jump to content

Neil Pate

Members
  • Posts

    1,189
  • Joined

  • Last visited

  • Days Won

    110

Posts posted by Neil Pate

  1. 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).

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

     

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

  4. 23 hours ago, LogMAN said:

    You got it right. "Delete branch" will delete the branch on your fork. It does not affect the clone on your computer. The idea is that every pull request has its own branch, which, once merged into master, can safely be deleted.

    This can indeed be confusing if you are used to centralized VCSs.

    I still don't really get this. I want to see the branches when I look in the past. If the branch on the remote is deleted then I lose a bit of the story of how the code got to that state don't I?

  5. It's been a while but when using the NI Modbus library I found there was some weirdness regarding what the base of the system is. This might just be my misunderstanding of Modbus but for example to read a holding register that was at address 40001 I would actually need to use the Read Holding Register VI with an address of 1 (or 0).

    This snippet works fine for reading multiple registers, but see the VI I had to write on the left to do the register address translation.

    image.png.a4ab6562e328421e8ba9571fb55f07e1.png

     

    image.png.6d2fae723c3914e26635ac7754f8fcc1.png

  6. So I am pretty new to GitHub and pull requests (I still am not sure I 100% understand the concept of local and remotes having totally different branches either!)

    But what is this all about? I have done a bit of digging and it seems the current best practice is indeed to delete the branch when it is no longer needed. This is also a totally strange concept to me. I presume the branch they are talking about here is the remote branch?

    image.png.6dde34da325374f65f3bc8ccb21dd79e.png

     

    Confused...

     

  7. So I am not a Modbus expert, but have definitely written information to a PLC in the past. As far as I know you cannot write to input registers, I presume you can write to output registers (are they called coils?). I don't have the toolkits installed on my PC right now so I cannot check.

    This code below works fine for setting Holding Registers. Have you tried writing to the Holding Registers? I

    image.png.31a54c02261dcd7d4eeaca42796e8723.png

    • Like 1
  8. 3 hours ago, mabe said:

    Wow! Maybe next time they will default the VIs front panel to pure white too.

    BTW, I don't understand why (after nearly 35 years) the block diagram color in LV is still part of the VI instead of an IDE preference. Even if I change my local setting to some gray for my VIs, I still get tons of VIs from other developers with the default burning pure white.

    I do agree with you, but must confess that at least once in my dark past I have coloured a block diagram. It was a VI I hated and wanted to get rid of so I coloured the background an awful red colour to remind me every time I opened it.

  9. 1 hour ago, Ciro99 said:

    Hi everyone, I need help with a project where I have a LOGO! Siemens  6ED1052-1HB08-0BA0 
    that communicates the states of inputs and outputs via Modbus/Ethernet with Labview, 
    I wanted to ask you if it is possible, using labview to check the state of a Merker, 
    then to virtually change the status of the Merker from 1 to 0. I have already tried Ethernet Modbus. 
    thanks in advance for the help.

    I cannot recall doing this with a LOGO! but have done it quite a bit with plain old S7s. The Modbus module (now open source) works just fine. What difficulties are you having?

  10. 2 hours ago, Antoine Chalons said:

    Actually - for me - Linux is always a big roadblock 😢

    I've taken a similar approach to what you did with SQLite - finding the lib path once at connection, store it in the class private data and setting all the CLFN with a library path input.

    Of course running that on Windows goes fine, but when trying to run it on a Linux RT target (I have an IC-3173), as soon as the running code gets to a VI that calls the libpq.so.5.7 the execution stops and I get a message that the target was disconnected.

    I checked the access right for the file /usr/lib/libpq.so.5.7 and they look fine for the account "lvuser"

     

    I'm now thinking the issue in libPQ version because I followed this tutorial to install PostgreSQL client on NI Linux RT, it installs version 9.4.17 (latest available on http://download.ni.com/ni-linux-rt/feeds/2019/x64/core2-64/) and the version used in the package is 9.6

     

    How can I install PostgreSQL client 9.6 on NI Linux RT ?

    Are you sure you burned the correct amount of sage during the incantation?

    • Haha 1
  11. 3 hours ago, Antoine Chalons said:

    In reply to Neil's opening, here's my 2 cents about what I suggest NI should do :

    From what I read in this thread

    It seems that NI's NXG dev team was made of people who didn't have enough love for LV-CG- or enough experience using LV-CG for real world applications.

    Well now that NI's plan is to move forward with LabVIEW, my suggestion is that they make every NXG dev spend 50% of their time contributing on LabVIEW related open source project.

    There's a lot of great project on GitHub, Bitbucket, GitLab, etc. started by passionate LabVIEW users who have the greatness to share their toolkits, frameworks, API, etc.

    They have limited resources in most cases, so now that NI has a full team of developers with no real purpose and and not enough understanding of what makes LV-CG great, then let's make them contribute to growing the LV-CG eco-system.

     

    edit :

    if you agree >> https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Make-NXG-dev-team-contribute-to-LV-related-open-source-projects/idi-p/4110996

    I think the NXG team was outsourced to a C# dev house outside of the US. I suspect the contract has been terminated.

  12. 5 hours ago, Bryan said:

    I agree, I have garnered great disdain for Winblows over the years as far as the negative impacts to our testers from updates mandated by IT departments, obsolescence, the pain to install unsigned drivers, just to name a few.  I would hate to see NI stop support for Linux as it has been growing in popularity and getting more user friendly.

    Linux is a great and stable platform, though not for the faint of heart.  It takes more effort and time to build the same thing you could do in shorter time with Windows.  However, If LabVIEW were open source and free, you could theoretically build systems for just the cost of time and hardware.  I've been wishing over the years that they would support LabVIEW on Debian based systems as well.

    I've created two Linux/LabVIEW based setups in the past and never had the issues I've run into with Windows.  Yes, it took more time and effort, but as far as I know - the one(s) I created (circa 2004-5) have been working reliably without issue or have even required any troubleshooting or support since their release.  One is running Mandrake and the other an early version of Fedora.

    Maybe 2021 will be the year of Linux on the desktop, but given that this has been predicted every year since about 2003 I would not hold my breath.

    LabVIEW will never be open source. It would not make sense, nobody outside of NI would be able to maintain it. LabVIEW is not the Linux kernel which is of huge interest to millions of others. The area of the intersection on the Venn diagram of skilled enthusiastic LabVIEW developers, ultra-skilled C++ developers, and those with enough spare time is approximately zero. The full complement of engineers at NI can barely make any progress into the CAR list, what hope is there for anyone else?

    • Like 1
×
×
  • Create New...

Important Information

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