Jump to content

orko

Members
  • Posts

    576
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by orko

  1. I have a U32 RGB image streaming in from a webcam, and I want to overlay/merge (whatever is faster) a U16 grayscale image over the top of it. The grayscale image has 0-value pixels that I do not want to include in this "merge". Any non-zero intensity value should be included. What would the proper IMAQ tools be to merge these together? I've tried to cast the U16 to a U32 RGB which works (loses some intensity resolution due to bringing 16bit down to 8bit color, but I can live with it). Where I'm stuck is I can't seem to find anything that would efficiently overlay/merge *just* the non-zero pixels of this casted image onto my background U32 RGB image. I know this is something silly I'm not thinking of... I am capturing both images at 30fps and need to perform this operation in realtime. Can someone point me in the right direction of the NI-Vision palletes...or an example perhaps that will push my "ah ha!" button?
  2. orko

    USB Bulk w/VISA

    QUOTE (andymatter @ Feb 20 2009, 01:33 PM) That's what I'm thinking. For some reason I'm seeing these odd HALT_ENDPOINT control msgs sent instead of the Bulk-In reads that I'm commanding from LabVIEW. QUOTE (andymatter @ Feb 20 2009, 01:33 PM) Have you tried opening duplicate VISA sessions, each dedicated to a single endpoint instead of switching between each of them in one session? Tried that today actually. Still the same problem. I'm actually forced to pursue other methods of Bulk transfers using a .NET driver I had lying around. It won't be easy to get it to fit my needs, but so far I'm getting nowhere with the native LabVIEW USB read/writes on more than one endpoint. Thanks for your comments!
  3. orko

    USB Bulk w/VISA

    Hey all, Well, I finally did it. I'm deep into the bowels of NI-VISA and trying to understand it's USB RAW functionality. I have a device with one interface, and three endpoints (EP2 & 4 are BULK IN and EP3 is BULK OUT), not including the default Control EP(0) of course. I set NI's USB RAW driver up by creating an INF file through the driver wizard, and can send BULK OUT requests and request BULK IN transfers just fine over EPs 2&3. My troubles start when I try and set the BULK IN pipe to 84, and read from the other pipe. I'm using a protocol analyzer to see the traffic, and see that everything looks good before I set the "BULK-IN Pipe" VISA property node to 84. As soon as I try and switch over, though...I see a CLEAR_FEATURE HALT_ENDPOINT setup request go to EP0... and I never see the BULK-IN requests from EP4...the VI just sits there and times out repeatedly and I see no traffic after that point to the device. I was hoping that someone else had tried to perform BULK IN transfers on more than one pipe. The finished app will be reading from 2 or more pipes asynchronously, so I want to get this figured out... This is a pretty simple program, although I don't have it here at home. If it would help in solving this, I could upload a sample tomorrow. Basically, I'm opening up a VISA USB RAW session, setting the VISA BULK-IN pipe to 82 and the BULK-OUT pipe to 3. Then I do some transfers using VISA WRITE/READ (which work). Then set the VISA BULK-IN pipe to 84...and try to read again. That's when I see the weirdness I described above. Oh, and just for clarity...the device works with the native device driver on all endpoints. And no, just using that driver is not going to be good enough Thanks for any pointers or suggestions!
  4. QUOTE (Clio75 @ Dec 18 2008, 09:32 AM) Hey now... there are still some sane ones left here. Don't tell anyone I said that, though. :ninja:
  5. This is the oddest service I think I have ever seen... I get charged $0.90 per drink to give a drink to my friend My friend gets the drink "gift", and then has to register their CC/debit card on the site (eh?) My friend then goes to any bar or restaurant...doesn't have to tell them anything (eh?), just uses their "registered" card as normal and... 3-5 business days later, they somehow get credited the amount that they were gifted... Um. eh? So I get a gift of say, $50 for beers from a friend (they get charged $50.90), so I happily register my CC with them, and then go out to the bar and have five beers and some nachos. Afterward, I hit the Denny's for some late night hash browns and another couple of beers. The next day I eat the standard hangover breakfast at IHOP... The $50 goes...where again?
  6. There's finally a way to soften the blow... Make sure to look inside the book. There's some (morbidly) funny ones in there.
  7. QUOTE (xilverbolt @ Dec 11 2008, 08:07 AM) In case no one here has had this problem, I would suggest posting this to the http://forums.ni.com/ni/board?board.id=180' target="_blank">NI CVI/LabWindows Forum. NI monitors that forum and would probably be able to help you out in installation issues. Other than that, you could try looking in your Event Viewer (Windows) and see if it might point you in the right direction of why your LV app is crashing.
  8. QUOTE (xilverbolt @ Dec 11 2008, 08:07 AM) In case no one here has had this problem, I would suggest posting this to the http://forums.ni.com/ni/board?board.id=180' target="_blank">NI CVI/LabWindows Forum. NI monitors that forum and would probably be able to help you out in installation issues. Other than that, you could try looking in your Event Viewer (Windows) and see if it might point you in the right direction of why your LV app is crashing.
  9. QUOTE (Aristos Queue @ Dec 11 2008, 12:36 AM) Cheers! http://lavag.org/old_files/monthly_12_2008/post-3266-1229011880.gif' target="_blank">
  10. QUOTE (jcarmody @ Dec 10 2008, 03:59 PM) I like it. :thumbup: Just enough "do you want me to do it for ya?" attitude to get the point across. Is RTFM becoming GTFQ (Google The Freakin Question)?
  11. QUOTE (BrokenArrow @ Dec 10 2008, 11:20 AM) Saving space on the block diagram is a defined purpose in my eyes. Whether or not it is worth it for a one-shot subVI is up to the designer. A lot of times I find that I really just needed to split a state machine up into more states...rather than have a bunch of sequential code in one loosely defined task. Making the code more modular seems to me to be a function of the design itself, not a result of turning a block of code into a subVI. It pays to think the design hierarchy through before the code is even written, which tends to flesh out the need for "modules". Then again, I've probably just drank too much of the OOP grape drink and am thinking that way inherently now...
  12. QUOTE (asbo @ Dec 10 2008, 11:09 AM) Enter The Matrix.
  13. QUOTE (Maca @ Dec 7 2008, 06:50 AM) It's Perl. Joe "Former Perl Nazi" Sines (There. I think that's the second Nazi reference...wait...third now.)
  14. Yep, apples and oranges... estimators who don't know anything about LabVIEW won't care though. As far as complexity goes, it was once said to me that "complexity is a symptom of confusion, not the cause." I don't know how many times I've seen a huge, complex, beastly design reduced to beautiful, clean, precise simplicity by someone with more experience and wisdom. This is true for any language, and is one of the reasons I don't take much stock in assigning resources/value based on how large a project is estimated to be. Big is not always better.
  15. QUOTE (Justin Goeres @ Dec 8 2008, 07:28 PM) Terminator T3000 after a bad taco night???
  16. QUOTE (Michael_Aivaliotis @ Dec 8 2008, 10:01 PM) "I Nuked God" ... Now there is something to put on your resume. Or perhaps a t-shirt... :laugh:
  17. QUOTE (crelf @ Dec 8 2008, 07:33 PM) Er...what the $@%! is he doing to the camera at 2:27...? http://lavag.org/old_files/monthly_12_2008/post-3266-1228855631.png' target="_blank">
  18. QUOTE (DAQv @ Dec 8 2008, 06:06 PM) It's in the CLD Requirements & Conditions document found here. $299 USD currently.
  19. QUOTE (asbo @ Dec 7 2008, 01:57 PM) You should also take a look at http://zone.ni.com/devzone/cda/tut/p/id/3324' target="_blank">This.
  20. QUOTE (Yair @ Dec 7 2008, 08:38 AM) That's awesome... I especially like the boolean indicator that is hiding behind the top of the while loop.
  21. QUOTE (DAQv @ Dec 7 2008, 12:28 AM) DAQv, skof took the test last May (and passed)
  22. QUOTE (BobHamburger @ Dec 6 2008, 11:01 PM) And I can see why they chose "The Refrigerator" Perry for their spokesperson... if you want someone to proclaim deep, insightful comments (see video) like "What kind of beer?" and "Basket!", then Perry is your guy. As far as Jones BATR & S... I guess they could only afford a Chris Rock impersonator as their spokesperson. :laugh:
  23. QUOTE (Gavin Burnell @ Dec 5 2008, 02:21 PM) I agree. The last thing I need is to have my dev environment try to outwit me...
  24. QUOTE (brianafischer @ Dec 5 2008, 11:03 AM) http://forums.lavag.org/VI-Scripting-Readme-First-t1207.html' target="_blank">SuperPrivate... The ini keys will unearth these blue property nodes. :ninja:
×
×
  • Create New...

Important Information

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