-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for running Caraya from exe #18
Added support for running Caraya from exe #18
Conversation
…rary Info Constant". Recompiled callers of "Get Library Info.vi".
Note - I tested the change in a local build of the package but did not include the changed .vipb file so that release notes and build process can be managed by JKI. |
Hey, @omarmussa. Thanks for working on this. I'm wondering if you'd be interested in writing up a very short How To that talks about the use case for building caraya tests into a built EXE (run-time assertions? hardware tests? software self tests?) and also the build spec requirements you mentioned. I went ahead and created a wiki page for this information, here: https://github.com/JKISoftware/Caraya/wiki/Running-Caraya-Tests-in-a-Built-LabVIEW-Application-(EXE) Also, it might be nice to announce this new feature/support in the Caraya Community Discussion Forum, for those who might be interested to follow along with the development. |
@jimkring I can help with updating the Wiki page. Thanks for pasting in the release note as the starting point. |
I have created a class that implements some SQL queries, and have created Caraya tests for the public API. Additionally I have created a "Test All" which is a sequence of all of these test VIs. This all works fine from within LabVIEW. Now I am interested in building an exe which simply calls my "Test All" on a button press. I included the Caraya.lvlib and my build seems to work; when I click my "Test All" button the code runs as my tables and data are generated but the Caraya Basic Test Manager Process dialog does not display. Do I need this newer distribution of Caraya to get this to work inside an exe? Is anything else required (like not removing FPs in the Caraya summary VI?) |
Hi @neilpate. Would you mind posting your question into the Caraya Community Forum? https://forums.jki.net/forum/65-caraya-unit-tester/ It will keep our issue/feature tracker clean and facilitate more rich conversations about this topic. Thanks! |
@neilpate I just reviewed my build and notice that I had left 'Enable debugging' checked in the build spec for the exe - will add it to the Wiki until I have time to figure out which parts are getting stripped at build time. It may require more development to fix this issue. |
My guess is that front panel needs to be preserved during the build.
--
Jim Sent from my mobile.
|
Will do @jimkring. |
Updated build process to write Library info to a constant so that library info source files do not need to exist when running from EXE or built package. Note that to run Caraya in a built executable you must explicitly add Caraya.lvlib to the "Always Included" list in the build.