Jump to content

todd

Members
  • Posts

    335
  • Joined

  • Last visited

  • Days Won

    13

Posts posted by todd

  1. Not sure about the exposure, but if you want 2 seconds delay between acquisitions, you'll need to change something. One way is to wire the Error Out of the first acquisition into a single-frame sequence that only has the Wait (ms). Then wire the error wire through that frame and into the second acquisition.

     

    Does the Vision Assistant allow you to right-click and "convert to code", or so?

  2. Scalar measurement and array measurement sound like different methods, if not different classes.

     

    I go back and forth between creating a few classes that cover lots of functionality, and many classes that cover simple tasks. The ones that get reused the most tend to be the simplest (because they're well-understood and they fit easily into any app), and the most complex (because they are the hardest to change - ha!).

  3. I don't have CLA exam knowledge, so I'm following this post.

     

    A question: Why call Handle Error directly in the ES? That doesn't allow the actor to be stopped, right? I usually try to put code that has meaningful errors inside the actor methods, and if there's an error in the ES, I consider that a hard stop - so after the ES's while loop, I call stop core (and ignore errors if Handle Error already caused a stop). Then send the error to the caller so it can decide to restart.

     

    Edit, after looking at it better:

     

    Oh, you're using the stop actor output to stop the ES. But this only stops the ES, not the actor.

     

    If a method throws an error, and Handle Error stops the actor, how do you stop the actor core ES/while?

    Typically, I create a user event (type error cluster) that stops the ES. when the "call parent" actor core stops, it's error output triggers this "done" event. I dwelling on error handling, and not offering helpful input.

     

    In handle error, I rarely call parent, because I want the option to not stop the actor.

  4. If it's just the file type, put the file dialog express VI in a loop and check for a valid extension.

    I believe the original problem was that, once the file dialog was open, another pattern could be selected - which allows a user to double-click on an .exe file. In 2012, you can right-click on another file and select "open", and it will execute after the file dialog is done.

  5. It's a judgement call about what basic knowledge is, or what future self knows.

    (I knew a manager who didn't let people use structs in their c code because a "person off the street might not understand structs".)

     

    One category I'd add is the occasional note about "if I had to write this from scratch, I'd do it <this way>".

×
×
  • Create New...

Important Information

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