LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to convert analog In to gray scale. How?

Hello,
 
I have a program that controls some steppers and collects analog signal (0 to 1 volt dc).  I would like to convert the signal to a picture by using the (x,y) position of the steppers and the analog signal.  How do I map the analog in to grayscale and what image sub-vi's can I use to make the image.
 

Thanks,
0 Kudos
Message 1 of 8
(3,110 Views)
Use the picture controls.  You can add points at any X,Y location, control the size and the color.  You will need to use some method to map the voltage to a color.  Should work fine for your application.
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 8
(3,101 Views)

I've used the draw a point sub VI.  Its the maping of my signal to grayscale that I need some tips on.  I've tried to do a defined table mapping bu it did not work as expected the defined values were the equivalent RGB values betwen 0 0 0  and 255 255 255 in 25 increments.  I think that for gray scale the R, G and B values should be the same bu I ended up with color pixels I think its due to the interpolation between points. 

Well needless to say I still need help, if anyone knows a simpler way I would appreciate it.

0 Kudos
Message 3 of 8
(3,083 Views)

See attached example on how to do grayscale.

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 4 of 8
(3,077 Views)
FINALLY FIGURE OUT A WAY TO DO WHAT I WAS TRYING TO DO.
 
HERE IT IS I HOPE THIS HELPS OTHERS IN THE FUTURE.
0 Kudos
Message 5 of 8
(3,075 Views)

THANK YOU Matthew Fitzsimons

SEEMS LIKE WE WERE WORKING ON THIS AT THE SAME TIME.  I WILL STUDY YOUR VI AND SEE WHAT YOU HAVE DONE.

 

THANKS AGAIN.

0 Kudos
Message 6 of 8
(3,070 Views)

I would of sent it sooner but internet connection went down.  We will call it a tie.

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 7 of 8
(3,067 Views)

IF YOU HAVE A WAY TO GET RID OF THE FLICKER WHEN UPDATING THE PICTURE PLEASE LET ME KNOW.  THIS IS MINOR, BUT COULD BE ANOYING IN LARGE IMAGES.

 

 

0 Kudos
Message 8 of 8
(3,066 Views)