Jump to content

Yair

Members
  • Posts

    2,869
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by Yair

  1. At least now I know what a carapace is.
  2. I don't know the actualy answer, but I can say that in the past booleans were actually kept in a single bit and this was changed (presumably with LV 5, which would have been some time before LV FPGA came out). If you right click certain data conversion nodes (such a type cast and unflatten), you can tell them that your data is in 4.x format. Pure guess - maybe this was done because of alignment and performance issues (i.e. everything else uses at least a byte)?
  3. I have seen something like this in VIs where I call a C++ DLL even if I don't do anything at all with the front panel (these were VIs which were generated by the automatic DLL wrapper VIs tool which ships with LV). Forcing the VIs to include the FP in the build did stop this from happening and I never investigated further. I saw it in LV 8.6.
  4. As said, tick count has always returned ms resolution. Get date/time used to have a lower resolution (in XP), so it would only update once every ~16 ms, but that has changed with either Vista or 7, presumably because MS stopped relying on old functions they had to rely on up to that point.
  5. Ugh, don't remind me of that. I based a low-level widely used component on this combination and I stress tested it before I started writing the relevant application to make sure it performs well, and it did. Fast forward to a couple of months later, when I test the app and lo and behold, this performs really badly. For a while, I thought that maybe my original tests were flawed (or worse, imagined). It took some debugging to understand that the bug only manifests itself with a particular combination which wasn't there when I ran the tests (I think it was if you use the initializer terminal to globally initialize the variant, so I ended up initializing it using a first call and select primitive).
  6. To expand on what Eric suggested, you should go read this thread - AQ has mellowed since then and would probably not say the same thing today, but it still is important to be aware of the implications of using type cast.
  7. No, but I never did any work with this. I see that my copy of LV 2011 has an HTTP client palette which also seems to have support for SSL, so it's possible that it will know how to work with HTTPS, but that's just a guess.
  8. There certainly is code which interacts with Google Docs, but I don't know if any of it allows you to download files. Here's one example - https://decibel.ni.com/content/docs/DOC-15430
  9. I haven't looked at the code too closely, but here are some quick comments: You don't stop the VIs cleanly when they are in a subpanel. I don't like the Abort VI/Close FP method. How about creating a stop user event in ViewComponent:init.vi and then triggering it in ViewComponent:stop.vi? I haven't worked through all the potential race conditions, and it would require the view VI to be more complex, but it seems cleaner. Instead of entering the SP names in the init VI, how about moving this code out to the view VI and then simply give the start VI an array of VCs and a parallel array of SP references? Again, this would complicate the view VI, but it would make the code safer and more readable. This reminds me of what we played with here, although there it was inheritance - http://forums.ni.com/t5/LabVIEW/An-experiment-in-creating-compositable-user-interfaces-for/m-p/1262378#M529154 Note that AQ's implementation there is considerably more complex than what you probably need here. My code there is more in line with this, but it does automatic ordering of the front panel, which is probably not what you want.
  10. I'm not sure what updates you want to make, but it's certainly possible to use VI server to obtain a reference to the CLF node and then change its configuration according to what you want. Here's one way: Enable scripting access. Create a VI that goes over a directory of VIs and opens a reference to each. For each VI, use the traversal VI in vi.lib (I think it's in Utility\traverseref.llb) to get all the CLFNs in the VI (presumably there's only one in each). Cast the reference down to the correct class and use the relevant properties. Call the Save method on the VI.
  11. I haven't looked at the code, but this is a relevant general point in LV and refers to crossrulz's post - references in LV are "owned" by the hierarchy they were created in. The hierarchy is determined by the top level VI. So, if you're opening references, you will want to call the VI opening the reference from a hierarchy which will stay in memory. Error 1 means invalid input, which usually refers to the reference in something like this, since it's the only input which can have invalid values, so it makes sense that this is your problem.
  12. Like Chris said, the CCT does allow that, as well as all kinds of options (such as the placement). There are some videos about the CCT here if you want to see the various features - http://www.screencast.com/t/ZmQ1YjIxNj
  13. This seems to allow reading an image from the clipboard using Win32 functions: http://forums.ni.com/t5/LabVIEW/How-to-obtain-image-from-excel-using-activex/m-p/690529#M316609
  14. Can you configure the blog to have English labels instead of Dutch? Since the content is in English, I think that's reasonable.
  15. You can't capture the event (at least not with G code). You can use the input VIs to detect the scroll (one of the outputs should give a relative position of the wheel), but that would require you to poll it (and then you can create an event there). Since you're talking about an XControl, you would probably want to look at this - There is an idea for this in the IE - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Add-a-quot-Mouse-Scroll-quot-event/idi-p/921547
  16. Just be happy they each have their own laptop. Imagine what would happen if they only had one. P.S. Great picture. Just don't send the one with the red shirt on any away missions.
  17. The bus gets to the downtown area, but you'll want to check how close they get to your hotel and how often they run when you land.
  18. I don't use LV real-time, but my understanding was that anything that has to do with the UI doesn't work in those targets. You could try using the picture control VIs to generate the graph there (if they work in RT) or you could simply save the raw data and then transfer it to a computer.
  19. Exactly. One thing I like here is that 23 is missing as well. I guess that after 13 it was just easier to keep going like that? How many Chinese women (in China) get to a fourth pregnancy?
  20. Surely* if it's a beta it should be called 2014b. Incidentally, here's a picture of an elevator control panel from China: Can you spot the problem? * crelf, don't even think about it.
  21. That's because LV recompiles the machine code in certain cases (such as changing the way you move data through the VI) and the machine code is saved inside VIs. One way of handling this in 2010 and later is setting the separate compiled code check box in each VI's properties, but I understand that sometimes has bug-producing behavior. You're probably also going to want to read this - https://decibel.ni.com/content/blogs/Matthew.Kelton/2011/09/30/labview-and-versionsource-code-control--introduction
  22. One additional comment: I'm personally not a fan of providing the name of something in more than one place. If ignoring controls on the front panel is common (and I'm guessing it actually isn't very common), then I would prefer if the template included a for loop which iterates over every control reference given to it and extracts its Label.Text property to use as the filtering array. Of course, since the default is to have no control, this code could be in a disable structure, or you could feed it one of the built-in controls, which I assume is meaningless, since it filters them anyway.
  23. The This VI reference is probably also redundant - you can get it inside the subVI.
  24. If the framework only runs the page VIs when they are put into the SP (and I'm assuming that's the case), then maybe you can try a trick - I'm assuming the Page Ready Notifier you send at the end of the Setup state tells the framework that you're done and you're ready to put the VI into the SP. What if before you do that, you open the FP (maybe hidden), then register the event, then close the FP again and only then send the notification?
  25. In the first video you mention that the framework code is duplicated in every VI because of problems with dynamically registering events in subVIs. Can you go into any more detail on that? Maybe it's something which can be resolved.
×
×
  • Create New...

Important Information

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