Skip to content
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

Merged
merged 1 commit into from
Oct 17, 2018

Conversation

omarmussa
Copy link
Contributor

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.

…rary Info Constant". Recompiled callers of "Get Library Info.vi".
@omarmussa
Copy link
Contributor Author

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.

@jimkring
Copy link
Contributor

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 jimkring self-requested a review February 25, 2018 19:22
@jimkring jimkring modified the milestone: 0.3 Feb 25, 2018
@omarmussa
Copy link
Contributor Author

@jimkring I can help with updating the Wiki page. Thanks for pasting in the release note as the starting point.

@neilpate
Copy link

neilpate commented Mar 7, 2018

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?)

@jimkring
Copy link
Contributor

jimkring commented Mar 7, 2018

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!

@omarmussa
Copy link
Contributor Author

@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.

@jimkring
Copy link
Contributor

jimkring commented Mar 8, 2018 via email

@neilpate
Copy link

neilpate commented Mar 8, 2018

Will do @jimkring.

@francois-normandin francois-normandin changed the base branch from master to release/0.6.0 October 16, 2018 21:58
@francois-normandin francois-normandin merged commit 2ea0872 into vipm-io:release/0.6.0 Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants