07-21-2014 09:28 AM
So i made a dumb mistake and changed the "Write to spreadsheet file" subvi in labview and hit ctrl S before i saved a copy and im really regreting it but all i did was add an error control input and a control indicator output and change the Pattern to fit that. For some reason that screwed up the VI and i dont know why. so i deleted the error handlers but it sill wont work in my VI. I deleted the instance of the subvi in my VI and replaced it so the most updated write to spreadsheet file VI was placed but it still wont work. how can i get the subvi to work again?
Thank you, Da-Coder
Solved! Go to Solution.
07-21-2014 09:31 AM
Here is the image of all i changed besides the pattern (which i don't think matters as long as all the wired terminals get wired correctly right?)
07-21-2014 09:36 AM - edited 07-21-2014 09:37 AM
Write to Spreadsheet VI is a polymorphic VI, so if you have screwed up one (lets say DBL data type) you open the string data type VI and click Save as and create a seperate VI somewhere in your local drive. Then open that VI seperately and replace the Sring controls to DBL data type depending on 1D or 2D inputs. Then replace the screwedup VI with the newly saved VI, you are done. But make sure you are able to relink the Polymorphic VI.
For the most VI, you will not be allowed to save the VI but that will be based on the location of the VI I believe.
07-21-2014 09:45 AM
Not sure im following you correctly P@Anand. Somehow i screwed up the vi, yes it is polymorphic but if it was already Saved through Ctrl +s how can i fix it or where can i find a copy of it to replace my broken one?
Thank you, Da-Coder
07-21-2014 09:49 AM
If you have screwed up DBL go to the polymorphic selector and then select "String" and then right click the VI and open the front panel, you will see a different VI. Use that to re-create the screwed-up VI.
07-21-2014 10:18 AM
Yep. You messed up the DBL version of the polymorphic. Just look at your screen shot again. It clearly shows that your file is "Write to Spreadsheet File (DBL).vi". That is the VI you need to repair.
07-21-2014 10:52 AM
I recommend that you get the polymorphic VI and all instances from a known good machine and copy it over. I don't recomment trying to repair it yourself. Alternatively, you could delete it and then repair the LabVIEW installation.
07-22-2014 07:47 AM
altenbach could you please upload a copy of your write to spreadsheet vi, i tried repairing mine and relinking but your right and it is not working. Also where is the origonal location of the VI so i can put the new one in the proper spot?
Thank you, Da-Coder
07-22-2014 08:06 AM
What version of LabVIEW are you using?
07-22-2014 09:38 AM
2013