Jump to content

Yair

Members
  • Posts

    2,869
  • Joined

  • Last visited

  • Days Won

    44

Posts posted by Yair

  1. Just in case you don't know, you can use the scroll wheel to scroll horizontally, but you have to place on the cursor on the horizontal scrollbar for it to work.

    Many programs allow free panning (similar to the grabbing hand) if you press the scroll wheel down - you push it down and then moving the mouse scrolls the page you're on in any direction - this could be really useful with a 2D environment like LV.

  2. Nope. That doesn't work between executables.
    Seems to work fine in 7.0.

    You have to make sure that you enable the VI server's remote access in the executable (Options menu or INI settings) and that you give each executable a unique port number.

    Then, you need to wire 'Localhost' into the machine name input of "Open Application Reference" and the correct port number.

    Lastly, you need to remember to wire the application refnum from your Open function into every VI which will need it (like Open VI reference).

  3. That because using a quasi-random method to select which ones are going to be moved means that some won't be moved at all, some will be moved once, others will be moved twice, etc...
    Yes, but why is it always around 13.5% which aren't moved? I assume this is because of some property of the random number generator which I don't feel like testing at the moment.
    I wouldn't call this a "margin of error"
    Neither would I.

    Oh... I already did...

    However, since time is bidirectional (or is it quasi-directional? :wacko: ), let's pretend I didn't do that yet. :D

  4. <Physicist Hat>

    All "random" patterns are quasi-random: there's no such thing as completely random, only degrees of quasi-random...

    </Physicist Hat>

    I know, only in this case, using the third method in 7.0 with an array of 10,000 elements leaves 1300-1400 of the elements in their original locations, which is a rather large margin of error (13 percent). Since this method is based on the random number generator and the number is around this range every time I run the VI it seems reasonable to assume that this is a property of the random number generation which is reflected through using this method.

    The method suggested by Guenther is fast, random and elegant and appears to be the best solution.

    Download File:post-1431-1145547234.vi

  5. An even more efficient method of the shuffle, just randomly select two elements and swap their locations.

    post-1058-1145537719.gif?width=400

    Nice. I actually figured out the shuffle way as well, but the main problem with both methods is that they're only "quasi random" (they have an inherent order) and a cryptographer friend of mine told me once that these kinds of methods are not considered good enough for cryptography. For other purposes, however, they should be good enough (especially if memory allocation is in mind) and I will try to remember the second one.
  6. Efficient how? Memory? Speed?

    I don't think there is any way to do this without using 2 array buffers (one for the input and one for the output), which is what you're doing.

    I think LV might be clever enough in its newer versions to detect that you're not actually doing anything with the top array and will probably reuse its buffer. Other than this method (which should only be a problem when handling large arrays), the only viable method I can think of would be passing the array to a DLL with an efficient C algorithm, but I'm not sure the overhead will justify it.

  7. NI having total control of the Developer Forums can remove any post they feel is not appropriate and they do sometimes do this not just for totally out of context posts or spam but also some posts about things NI does not feel the general user group should know about.
    I know of NI's control and their TOU. Ben made it sound as if there were specific fairly recent instances where he was censored and I'm wondering what those were.
  8. We technically have all the tools we need to write this.

    That image was done with the LV 3-d picture control tool-kit.

    I have already done custom skins for the objects.

    If a GUI interface was developed for it and coupled with scripting...

    Isn't the 3D picture control ActiveX (windows only)?

    And isn't it quite buggy (by your own account)? :(

    I guess that means we'll have to wait until Michael is prover right before we see a proper working 3D version. :clock:

  9. Nice work.

    I'm also in favor of unlocking the diagram (even if the code doesn't look that great :o ) and I would also suggest making the window much smaller. It should preferably be only the replace button with the option of getting to an options menu.

  10. And your point?
    No real point, just to provide some more info about these (and to show that they didn't fly under the radar for some people. The BreakPoint is also a fun place).
  11. You can't rotate objects and you can't modify objects programmatically.

    Practically speaking, there are several ways to get more-or-less dynamic UIs -

    • Subpanels
    • Picture Rings
    • Hidden controls, controlled through Visible properties
    • XControls?
    • Picture Control

    The last one is the only one which will allow you to have a truly dynamic UI, but that would require that you do everything yourself. If you want some examples, go to this thread.

  12. The US did NOT defeat the Nazi's (actually it was Rusia...

    being censored...

    So I am paranoid...

    In the US it is the scientist and engineers tha decide what is "good" food and what is "bad"...

    You're starting to sound like Alfa. :D

    BTW, what specifically are you refering to in "being censored one too many times"?

    Michael, yes, it was a very clever hoax and I see the humor in it, it's just that I wouldn't have found it funny in real time even if I had figured it out - some things are no laughing matter.

  13. It's quite possible that I'm not the only one who tends to believe people, especially when they bring bad news.

    You need to remember that we (at least some of us) don't know you personally, we don't know the exact nature of the relationship between you and Jim (for instance, why do you post a question instead of asking around the office first?), we don't know exactly how much of an effort it is to maintain this site or how much it costs and we do know that NI does have a tendency to take over competitors. Just remember how Ben Bailey explained his views here and then did come to a compromise with NI. I don't know how the MCC situation turned out, but these things do happen. You're right that there were some dead give-aways, but as I said, people tend to believe bad news.

    Also, people don't always "think". Sometime they just react as they hear something. I can say that my first reaction was "O.K., that's bad. How do I get the most out of this?". Only later came thoughts about the other meanings. I will just say again: "That's not funny!". :wacko:

    The use of NI personnel participance was a good point, though. :P

×
×
  • Create New...

Important Information

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