LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save front panel to bmp - not working anymore in LV7

Hi Folks:

I had this VI working perfectly in LV6.1. When Labview picture format fxs changed in lv7, I modified the VI to what I believe is correct but cannot get a front panel to save to bmp, png, jpg, or htm format as I had been easily doing before. I am attaching an llb and request someone test on their system. test.vi is the top level VI to run.

Thanks,

Don
0 Kudos
Message 1 of 3
(2,658 Views)
I got this to work after a couple of tries. For some reason it did not work at first then after I opened all your subs and closed them all it worked fine and continued to work fine. HMM very interesting. attached is a version I did very quickly and worked the first time but really you are doing nothing different.
See if this works on your machine



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 3
(2,658 Views)
I found two issues with my VI. I don't know why it ended up working for you as is, but I got it to work after the following mods.

I placed a new invoke node (for 'Get Image') onto my diagram. It now seems to work. The old invoke node when I upgraded from 6.1 to 7 had a title of something like 'Old Get Image'. Originally, instead of replacing the invoke node, I just changed the method of the old invoke node to 'Get Image' while keeping the same invoke node (and also adjusting the code appropriately for the new graphic/picture fxs). Now, I deleted the old invoke node and replaced it with a new invoke node. I am thinking there was an issue because of this.

Also, even though i was sure that I watched the code with execution hiliting on so as to make s
ure the dataflow was going into the 'write bmp (or png, jpg, etc) function,' I now see that it is not. The reason is is because I did not choose my cases to have 'case insensitive match.' If you look at my file choice handler, the file type is coming out as lower case while the cases are labeled in upper case strings. By choosing 'case insensitive match,' the dataflow is correct and now the VI works.
0 Kudos
Message 3 of 3
(2,658 Views)