Jump to content

Yair

Members
  • Posts

    2,869
  • Joined

  • Last visited

  • Days Won

    44

Posts posted by Yair

  1. With the exception of "Application Exit" (in Lv8.2) and user defined events, no events of the Event Structure can be triggered programmatically...

    Similar applies to Value Changed (where the value gets changed, and in the event code the value is somehow modified [perhaps pinned to be within a certain range] ). The system breaks down if the programmatic work triggers events.

    Except that we do have the capability to fire the Value Change event programmatically. Sure, we have to select the right property first, but it can be done, so why shouldn't we be able to have another option for that method called "Fire event?" and choose to use it when WE want to?

    BTW, I'm not saying this should be done, just that it could be done and that it might not be a bad idea. Since we can't use a user event in the same case as a filter event and since (presumably) the loop would stop after the case executes, this doesn't leave users with much of a choice for how to do this programmatically other than duplicating their cleanup case.

  2. I just refuse to use any type of Google Reader or Google email... Mainly because everyone is using it. There is no logic behind this choice. It's too hip. I'm using some other web based email program but I won't mention it because I don't want anyone else to use it. If this sounds ridiculous, then that's the way it's suppose to sound. :)

    I don't use it because "everyone is", but simply because it works and fulfills my needs. I can't say I did any serious market survey. I was simply offered that and took it to see how it would work.

    As for the results - Gmail is generally very convenient. The ads really do not get in the way at all and it does good threading, mostly. The one real complaint I have about it is that its threading is completely automatic and seemingly cannot be disabled or customized, so when it sometimes gets things wrong this can be a real pain. For example, if you take the recent and very long "LV R&D driven by.../X Vs. XP/GUI improvements" debate from Info LabVIEW, that was divided (wrongly) into several conversations, which made reading the discussion very hard. Google's hyped search capabilities could not help in that case.

    I tried Google Reader again now and, while the interface seems better, it still is far from useful for me. For example, it does not sort the new posts into their threads (something which would make it extremely useful). It also sorts the results newest first without any visible way of changing that. I might keep using it for some of the other things, but not for LAVA. I will also try looking at Dirk's program and see if I can't adapt that to better serve my needs in this area.

    BTW, in general, I agree with you about not liking what "everybody's using" or "seeing". Things that are too popular immediately become suspicious in my mind until proved to be good.

    Oh, and a nice modification to the picture, Arnold... :P

    "I'll need your boots, your clothes, and your motorcycle"...

    post-1431-1159683280.png?width=400

    I hope you don't mind wearing shades just because everyone else is...

  3. By the way, I did actually found the original scene, but unfortunately only the spanish version of it. As an explanation, the kid is an Arnie fan. He sits in class when the teacher explains about Hamlet and how he was one of the first action heroes and then shows a clip of Laurence Oliviers as Hamlet (the teacher is portraied by his wife). Anyway, the kid, being bored with that movie, imagines what it was like if his favorite actor was doing that part. It's funnier this way and after seeing the composited trailer you should understand this one easily.

    <object width="425" height="350"><param name="movie" value="

    name="wmode" value="transparent"></param><embed src="
    type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

    I also found another of my favorite 3 scenes in the movie. Personally, I think that this scene is incredibly clever, but you need to know movies to understand why. As another bit of explanation for what happens here, the kid is later pulled inside an Arnie movie, where the characters are all "real". Arnie's character is a cop and in this scene he brings the kid to the police station.

    <object width="425" height="350"><param name="movie" value="http://www.youtube.com/watch?v=4k6gvIweyAA"></param><param'>http://www.youtube.com/watch?v=4k6gvIweyAA"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/watch?v=4k6gvIweyAA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

  4. You've actually reminded me of what is probably the best scene in "Last Action Hero" (and don't sneer, I think it's an incredibly funny movie for anyone who likes movies enough to catch all the references). I couldn't find the scene itself, but here's a trailer based on and using parts of it.

    <object width="425" height="350"><param name="movie" value="http://www.youtube.com/watch?v=rUb6PBUgemc"></param><param'>http://www.youtube.com/watch?v=rUb6PBUgemc"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/watch?v=rUb6PBUgemc" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

  5. :blink: My brain hurts...

    :D Haven't seen that one in a while.

    </br></br><object width="425" height="350"><param name="movie" value="http://www.youtube.com/watch?v=HQgF0pRkjMc"></param><param'>http://www.youtube.com/watch?v=HQgF0pRkjMc"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/watch?v=HQgF0pRkjMc" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

  6. I saw a strange help file some weeks ago. Actually several of these variant VIs have this help file text even though they are completely different.

    post-4885-1159380162.png?width=400

    Which presumably means that they were all copied from an existing VI and someone forgot to change their documentation (what, no checklist at NI?).

  7. I try to be aware of every thread on LAVA, at least by reading its topic. True, I probably wouldn't be interested in some threads (like Mac or Linux stuff or an HH), but most of them are interesting. I also try to follow some blogs and even the NI forums, so RSS would be perfect for me.

    The thing is that I move between computers, so whatever solution I get needs to be web based, and that I need to have the data in threaded mode. I mean, I logged into my Gmail account after 2 days and I had 23 emails for posts on LAVA just to threads I replied to! Going into the forums' New Posts link consolidated this into a single, managable, page. The main problem with this method is that this page only displays the posts since the last time you logged out. If you logged in and didn't read some posts, they're gone - you'll never see them in that list again. In that sense I like NI's method better where it's handled on a thread by thread basis.

    I tried using Google Reader for RSS, but was unimpressed. So far, I haven't found any web based method which would keep a good threaded view and which would allow clearing stuff as easily as the forum allows it. Then again, I didn't look too much.

    So, to summarize, my current method is to log in anywhere between a few times a day to once every few days and give the new posts list a cursory review. If anything looks interesting, I go into the thread. Unfortunately, this is far from perfect.

  8. In the example below, only 16MB of memory is consumed, at least if profiler correctly profiles the memory usage of queues. Weird, I must say!

    post-4014-1158918476.png?width=400

    Actually, if I understand your code correctly, it seems that the class only holds the queue reference in this case, which would only take a few bytes. The second copy probably comes from dequeuing the data.

  9. Nice, although I'm not sure if this would be useful in my programs.

    One point is that to shave an extra couple of microseconds you should move the Data Out terminal out of the case structure (you can just set the other cases and the error case to default data). I guess that if LV sees that the original wire is not going anywhere else it can reuse the buffer (since its the same type) and not allocate more memory.

  10. Array elements all have the same properties and appearance, so you can't disable just a single element. What you can do instead is create a cluster of 8 booleans. You can then convert it into an array for your calculation and get the Controls[] property to control the properties of each boolean.

    Another option would be along the lines of blocking the change, like using a Mouse Down? event and discarding it if it's on a "disabled" button or using a value change event and reseting the values of changed elements if they are "disabled". Personally, I don't like these solutions. If you only need 8 booleans, go with the cluster.

  11. You'd be hard pressed to find any LV 6.0 code here.

    For one thing, people normally save in their own version and, even if they didn't, they could only save one version backwards.

    For another, there have been quite a few significant additions and changes to LV since version 6.0 (events, timed loops, projects, LV Classes, more advanced scripting, etc.) and the code simply wouldn't work in 6.0.

    Some people are still developing in 6.0, but most professionals will have a newer versions and would only use old versions to support existing projects.

    There are some tutorials floating around (although not here). The simplest way to find them is probably by searching either Google or the NI forums. There are also some books around.

    As for getting a newer versions, you could try shopping for a used 7.1 copy (or maybe even 8.0) or you could try getting the student edition (which is technically for educational use, but that's what you want, right?). Another option would be to download the evaluation versions. Recent versions of LV (I think since around 7.0) have had 30 days of evaluation and if you download them in sequence that should give you a few months for free. I think you can find them all on NI's FTP site, but if not, your local NI representative probably has a million of them stocked and if you're on good terms you can probably get them all.

  12. ...And that was my introduction to Labview, and I have been banging my head on the keyboard ever since.
    You see, there's your mistake. This is LabVIEW, so you should have been banging your head on your mouse. It would probably have hurt less and could even potentially create some useful code. :laugh:
  13. But there is an easier way...
    I actually already refered to this. Since the wanted result is a string (it needs to be saved to a file) the only way to get it using this method by getting the Numeric Text.Text property for the indicator, which is a bit of a hack.
  14. You're probably refering to the DSC module, which would definitely add unnecessary overhead and would probably even be slower.

    A couple of ways of communicating between executables would be using TCP (but you should note that this won't be as transparent as DS or the SV) and loading them into the same data space (although that would mean you would have to be careful about doing this. For TCP, you can search the example finder, and for the other option, you can see for example this thread.

×
×
  • Create New...

Important Information

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