Jump to content

bbean

Members
  • Posts

    258
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by bbean

  1. What type of performance hit would you expect manipulating pixels using IMAQ ImageToEDVR and an IPE? Curious as to the difference between an algorithm implemented with this technique vs a c DLL call, but I'm not near a development environment with Vision.
  2. Are the Matrox dll calls thread safe? Are you making any dll calls in your image processing? Is it possible they are executing in the user interface thread?
  3. Off topic: that looks like one of the most interesting/promising improvements to the Vision toolkit in a while.
  4. CharlesB...I can't figure out where your race condition is. Also am not sure why you need all the extra mechanisms (Semaphore, DVR, Status) when you can achieve the same thing using 2 simple queues as shown in my example. Plus the 2 queue approach guarantees you can not work on the image being displayed until it is put back in the camera/processing pipeline. IMHO it is a simpler and easier to debug solution. The other thing my solution does is allow you to do the image processing in "parallel" to your acquisition.
  5. ShaunR - I was unaware that you could use events like that with Imaq IO refs...very nice. I will have to remember that for my next vision app. While the Godwin Global approach is nice, I think there are two issues: 1) I believe the poster is not using IMAQ camera interface (Matrox proprietary instead) and 2) Somehow his Imaq Image Display is getting corrupted by newer images when it is updated faster (400fps) than it can be painted by the OS. I'm not suggesting the "triple buffering" approach is the proper solution here, but I am collaborating with the hopes that he can see a "simple" LabVIEW queue approach can work. PS. I surprised ShaunR doesn't have a "Cantankerous Callback" approach and I haven't seen any Actor Framefork approaches with multiple Actors.
  6. Triple Buffering with simple queues and shift register. BufferTest.llb
  7. Is the attached closer to what you want? it prevents the "corruption" of the imaq image ref by taking it out of the cam /processing buffer while it is being displayed. The third image reference in the VI is pretty much worthless. But wanted to see if this was a step closer. BufferTest.llb
  8. How fast can you run your acquire and processing loop if you do not display? So passing the imaq reference to a display loop with a notifier doesn't work because you are afraid you may be overwriting the "displayed" image in the notifier loop?
  9. Can you share your code? Are you doing any image processing? Can you drop frames on the image processing?
  10. Threw together some quick code using an Express VI (GASP) to test the theory. Haven't run or debugged other than with my webcam. The Queue should prevent race conditions and provide a little margin on processing. Not sure how many data copies of the images will exist. Don't have time to investigate. Bean BufferTest.llb
  11. does anyone know if the code for the Edit Format String dialog box is written in LabVIEW and is it available somewhere in the LabVIEW directory?
  12. Yes. We had a similar experience using VISA but with USB Raw calls in parallel to an FTDI chip on a NI RMC running LabVIEW 2012 RT (no virtual comm port). We ended up having to remove the parallel loop and could not determine the root cause.
  13. Not sure if this is relevant to the conversation, but I wonder if the FIFO.Acquire Read Region DVR to TDMS technique discussed here: http://lavag.org/topic/15335-why-tdms/?p=109716 would help with your scenario if you need to push performance. See also: http://zone.ni.com/reference/en-XX/help/371599J-01/lvfpgahost/fpga_method_fifo_acqread/
  14. Is your database located remotely on a network? If so I would implement my first recommendation to open the connection to the database separately and leave the connection open all the time. That way you don't have to re-establish the connection each time to access the DB. Now you will have to add error checking and loops to re-establish the connection if it goes down. My guess is you are seeing some network latency or some type of issue related to the nagle algorithm bunching your packets together.
  15. The DB toolkit is really just a wrapper for the activex methods and properties you are using. One thing you could try is opening the connection to the database separately first (see DB Tools Open Connection.vi), executing a query with a forward only cursor on the connection (see DB Tools Execute Query.vi), and then "fetch" the recordset (DB Tools Fetch Recordset) like they do in the DB toolkit. This way you can separate connection problems to the database from querying problems of a large recordset.
  16. I am working on an RT app and hardware that uses more than 50 USB devices connected via USB hubs to an NI rackmount computer. After a hard reboot of the rack mount computer, the USB devices and hubs take more than 5 minutes to enumerate. I am looking for a way to verify all the USB devices have enumerated. Polling VISA Find Resources appears to cause the entire system to lockup if we start it immediately in RT app. If we manually delay for 10 minutes or so in the application and then call VISA Find Resources, it appears to work OK as long as all of the devices have successfully enumerated. A hard-coded 10 minute delay is not optimal because on soft reboots, the delay is unnecessary. Are there any other ways to get the state of system USB enumeration other than VISA Find Resource? During reboots, the NI boot loader takes a minute or so to "Enumerate USB devices" but it appears it only enumerates each USB hub before it completes and moves on. PS. I know there are latency issues using USB on an RT system. We chose to use the RT platform for stability (no windows updates, etc) vs determinism. This may or may not be a good reason, but its what we have now.
  17. why not mouse events associated with the graph?
  18. For the first time in my career I may need to compile LabVIEW code so it runs stand-alone on a MAC. Can anyone point me to a "compiling LabVIEW on a mac for windows dummies" article or webpage? A quick google search yielded limited results. My development machine is Win7 and I have VMware. I assume the process goes something like this: Obtain Proper Mac OS $$? and Install as a Virtual Machine in Vmware (I have VMware, don't have the Mac OS disks) Obtain LabVIEW for Macintosh with Application Builder $$? (I have a LabVIEW Professional license windows, can I just download/install LabVIEW for Mac on the VM and use my license) Install LabVIEW for Mac on Mac VM Copy VIs from windows development machine to Mac VM Press Easy button on LabVIEW for Mac and compile VIs to mac executable and build installer. Install on mac machine Profit The application uses serial port (any issues here with VISA?) for communication to a few instruments but no data acquisition. BTW my Mac experience is pretty limited...I can move the mouse around and click things but I still haven't figured out how to right-click . Any pointers or suggestions for avoiding common pitfalls are welcome. Thanks.
  19. Version V100_LV2012

    191 downloads

    This Quick Drop (QD) plugin complements the functionality of the built-in QD plugin (CTL-Space-CTL-D) by wiring between selected controls, indicators, constants, and SubVIs. Default Shortcut - [W] Normal Operation Wires selected nodes in left to right order. Attempts to connect any common unwired terminals in between the far left and right nodes by checking the datatype, Name, or Caption. Holding Shift and the Shortuct: Wires controls to unwired far left Node terminals and indicators to unwired far right node terminals. This is just something I put together as my first attempt at a Quick Drop plugin. Something similar has been done previously to wire the corners of subVIs using the right click framework by user JCC_(SK): RCF Plugin - Wire Nodes by Corner - https://decibel.ni.com/content/docs/DOC-8386 . Code for this plugin was developed prior to knowledge of the JCC_(SK) RCF code and probably doesn't function as well since it hasn't been tested thoroughly. However this plugin is for quick drop and has some added capability to wire up all like terminals but can suffer from potential overzealous wiring. Just delete extra wires if necessary. Thanks to the NI guys for creating the QD template with good instructions. Someone may have done this already but I'm putting this out for comment anyway. <a href="http://www.screencast.com/t/PZhMafM2">WireAndConnectVideo</a> http://www.screencast.com/t/PZhMafM2
  20. Name: Wire And Connect Quick Drop Plugin Submitter: bbean Submitted: 03 Apr 2013 Category: *Uncertified* LabVIEW Version: 2012 License Type: BSD (Most common) This Quick Drop (QD) plugin complements the functionality of the built-in QD plugin (CTL-Space-CTL-D) by wiring between selected controls, indicators, constants, and SubVIs. Default Shortcut - [W] Normal Operation Wires selected nodes in left to right order. Attempts to connect any common unwired terminals in between the far left and right nodes by checking the datatype, Name, or Caption. Holding Shift and the Shortuct: Wires controls to unwired far left Node terminals and indicators to unwired far right node terminals. This is just something I put together as my first attempt at a Quick Drop plugin. Something similar has been done previously to wire the corners of subVIs using the right click framework by user JCC_(SK): RCF Plugin - Wire Nodes by Corner - https://decibel.ni.com/content/docs/DOC-8386 . Code for this plugin was developed prior to knowledge of the JCC_(SK) RCF code and probably doesn't function as well since it hasn't been tested thoroughly. However this plugin is for quick drop and has some added capability to wire up all like terminals but can suffer from potential overzealous wiring. Just delete extra wires if necessary. Thanks to the NI guys for creating the QD template with good instructions. Someone may have done this already but I'm putting this out for comment anyway. http://www.screencast.com/t/PZhMafM2 Click here to download this file
  21. Do you know if NI support ever run the app with win debugging tools AND the LabVIEW symbol files (which they hold very closely)? Did you get to NI tech support directly (ie. 800 number or email) or through your local sales staff? I had a nasty bug (random labview crashes, random blue screens, random black reboots) that I spent weeks debugging. I finally escalated it through my local sales staff indicating how much money they would lose from my customer (hardware wise) if I couldn't get the problem fixed. They were very helpful and knew the right people in Austin to contact for help. Long story, but it took another week of debugging the code with an NI programmer using Win debug and the LabVIEW symbol files to find out it was a hardware problem (memory chips). Our customer purchased the 4GB memory chips for the PXI racks from a reputable manufacturer, but they were not the 400$ a pop NI certified 4GB RAM memory chips that are coupled with PXI hardware. It sounds like your app is running on a desktop or laptop but does this crash always happen on all Windows 7 64 bit machines you've tested it on? If it doesn't always happen on all machines it could be hardware related (other than the 64 bit processor). Have you tried running Prime95 on the 64bit machines that crash? http://files.extremeoverclocking.com/file.php?f=205
  22. For me it seems to be when I try to download from a link (only some not all). For instance, clicking on "click here to download this file" on this CR: http://lavag.org/topic/16360-cr-messenging/ i.e. this link: http://lavag.org/files/file/220-messenging/ causes this error:
  23. I'm still having this problem.
  24. I think you hit the nail on the head here. After pestering the customer, it turns out they are calling from an unmanaged Hamilton interface Interesting I'll have to check this out Not going there at this point Thanks for your help
×
×
  • Create New...

Important Information

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