Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Vision Builder built exe doesn't do the logging.

Solved!
Go to solution

Hello!
I made an application with NI Vision Builder for AI, and the executable version doesn't save the log file. While testing it in NI vision, it saves, when i migrate it to labview it saves, but when i build the executable file, that doesn't do the logging. What could be wrong?

0 Kudos
Message 1 of 8
(3,978 Views)

Here is a thing..

The path in LabVIEW application and the path in EXE handles differently

You can follow this link to specify the path in EXE

 

http://digital.ni.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363

Message 2 of 8
(3,972 Views)

I'm setting up the logging destination in Vision Builder and I can't change/modify it in the LabVIEW migrated version (I should say I don't know how to.).

0 Kudos
Message 3 of 8
(3,941 Views)
Share your LabVIEW code.!
Message 4 of 8
(3,938 Views)

Few questions to debug
-Where you are saving the log file in NI Vision Builder?
-How you are saving?
-What path you are giving for file? Is it relative or hard coded?

 

Adding this :check if it is similar to this problem:

http://forums.ni.com/t5/LabVIEW/Application-built-from-Vision-Builder-compiles-but-doesn-t-work/td-p...

Thanks
uday
Message 5 of 8
(3,933 Views)

I'm saving it with the data logging tool. You can see the path and the settings at the attached pictures.

Download All
0 Kudos
Message 6 of 8
(3,929 Views)
-Please post at least screenshot of labview code where the file saving part existing.
-As described earlier the file path in code and exe need to be handled differently.
-Check this link http://digital.ni.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363
Thanks
uday
Message 7 of 8
(3,917 Views)
Solution
Accepted by topic author Sprake

Thanks for your replies, the solution was easier than I tought. There wasn't any problem with the path or anything like that. The problem was that, I checked the "Log as background task" checkbox, and (I think) there isn't any program what could execute this step. So I unchecked that, and now it creates the log file as I wanted to.
Again, thanks for your quick response!

0 Kudos
Message 8 of 8
(3,909 Views)