LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Store Images in Excel from Webcam, using IMAQ and Report Generation Toolkit

Solved!
Go to solution

Hello,

I would like to store images grabbed from Webcam using IMAQ. I have attached my program here.

The problem with my code is that, when my webcam_trials.vi is on , and I click on "Save Photo" button, I can see the *.xlsx file created and the photos captured by my webcam are getting stacked the way I wanted it.

But once I close the vi and check my excel file, in this case its "default.xlsx", I see that all the webcam captures are replaced with last capture only.

I am unable to see my previous captures

 

Kindly assist.

0 Kudos
Message 1 of 7
(411 Views)

Hello

Can anyone assist on this issue?

 

I am kind of stuck at this point

 

0 Kudos
Message 2 of 7
(361 Views)

Can you save you VI for LabVIEW version 2015?

0 Kudos
Message 3 of 7
(349 Views)

vi saved in 2015

 

I am still stuck at this point. 

0 Kudos
Message 4 of 7
(322 Views)
Solution
Accepted by topic author VihangPatil

The problem seems to be that the images are actually embedded at Save Report to File.vi and not at Append Image to Report.vi as you are probably expecting. Since you overwrite your photo.jpg at every snapshot it will embed the last taken image N times.

 

The solution would be to save your (temporary) JPG images with unique file names and pass that to the report generator.

0 Kudos
Message 5 of 7
(316 Views)

Thanks for your suggestion. I will try this out

 

 But I am wondering , is this not a bug?

NI should look into this

 

 

0 Kudos
Message 6 of 7
(286 Views)

Excel showing the different images is indeed confusing but under the hood the Report Generator makes use of ActiveX functions provided by Microsoft. I don't think NI can really be blamed for this behaviour.

0 Kudos
Message 7 of 7
(282 Views)