Jump to content

todd

Members
  • Posts

    335
  • Joined

  • Last visited

  • Days Won

    13

Everything 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. Subpanel is a good way to go. In each child class, there could be a different-named display VI that can insert itself into the subpanel (DisplayType1.vi, DisplayMultiCursor.vi). I've used regular classes for this, as well as AF.
  3. I would guess that a console app needs, at a minimum, the LabVIEW RTE. A GUI would need the RTE and X.
  4. LV-native MD5 hash VIs are included in vi.libUtilityMD5Checksum.llb Openg also has MD5, but no RFC 2574 stuff.
  5. Have you hit your 10MB limit? The only place I can find to check my current usage is when I try to attach a file. Currently, I have 5.89MB left.
  6. 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!).
  7. 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.
  8. This isn't what you're looking for, but it's the beginning of a method I'm trying to refine. It's AF, and it's woefully simple, but it was a starting point for me. In a similar actor that uses visa, when the visa resource name is empty, a child actor is called that allows for simulated/scripted data. StreamDaq.zip
  9. Looks like the browser loads the entire page THEN goes to the unread post. When the connection is slow, here, that can take long enough that I start scrolling down.
  10. Wish I could send this to the managers I've had over the last 15 years.* Ooh, or to the managers yet to come. * Except for those two blissful years where there was an actual team.
  11. I don't see a feedback link on that white paper. The Related Links are all malformed. Checked in IE10 and Firefox.
  12. Things I've heard will lose a small number of points and are easy to change: - Use explicit constants in each case of a structure instead of "Use Default If Unwired" - Make a simple text icon for the typedefs
  13. I get the impression that most people who use by-ref classes use IPEs inside the class' methods or inside a "class API". Sometimes, they need more flexibility. http://lavag.org/topic/16354-understanding-preserve-run-time-class-in-an-in-place-element-structure/
  14. Another vague answer: Don't over-architect it. The example solutions and the user-submitted solutions here: http://forums.ni.com/t5/Certification/Sample-Exam-Solutions-for-Review/m-p/1824703#U1824703 vary from single-loop control polling, to UE-inside-of-case (think JKI SM), to producer-consumer. Use whatever feels best.
  15. 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.
  16. Here's a conversation about execution state: http://forums.ni.com/t5/LabVIEW/Programmatically-distinguish-between-running-and-reserved-vi-s/m-p/2361524/highlight/true#M736114
  17. Or add an inheritance mapping. No automation is allowed: http://yed.yworks.com/support/qa/998/yed-via-command-line
  18. Super-cool! Now to get yEd to auto-size and contain the names. Here's the early stage of a project, shown as Heirarchical:
  19. Hello. Yes, that's what "cross-post" means. I put the link here so people would know there was a discussion already underway.
  20. Cross-post: http://forums.ni.com/t5/LabVIEW/Problem-with-Waveform-Chart-X-scale/td-p/2431714
  21. I don't use auto-populate, and I have not had the need to put data files in the project. Just curious - why do you put data files in the project?
  22. I agree. They wanted cheap, plug-n-play labor. Management were the "gurus", and staff just executed. That's why I left.
  23. 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>".
  24. If you have the "treat read-only VIs as locked". Otherwise, dirty dots can happen. Distributing code that is "locked - no password" works no matter what LV settings someone else has.
  25. 1) "Create User Event" 2) Make that event (the wire) available to all the VIs that will generate it or respond to it. 3) For each VI that should respond to it, "Register for Events". Only wire that event ref to one event structure (ES). Other ES can register for the event, too.
×
×
  • Create New...

Important Information

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