Jump to content

jcarmody

Members
  • Posts

    947
  • Joined

  • Last visited

  • Days Won

    39

Everything posted by jcarmody

  1. No, so here... jcarm-ReqHatch.zip Run jcarm-ReqHatch/Code/ReqHatch.vi to see it work. Let me know if y'all think that it can be extended into something useful. There's a lot of work left for me to do, and I hope to work on soon it with my next ATE project.
  2. I thought of this old post of mine when I read your post; you responded with this, (from July 2009) Would it help with what you're doing now?
  3. I had to look that up. Definition pants adjective /pænts/ adj [after verb] UK slang not useful or of bad quality This music is pants. (Definition of pants adjective from the Cambridge Advanced Learner's Dictionary)
  4. At long last, I've added the ability to work with Event Structures to my CaseSelect JKI RCF plug-in. I haven't gotten as far as packaging it for 8.2, but I've attached a zip if you have LV2010 and want to try it. CaseSelect.zip
  5. I can't look at your 2010 code, but can you move the Event Structure out of your main loop? I don't know if I'm suggesting something that you already know, but take a look at the Producer/Consumer-Events design pattern. As for your suggestion: I use the JKI State Machine and do this when I have a repeating loop of states and still want to respond to user input. More often, I'll launch a separate process for tasks that will take longer than I want the UI to be unresponsive.
  6. I used the Constant Refnum for Constant instead of BooleanConstant but didn't add all types of constants to the Case Selector. I could search for "Constant" in the Class Name, but I'd just be moving the Case Structure. The other cases include Control, Node, Wire, Control Terminal and While Loop. I'd like to make it generic without specifying every possible type. I'm stuck...
  7. I'm trying to help in this thread and came to a roadblock. I want to be able to examine the Label.Text of any GObject that has a Label.Text property without using a Case Structure to handle every type as I did in my solution there. My thought was that I could use the Class ID property of the GObject to cast the reference to the specific type of object and check if it has a Label.Text property. This brings up a few questions: Is it possible to get a type-specific Constant Refnum from the Class ID? How? Once I have the Constant Refnum, how can I get keep the property node from breaking (see below)?
  8. I played around a bit further hoping to make it more general by searching for GObjects instead of each specific type. I came up with this, but it requires adding cases for every type of object you want to address. Perhaps it's not the worst solution...
  9. Have you asked your local NI representative? I'd think they'd be happy to have an opportunity to evangelize.
  10. You get a lump of coal in your stocking? <EDIT> SNR going down... </EDIT>
  11. With Undo, because experimenting is easier if you don't have to manually rename stuff back.
  12. jcarmody

    Cosmology

    Spotted here, on the Dark Side.
  13. Here's the best way I know to find stuff anywhere in a VI; it's called TRef Traverse for References.vi. Feed it a VI reference and it will find every instance of the specified Class, no matter how deeply nested they are in various structures, which you can operate on as JG suggested. I've attached an example (in two VIs) that you can try. Download them to the same directory and run shooter.vi; it'll find (by name beginning with "XX_") and rename the Boolean constant that is buried in a Diagram Disable Structure in an Event Structure in a While Loop. <EDIT> Added shooter/target example <\EDIT> target.vi shooter.vi
  14. I use the Code Capture Tool instead of the native feature. The CCT lets me save my snippets in older versions of LabVIEW.
  15. This is how I'm handling anomalies in my OCR: It searches the text for things like spaces before/after periods and the number 1, repeated single quotes (indistinguishable from double-quotes) and repeated spaces (they're everywhere); I'll add more as I find them. I've updated the file in my previous post.
  16. Here's my latest. It doesn't use GOCR any more (I used Mikael's brute-force approach with a different implementation) and it works in LV 8.2. I'm thinking this will be how I add Event Structures to my Case Select RCF plugin. <EDIT> There's a demo.vi in the attached zip file that contains an Event Structure and the code to extract the events </EDIT> Event Structure OCR.zip
  17. Wasn't me, but I've seen descriptions that were cool enough in themselves to warrant a rep point.
  18. Combined with GOCR gives me the following, thanks. I'll make it general for 8.2 later. EDIT: This snippet requires that you have gocr049.exe in the same folder as the VI (it's in the zip file, along with a 2010 version of the VI). Event Structure OCR.zip
  19. The image is correct and 8-bit pixmap is the only output of Unflatten Pixmap that contains any data at all. I've cross-posted this to NI's forum because it's left the original OCR topic.
  20. I'm using LabVIEW 2010 with the default fonts (I think) although, at home, my 1-bit pixmap looks like your screen shot. I think you're on to something; my fonts seem to be messed up. Edit: I see the same with versions 8.2.1, 8.6, 2009 and 2010 on my computer at work.
  21. I have a student version of LabVIEW 2009 for my kids (home school).
  22. Here's what I'm seeing, which doesn't look like the image Mikael posted. I can barely tell that it says "stop"; GOCR doesn't see anything. What can I do? I've attached the file as .txt instead of .ppm. test.txt
  23. I'm stuck at this point. How can I save the image as a PPM format file?
  24. Have you done anything with GOCR in LabVIEW? Do you have a sample?
×
×
  • Create New...

Important Information

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