Jump to content

Displaying array contents


Recommended Posts

Posted

Greetings from a newbie,

I'm doing some image processing with LV7.0. My client doesn't want to updgrade. :angry:

My task is to read in a .bmp file that's written by another process snagging images, and then cause some stages to move based on the contents of the bmp. I'm trying to examine the values of the 2D array that I've created from the 8-bit pixel data.

Could anyone suggest a technigue for display the contents of a 2D array of unsigned byte [8-bit integer (0 to 255)]'s? I tried dropping an array display on the front panel, and setting the number of dimension to 2, but when I wire up my 'unflatten pixmap.vi' 8-bit pixmap output to the array input, I get an error message complaining the source is unsigned 8-bit integer, but the sink is type void. Can I coerce the type? How does one do that?

Thanks for any help you could provide, I'd be glad to provide any additional info that would be helpful.

Regards,

John

Posted

Hi John,

it sounds like you have an empty (void) array. Right click on the FP-array and add a numeric indicator, this will provide a datatype for the array, and LV can put things in it.

Ton

Posted

The array that you've got on your front panel hasn't got anything in it, so it's a void. ONce you put another front panel control (like the numeric you're taking about) in there, then it will adapt to that type.

EDIT: Quick work Ton - you beat me to it!

Posted

Greetings from a newbie,

I'm doing some image processing with LV7.0. My client doesn't want to updgrade. :angry:

My task is to read in a .bmp file that's written by another process snagging images, and then cause some stages to move based on the contents of the bmp. I'm trying to examine the values of the 2D array that I've created from the 8-bit pixel data.

Could anyone suggest a technigue for display the contents of a 2D array of unsigned byte [8-bit integer (0 to 255)]'s? I tried dropping an array display on the front panel, and setting the number of dimension to 2, but when I wire up my 'unflatten pixmap.vi' 8-bit pixmap output to the array input, I get an error message complaining the source is unsigned 8-bit integer, but the sink is type void. Can I coerce the type? How does one do that?

Thanks for any help you could provide, I'd be glad to provide any additional info that would be helpful.

Regards,

John

You might want to look at the picture control or intensity graph to display your image, rather than an array display.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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