Jump to content

Porter

Members
  • Posts

    227
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by Porter

  1. Hello Paolo, Since you will be using Modbus RTU (over serial port) you would probably want to modify the "RX MEI Data.vi" in the MB_ADU_RTU class to have some logic to determine the end of the response message. Otherwise the default behavior is to wait 200ms and assume that the entire message has been received during that time. If you are OK with the 200ms wait time, then you don't need to modify anything here. Next you would want to call the "Querry.vi" from MB_Master_Serial class with function code set to 43, and the first data byte set to 13. Note that if you do modify "RX MEI Data.vi" you can use the RTU_DataBytes parameter to tell it how many bytes to expect to receive if you are able to know this before calling Querry.
  2. A nice feature would be to optionally preserve top-level comments (lines that start with #). I don't think that this is a trivial to implement, but it could be useful. And it might even be simple to preserve inline comments while we're at it (keep the comment with the key-value pair).
  3. Thanks Antoine for taking on this project. Looks like you are making some good progress already. Just a little detail, you might want to add some text at the top of the license file along the lines of: Contributions up to v1.2.1 Copyright (c) 2017, Erdos Miller Unless you received written permission to from the original owner to change the copyright.
  4. I've been toying with the idea of implementing a new TOML library for LabVIEW. I've been using OpenG variant config for years, but I would prefer to use a more standardized format for my ini config files. TOML is the best candidate for this. Erdosmiller's library is pretty good, but as the author points out, it is no longer maintained, and it didn't gracefully handle all of the datatypes that I wanted to use. It would be great to have the flexibility of jsontext but for TOML format. I'll post back here if I manage to get the project off the ground.
  5. Thanks Darin for hitting the nail on the head. Always Copy was the first thing that came to mind when looking for a workaround, but muscle memory brought me to IPES first (which does the same thing if I recall correctly). For completeness, I have added Always Copy to Loop5 of my test vi. It solves the problem nicely: Destroyed Event Ref Test_loop5.vi
  6. Porter

    Dear NI

    - LVCompare and LVMerge should be unlocked with the LabVIEW base edition. Or even better, an open source merge and compare tool could be released to the community.
  7. I think that I've encountered a bug in the behavior of Not a Number/Path/Refnum? when checking an array of event references within a loop. *LabVIEW 19.0.1f3, 32-bit, Win10* I would expect Loop1 (below) to stop within 6-7ms, however it is consistently timing out (>500ms). The result of the Not a Number/Path/Refnum? is always false even though the event refs are no longer valid. I suspect that this is related to compiler optimization because adding an in-place structure results in the correct behavior. So is this actually a bug? or should the need for an in-place structure be expected for some reason? Here is my test VI (LabVIEW 2019) to demonstrate this behavior: Destroyed Event Ref Test.vi
  8. VISA locks behave strangely in my opinion: I still use them but wrapped in a single element queue. This workaround was implemented in the Plasmionique Modbus Master's MB VISA Lock library. It is described in page 19 of the user guide: https://lavag.org/applications/core/interface/file/attachment.php?id=14276 I also describe use cases on page 10 and 11 if you are interested, I often use this VISA locking library for RS485 instruments that share the same COM port.
  9. If you only require language switching during edit-time you can give this tool a try: You will need to startup a Russian VM to view the translated VIs though. This tool pulls all of the UI strings out of a project and stores them in UTF16-LE format, then converts them back to the desired code page when applying a particular language to the project. From my experience, it is never a good idea to try to use unicode text on VI front panels.
  10. Wow. That was very fast: https://www.vipm.io/package/lava_lib_robust_csv/ What is the process for verifying submitted packages?
  11. Just submitted my Robust CSV package. The process was very smooth. I like that it is geared toward open source packages only. Hopefully this means that the quality requirements are a little bit more relaxed than LV tools network (eg. including example code in example finder).
  12. I didn't see any obvious way to do it either. I tried with a non-empty array as well but its values were also ignored.
  13. Bug? JSONText doesn't apply input default values to missing cluster items of array elements. I was hoping to see "Default", 1 and "2", NaN but instead get "",1 and "2",0 I think that it is due to the behavior of the Get Array Information VI. The workaround is to convert the array elements individually as clusters:
  14. Norton antivirus decided to remove all of my lvlibp files that I copied from our self-hosted gitlab repo. It seems that it takes issue with the URL of the repo and the newness of the files. Here is a post about WS.Reputation.1: https://community.norton.com/en/forums/clarification-wsreputation1-detection They suggest that developers set up auto-protect exclusions for their project directories.
  15. This toolkit is for edit-time language switching. I don't see why it wouldn't work. But I don't have the hardware or dev environment licenses to test it. Donations are welcome
  16. Just tested beep VI on its own and again I get the same run away ram consumption of audiodg.exe (+5MB/s). I've got a bleeping memory leak! RAM remains reserved by audiodg.exe even after exiting the application. When using the sound VIs to play a WAV file, there is no such memory leak behavior. LabVIEW 2018 SP1 32-Bit Windows 10 Home 10.0.17763 Realtek Audio PNP Device ID: HDAUDIO\FUNC_01&VEN_10EC&DEV_0255&SUBSYS_10280855&REV_1000\4&3675F7D0&0&0001 Driver: rtkvhd64.sys (6.0.1.8393, 5.83 MB (6,111,680 bytes), 2019-04-28 1:27 AM)
  17. I had a labivew application crash yesterday due to the PC running out of memory. Looking at the windows 10 system logs, it was audiodg.exe that ate up all of the memory. Re-launching the application again and triggering the beep sound caused audiodg.exe memory usage to shoot up at 10s of MB/s. I suspect that this is a realtek audio driver bug because I can't reproduce this behavior on my development machine. Has anyone else come across this kind of behavior before?
  18. Are you talking about right click during edit time or during runtime? Does this explain the random right click of doom that freezes LabVIEW after right clicking on an item in project explorer?
  19. Trying to create a child of a class that is within a packed project library produces Error 1562 This is because CreateChildClass is trying to add the new class to the parent's library. I propose that it should instead add the new class to My Computer. To do this, just change "CCC Main.vi" to look like this: vi.lib\addons\_LAVA\lvoop_assistant\_create_child_class.llb\CCC Main.vi
  20. I'd be happy to work on it in my free time... when I have free time (newborn baby girl waiting for me at home)
  21. It would be nice to be able to modify .mnu palettes with the GCode manager. This way you don't need to add the palette to your palette set just to edit it (as you have to do with the built-in palette editor). Shouldn't be too hard to implement 😜 There is a Palette API that ships with LabVIEW.
  22. Thanks @Michael Aivaliotis for taking the time to do this.
  23. As someone contributing code on LAVA, I would like to see the certified LAVA repository packages made available through the GCentral package search tool.
  24. Be sure to double check the ASCII/RTU mode setting. Make sure that you are specifying the starting address in hex format. The PV value is supposed to be at holding register 0x1000. You could also try increasing the timeout value to 1000 or 2000ms (instead of the default 300ms). A screenshot of the dwyer communication setup and the Plasmionique Modbus Comm Tester setup would be useful.
  25. When you say Love Controller, do you mean a Dwyer "Love" Temperature Controller? They definitely work with this library. For configuring the USB-RS485 adapter, I have never used labview to specify 2-wire or 4-wire mode. That is usually done via hardware (dip-switches or jumpers) or the driver (device manager). I have never used the Tripp-Lite adapter though. I typically use USB-Serial converters from Moxa or Sealevel Systems. They have proven to work very will with labview. If you can provide the model number or user manual of the Love controller, maybe I can give you some example commands to try.
×
×
  • Create New...

Important Information

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