LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use BCGlookup.vi to adjust and save an image

Hey everyone,

 

I currently have a program which takes an array input from a camera and outputs and intensity graph and intensity histogram. However, I would also like to incorporate the ability to take the 2-D array from the camera and display the data using the BCGlookup.vi example, then save the modified image as a TIFF. I have attached my current vi, and thanks for any feedback! =]

0 Kudos
Message 1 of 5
(2,670 Views)

I have updated the program, so now the image displays using the U16 array, but I am still unsure as to how to use this array in the BCGlookup.vi example.

0 Kudos
Message 2 of 5
(2,664 Views)

Hey BoilerUp81,

 

What do you mean by use the array in the BCG Lookup example? It looks to me like you've modified the example correctly, are you running into some kind of error, or is there something that you can accomplish in the example that you aren't able to do in your code? Let me know what you are trying to do, and I'll be happy to help. Have a great evening!

John B.
Embedded Networks R&D
National Instruments
Certified LabVIEW Developer
0 Kudos
Message 3 of 5
(2,646 Views)

Hey John,

 

Thanks for the help, and I love the logo Smiley Very Happy . The program is designed to take the array of values, and output the image and modified image. Then I need to save the orginial image. As of right now, I believe the program should work, but I am recieveing the following error:

 

Error -1074395989 occurred at IMAQ ReadFile  Unable to read data.

 

 

I am not sure how to fix this error, and I have attached my code (withe example data). Thank you for the help! =]

0 Kudos
Message 4 of 5
(2,633 Views)

The problem that I can see in that latest version you posted is that you are feeding your IMAQ Read File an empty file constant. This is what's causing your error. If you are trying to save an image, you need to use an IMAQ Write File 2 VI. What file were you trying to read, or were you just confused and that was supposed to be a file write?

 

I like your user name Smiley Happy Go Boilers!

John B.
Embedded Networks R&D
National Instruments
Certified LabVIEW Developer
0 Kudos
Message 5 of 5
(2,611 Views)