Jump to content

eberaud

Members
  • Posts

    291
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by eberaud

  1. It also makes me think of a DVR (Data Value Reference). So an acronym like SEP seems appropriate.
  2. I see. One thing that still requires OpenG though is the reshape array functions (MultiD --> 1D and 1D --> MultiD). Are you aware of any native LV code to replace those?
  3. It's a good idea to set the post as "Answered" and define which post is the answer, so that other users seeing this thread can go directly to the solution
  4. This is really cool. This quick test returned TRUE and TRUE! I guess the Variant to Data didn't exist at the time the OpenG library was made...
  5. The OpenG does have feature that the NI lvlib doesn't though, like getting the values of the elements of an array. The lvlib GetArrayInfo.vi only gives the element type of the array. So my code uses OpenG when necessary, and VariantType.lvlib when possible, in order to use as much native NI code as possible.
  6. Great, so I can focus on the lvlib only. Thanks for the info
  7. I always have a draft notebook and a pen next to my keyboard. If I need to stop what I am doing because of an agenda constraint, I usually write down a few words that will remind me where to resume my work the next morning. Not super environment-friendly but that way I don't need to leave the PC on all night with the current VI opened...
  8. I recently installed some MGI quickdrop shortcuts, but can't find related changes to LabVIEW.ini. What settings are you talking about in this case?
  9. Reviving this topic instead of creating one... vi.lib\Utility\VariantDataType\VariantType.lvlib seems to be similar to vi.lib\Utility\GetType.llb Is there a reason for both to exist? Is there an old implementation (the llb) and a new implementation (the lvlib)? This whole concept seems very important to understand, I would like to get to the bottom of this. Thanks
  10. Is LuaVIEW going to support Lua 5.1 or higher at some point? I read that LuaVIEW 2.0 was in the making, but that post is 2 years old, and the LuaVIEW website shows that 1.2.2 is the latest version, and uses Lua 5.0. I'm not using Lua for now, so this is not a request, I'm just trying to understand what is going on Edit: sorry to post about LuaVIEW in the MLua thread, the thing is that I'm quoting a post about LuaVIEW that was posted here...
  11. I ran into the same conflict issue, so I tried to find version 2.1.3-1 and let VIPM upgrade it but I can't find this version. The earliest version 3.x I can find is 3.2.0-41 which led to the same conflict error...
  12. So I'm getting a little confused here. Everything is installed in the user lib at first, which doesn't insert the "Rex - New Command" utility in the Tools menu. Moving the whole Rex folder to C:\Program Files (x86)\National Instruments\LabVIEW 2014\project\ does the trick. But now when I click on "Rex - New Command", it can't find the files it needs and seems to be looking for them in the user lib. Long story short, what files should be where? Thanks!
  13. I wouldn't cast your objects into variant. The fact that you can have an array of the ancestor class is the whole point and beauty of OOP. What is important is how you create the object. As long as you create an object as a child class, the child overriding method - if there is one - will be called instead of the parent one when the method is called on one element of your array. For this to happen, you need dynamic dispatch of course. I put together a quick demo of what I'm talking about. LVOOP demo.zip
  14. OK perfect, thanks for the reminder about bound checking. I performed many tests and believe I have a final version of my subvi.
  15. Just spend a full hour reading about ISO 8601, UTC, the earth's rotation that is slowing down, and leap seconds. Thanks for this super interesting reading
  16. I looked at it, but because it was based on linear interpolation, I was afraid this would work only if the gap between each consecutive element is the same. If you confirm I was wrong, then great, I will use the Threshold function!
  17. I have an array that is already sorted. I want to find or write a VI that returns a subset of this array based on a minimum and a maximum values that I define. For example, if the array contains [0,1,2,3,4,5] and I set min = 2.9 and max = 4.1, the function should return [3,4]. So far the only way I can think of is to take each element starting at index 0 and compare it to the minimum. When I find a value that is greater than the minimum, I start comparing each following element to the maximum. When a value is greater than the maximum, I can stop the execution and return what I have collected. Although this would work, it seems light-years away from being optimized... I can't find any LabVIEW or OpenG functions that does this. I can't use the Search function since the minimum and maximum values might not match any element in the array... Ideas appreciated
  18. It worked, thanks! I guess a 2-digit year is not enough information to reconstitute a full absolute TS...
  19. A part of my code converts a time stamp into a string. Another part will have to read this string and convert it back to a time stamp. However, when I run this quick example I've created, I get an error. Does anybody know what I'm missing? Thanks
  20. To me this is not a race condition. A race condition would for example cause the dequeue function to be called before the enqueue function while you intended otherwise. But the fact that a function doesn't time out while it's supposed to is a bigger issue...
  21. They are all timed loops, so there are no Wait functions. The period of the timed loop is defined as 10ms.
  22. Yes, the 3 CANbus have a 500k Baud rate. On the 3 buses, the application send and receive several messages every 10ms. Each send message has to be prepared, and each received message has to be parsed, so overall it's true that it is an intense process... Well this PC previously had older versions of NI-CAN, NI-VISA, etc. that I upgraded to the 14.0 versions. Do you think I should try to take a "clean" PC with no NI products at all, and install only what I need?
  23. By "no timeout" you mean the enqueue element doesn't exit after 30s?
×
×
  • Create New...

Important Information

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