LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Please help me ! Rescue me.......

Hi friends,
I am new to LabView; I have a problem about the VI block diagram.
 
I am attaching the snapshot of it.
 
Please help me at earliest.  Graphical representation will be more helpful.
 
Regards,
Subhash Madhukar
0 Kudos
Message 1 of 9
(3,637 Views)
you mean that?
 
 
found in the numeric-> conversion pallette.
post you vi for help.

Message Edited by Gabi1 on 09-27-2007 01:08 PM

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 2 of 9
(3,613 Views)
Hi Subhash,

You could also use the IMAQ ExtractSingleColorPlane VI to pull out each color plane, one at a time.  This will require a creating a new memory location for each color plane that you want to extract.

I built a simple VI that does uses IMAQ ExtractSingleColorPlane as a sub VI to view the red and green components of the image.  Take a look and see if this helps.
Regards,
Brandon M.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 9
(3,538 Views)

I don't have IMAQ, so I can't test the VI's you have, but if you do have a 2D array of RGB values, the attached JPEG shows how to split them into seperate 2D arrays of R, G, B values. Note this is the same as the Color to RGB VI listed by Gabi, but it allows you to seperate them while 2D arrays instead of using two for loops.

Michael

Message Edited by miguelc on 10-01-2007 10:29 AM

0 Kudos
Message 4 of 9
(3,451 Views)
Hello Subhash,

In response to your question of how to connect IMAQ Get Buffer.vi output terminal of "Image Out" to the input terminal "Image" of IMAQ ColorImageToArray.vi, you will see that when you try to connect these terminals, you are left with a broken wire.  You can right-click on this wire and select "List Errors" to see why you are left with a broken wire.  In this case, you'll find that you have connected an array of Image Out typedefs to a single Image typedef.

If you connect an array data type to its element data type, you can insert a For Loop and enable auto-indexing to connect the data.



Regards,
Brandon M.
Applications Engineer
National Instruments
0 Kudos
Message 5 of 9
(3,391 Views)
Thank you very much.Its really working now.
0 Kudos
Message 6 of 9
(3,358 Views)
Now I want to convert 2D Array of elements to 1D array of element to do some manipulation.
ie input is 2D and i want to get output as 1D array.
Can anyone tell me how to do this in terms of blockdiagram
Thank you in advance
0 Kudos
Message 7 of 9
(3,357 Views)
Do you want to get a particular row or column of the 2D array out as a 1D array?  Then use the index array function and wire a value to either the row input or column input to get either a particular row or column?
 
Do you want to reshape the array so that all the elements are converted from a 2D to 1D array?  Then there is a Reshape Array function.
 
Since earlier replies talk about images, do you want the Flatten Pixmap on the Graphics & Sound / Graphics Formats palette?
0 Kudos
Message 8 of 9
(3,350 Views)

Great!!! thank you very much for the help

Reshape Array function worked exactly the way i want.

0 Kudos
Message 9 of 9
(3,340 Views)