View Single Post
  #4   Spotlight this post!  
Unread 06-02-2011, 08:09
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Sending Processed Image Stream to Dashboard?

The first thing that jumps out in the attachment is that you have changed Primary Image, the one sent to Get Image, to be a U8 Grayscale image. I believe IMAQ will give an error when the jpg is decoded. If you built the detector to be based on monochrome images, I believe you want to put an extract plane between the Get Image and the retro tape locator. I'd probably extract the Intensity or Luminance plane and this will convert it to a grayscale.

When you convert an array to a cluster, arrays are dynamically sized, so you have to tell the convertor how many elements to put into the cluster. You do that by right-clicking on it and saying if you want three elements out. I believe it defaults to eight. The other way to get the element out of an array is to drop the array indexer. If you grow it, it will index and return more than one element. If you don't wire to the index, it starts at the first element and progresses. You can also use it with multiple indexes wired up.

Does the retro subVI return an array that it too big? LV arrays are dynamically sized, so it is odd that you have to split to take only the elements you want. You'd normally just return the array of the correct size.

As to the original question about sending images to the dashboard. If it is just for debugging, is there a reason you aren't simply probing the wire? If you run RobotMain by pressing the Run arrow, you are running out of RAM and can right click on wires to view data values, including images. Remember to right-click and change Palette to Binary if the image is a binary image. You can probe other types, you can set breakpoints, pause VIs, etc.

The reason to spend the effort to work these things into the dashboard is because you want them at an event where you will have to run deployed.

Greg McKaskle