LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read a bmp file from computer

Solved!
Go to solution

hi ,

I have tried to read a picture of .bmp format from my computer to the front panel. But it is showing an error.

I have attached the error message and the way I have done to copy the picture.

 

Thanks in AdvanceSmiley Wink

@nk
Download All
0 Kudos
Message 1 of 10
(3,660 Views)

Can you rename the bmp file with a simple name and try to read again?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 10
(3,644 Views)

Can you rename the bmp file with a simple name and try to read again?

-----
 
No the same error is coming.
@nk
0 Kudos
Message 3 of 10
(3,636 Views)

One more try, please relocate your bmp file to may be c drive and test. Also please attach your code

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 10
(3,631 Views)

One more try, please relocate your bmp file to may be c drive and test. Also please attach your code


 

 

Still the same error is coming

@nk
0 Kudos
Message 5 of 10
(3,626 Views)

The VI works just fine. Can you try with a different image?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 6 of 10
(3,622 Views)

In my computer still the error is coming 

@nk
0 Kudos
Message 7 of 10
(3,616 Views)
Solution
Accepted by topic author @nk

Can you Navigate down to the Read BMP File data.vi and check where the error occurs? Are you using this vi along with any othe piece of code which may be giving error to the input of this vi?

Save the bmp file once again from paint as bitmap file and check.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 8 of 10
(3,606 Views)

Save the bmp file once again from paint as bitmap file and check.


 

Now it is working , so what could be the problem? i just saved it in paint that's all. now can i do it using labview because in my code the user selects the image which is a snapshot from a camera, so i dont want user to open again and save it in paint . what could be the reason behind the error.

@nk
0 Kudos
Message 9 of 10
(3,598 Views)

The file format might be different and you could have just renamed to .bmp. Check the file format of the snap shot and use the same file format function to save the image.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 10 of 10
(3,578 Views)