Jump to content

Mads

Members
  • Posts

    456
  • Joined

  • Last visited

  • Days Won

    32

Everything posted by Mads

  1. The 987x modules *can* be accessed just like any other in-built serial port (using the VISA serial functions) as long as you have installed the 987x support package on the cRIO (option that should be available in the list when you choose to install the system image etc on it). No need to even think about their connection to the FPGA then. Now, before that support package was available you did need to add FPGA code, but even then that code is available as an example so you do not need to figure much out anymore...We used the FPGA-method 15 years back or so, now we just install the support package and use it with VISA.
  2. We do not have anything identical, but I do relate. The rate of critical bugs on cRIO seem to have risen. We currently have cRIO-9030 and 9041 devices that run fine for anything from 1 day to 3 weeks and then kills an application that we had no issues with prior to moving from 2018 to 2020. No worrying memory-, CPU- or disk usage up front - and nothing in the error logs. Tedious troubleshooting. There was a recall of some 9030s not so long ago too due to faulty components. On some there are even issues with the BIOS (>50% CPU usage when idle anyone...?). The known issues lists contain quite a few serious bugs too. Simplifying the RT application until the issue goes away is a tredious enough strategy. Add all the recent BIOS, OS, LabVIEW and driver issues and you are in a world of fun... Here is a similar scenario from 6 years ago:
  3. Ah. Linux RT support is the big thing for us . We used ot have some VxWorks targets, but those are obsolete now. I'll revert back to 4.2b.
  4. The RT Image folder does not seem to be updated with the newly released version 5 of OpenG Zip...How is the process to install it on Linux RT targets now? I looked for an .so file for 5.0 or an option to install it in NI Max, but have not found it yet?
  5. So you do have modbus communication, but the problem is that you *sometime* get a timeout? You are able to read/write data from the device, it just is not stable? If so the serial port seems to be working and all you probably need is to tune the timeout parameter or troubleshoot the device that replies slowly or not at all on some polls...What are the timeout parameters in this driver and their values? I would connect a simulator instead to the port (ModSlave32 e.g. if the device is a slave,or ModScan 32 if it acts as a master...You can also run a trial of our Modbus Master that can be downloaded here: https://www.clampon.com/products/software/modbus-test-master/) that will let you view/ debug the communication (how often does it poll, do the poll commands look OK (can be verified in online verification tools e.g.) and does it timeout even if the simulator sent out a reply etc...). Using a simulator tool to verify that the connected device replies as it should if connected to that is also a good thing to do. (If that is not what you meant I would test this without involving Modbus or anything first. You can use a terminal program on the PC you connect to the serial port. We have one written in LabVIEW that simple to use, it can be downloaded here: https://software.clampon.com/ClampOn_Serial_Tool_CurrentVersion.zip On the sbRIO you can run one of the serial IO examples that just initializes the port, writes something and reads...then check with the terminal program if you get what you wrote and read whatever you send from the terminal program. Once you have basic serial comms workingyou can go back to the modbus driver and see if that has any issues when the basic functionality is OK. If it does you take it from there..) I've never had a need for NI Serial on any of our cRIOs or sbRIOs, only VISA and as you say the support for 9870/71 add-on...Perhaps they just list that driver as needed to cover the case where it is actually used with equipment that requires it? You could try to download the NI Serial driver separately, but normally NI Package Manager should present it as a possible option during software installation from NI Max, especially if you are using a system image.
  6. NI Serial is not required for the use of serial ports built-into the sbRIO-9627, only VISA. So that is not the problem. I would try to simplify this down to a simple VI that initializes the port and tries to read or write to the port. Check if the initialization returns any errors and whether you get any data in or out of it (connect a PC with an RS485 uinetrface to the RS485 port and see). Note that if you are using 2-wire RS485 you will need to set the port in 2-wire mode for it to work... (I would also stick to the 2020 RT RIO-install instead of the 2021 system image, but that's an unrelated story... )
  7. No they did not have one (too busy with Emerson this time around perhaps), but they have opened one *now* to get feedback: https://forums.ni.com/t5/LabVIEW-Public-Beta-Program-in/bd-p/labview-2024-beta
  8. Ran into another 2023Q3 issue with Matrix functions as well when buidling another application in the same project, the solution to that has been discussed here already though: https://forums.ni.com/t5/LabVIEW/Impossible-to-build-a-working-EXE-in-2023-Q3-if-matrix-functions/td-p/4327930 I'll test today if any of these issues have been addressed in 2024 Q1...(not discussed in any of the release documents so far as I can see).
  9. Now that 2024 Q1 is released maybe we can just skip to that ๐Ÿ˜ฎ It will be interesting to see if the issues highlighted in this thread has been resolved(?).
  10. So far I have gotten around the main crash/freeze (now with the 32 bit version, but I will revert back to the 64 bit and test too) by recompiling the FPGA bitfile that the RT version of the code would deploy. I can understand that it is necessary, but not that LabVIEW is not able to handle it better and produce a recompilation request or any other type of explanatory warning...
  11. Having mostly completed a major update of one of our largest projects I wanted to evaluate if we should take the step from LabVIEW 2022 Q4 32 bit to LabVIEW 2023 Q3 f2 64 bit before release...Unlike many we seem to rarely experience issues when upgrading (7-2022...), but this time I've hit a wall. I had read about how people have problems with buidling applications with VIMs in 2023Q3, but there seems to be all kinds of other issues going on. At first builds would fail with Bad VIs, but clearing the compile cache removed that. Now instead, LabVIEW hangs on "Initializing build", then crashes after a while. I've reinstalled/fixed the full LabVIEW installation, mass compiled everything including the entire VI lib etc...but to no avail. I see a lot of users say they have moved back to 2023 Q1, or plan to wait for 2024 (will there even be a new release in 2024 I wonder...), but are there users out there that do get things to work fine, even with RT Linux targets and 64 bit? I'll reinstall once more and this time try the 32 bit version...but if things still do not work I think we'll skip 2023 and hope for better days in 2025(?).
  12. How far from the goal are you now, and have you identified where the time is spent? If you e.g. just manually launch the LabVIEW application and flag when it does its first action, how much of the minute is spent already and how much time does the rest of its tasks use? You say you want the program to be launched by Windows as quickly as possible too, how much time does it take for Windows to launch it now compared to any other simple application/service you can set up?
  13. When I first saw the compount add I though that must be use because it is quicker than multiplying by 3, but in the tests on my machine it is the slower. With the replace logic though it does not matter anymore. A digression: Branch prediction is an interesting phenomenon when dealing with optimizations. In this particular case it did not come into play, but in other cases there might be a benefit in making consecutive operations identical ๐Ÿ™‚ : https://stackoverflow.com/questions/289405/effects-of-branch-prediction-on-performance
  14. You beat us well @ShaunR ๐Ÿ™‚ Normally I would use replace in situations like this too, to get the advantage of the preallocated memory. I improved some of the OpenG array functions that exact way (which is now included in Hooovah's version), but lately I've gotten so used to the performance and simplicity of conditional indexing that I did not grab for it here ๐Ÿคฆโ€โ™‚๏ธ.
  15. A bit quicker it seems is to use conditional indexing, like this: On my machine I got the following results (turned off debugging to avoid it interfering with test and removed the display of input as I would occationally get memory full errors with it): Original: 492 ms ensegre original: 95 ms ensegre with multiply by 3 instead of 3 adds: 85 ms Conditional indexing: 72 ms There might be even better ways..The efficiency of conditional indexing is often hard to beat though. demo_rev1.vi
  16. On a related note GDevCon 4 just ended in Glasgow with a record number of attendees....๐Ÿ‘ (Maybe that is partly because the alternatives are not as good/many anymore, but let me be optimistic for a while...) If Emerson does not want to kill or starve LabVIEW, maybe there is a nice future beyond 10 years as well. Retirement age is steadily getting pushed upwards though so personally it would be nice if things went on for another 25 years, or even better; allowed our kids to make a career working with G everywhere in 2050๐Ÿ˜€
  17. We use the nuvola icon set for a lot of things.
  18. Found it, here:
  19. The link only points to Jordan's profile, but he might have been involved back then yes...
  20. I had noted a simple recipe earlier from here somewhere for manually installing lvzlib.so (OpenGZip 4.2beta) on Linux RT 2020 and newer now that the "Custom Install" option no longer exists / works in NI Max, but I seem to have lost it and cannot find it again. Do anyone know where that discussion was, or has the recipe?
  21. When it comes to "Remove Duplicates" the performance of OpenG is a bit of a curious case (unless I am just overlooking something obvious). The original OpenG function builds the output arrays one element at a time, but still (in my LabVIEW 2022 at least) outperforms the alternatives I make where I reuse the input array. The latter use less memory it seems, as expected, but it is as if LabVIEW has become smarter when there are repeated build operations (but not for the functions we have gone through previously...(yes debugging is disabled..) ๐Ÿคจ The attached version is a simplified one of the original suggested revision. As mentioned it does seem to use less memory than the original OpenG, but is still slower ๐Ÿ˜ž Remove duplicates.zip
  22. Not sorting the array we are processing, sorting the array of elements to delete. That is done just to facilitate the filtering algorithm, it does not affect the array that is to be processed. (Unless the sort has somehow gotten misplaced somewhere in the code that has been bounced around here...)
  23. Performance mainly becomes an issue when the task at hand is heavy. I do not think saving microseconds on a small array/filter list is worth losing milliseconds or seconds when the array gets large. So that would be the rationale for simply ignoring the "quick on small arrays, slow on large" and choosing the one that is the fastest in the worst cases. However - there is one case where this can become an argument *for* keeping the other algorithms too; namely when you have to repeatedly run through small array/filtering jobs....๐Ÿคจ Life is never easy๐Ÿ˜ฌ The "Revised version" is the best middle ground; quicker than all on most small and medium arrays, and still 2x times quicker than OpenG on worst case scenarios. The Rev2 one is 10 times quicker then...but in truly worst case scenarios you typically end up writing customized algorithms instead of using generic libraries anyway...(I would then often skip the deleted array indexes output to get things even quicker e.g.).
  24. An inversion error snuck in, if you look at the code and invert the inversion its right ๐Ÿ™‚ Attached here... Filter 1D test - fixed.zip
×
×
  • Create New...

Important Information

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