Hidden Gems in vi.lib

cancel
Showing results for 
Search instead for 
Did you mean: 

ABAPI Examples 2013.zip

These examples (saved in LabVIEW 2013) illustrate the use of the App Builder API in vi.lib\AppBuilder\AB_API.

If you are using LabVIEW 2014 or later, the "My Computer" examples ship with LabVIEW, and are available here: vi.lib\AppBuilder\AB_API\examples.

This API, and these examples, are not officially supported by National Instruments.

Message 1 of 35
(16,657 Views)

Sooooo... at the risk of asking a totally noob scripting question...

The examples illustrate how to create builds under the desktop target.  I need to create executables and source distributions for RT targets.  Still possible using the appbuilder api?

0 Kudos
Message 2 of 35
(13,365 Views)

Should be, yeah. Check out the VIs in the 'RTEXE' and 'DSDIST' folders to see what's available for building RT EXEs and deployable source distributions.

0 Kudos
Message 3 of 35
(13,364 Views)

Darren wrote:

Check out the VIs in the 'RTEXE' and 'DSDIST' folders to see what's available for building RT EXEs and deployable source distributions.


                   

Thanks Darren.  My wife claims I have an acute case of cupboard blindness... and I can't disagree with her. 

Unfortunately the AB_RTEXE class inherits from the AB_BUILD class rather than the NI_AB_API_BUILD class like the classes used in the examples you posted.  I know this is a big ask, but is there any chance of unlocking the NI_AB_API_EXE so I can see how the all the classes work together?

0 Kudos
Message 4 of 35
(13,364 Views)

Ah, my mistake...I hastily replied last week while attending the Euro CLA Summit without actually double-checking the API as it currently ships in LabVIEW 2013. We have not yet exposed an RTEXE-specific API. In LabVIEW 2014 the API will support some basic functionality on RTEXEs, but nothing beyond base class operations like create, build, set version info, etc.

As far as deployable source distributions, those are currently supported...I have updated the ZIP file to contain an example on how to create and build a deployable source distribution.

There is very little chance that this API will become unlocked in the foreseeable future.

0 Kudos
Message 5 of 35
(13,364 Views)

Hey Darren,

I noticed you are able to turn debugging off for .exes, but I am not able to do the same for source distributions. Am I just missing something silly, or is this not a feature we've exposed?

Thanks,

Daniel

0 Kudos
Message 6 of 35
(13,364 Views)

I assume you're referring to the Set Enable Debugging.vi in the API? That VI is used to change this EXE-specific setting:

1.png

Are you wanting to change the VI properties settings on files in your source dist to enable/disable debugging? Unfortunately, the App Builder API does not currently support modifying source file settings.

0 Kudos
Message 7 of 35
(13,364 Views)

Hey Darren,

I was looking to change the file settings--it would be nice to be able to quickly and easily rebuild a project and switch between modes. For one of my projects the difference on RT is something close to 100% size increase (24 vs 14 mb last time I checked). Are there any plans to add this feature?

Thanks,

Daniel

0 Kudos
Message 8 of 35
(13,364 Views)

There are currently no plans to add the manipulation of source file settings to the App Builder API.

0 Kudos
Message 9 of 35
(13,364 Views)

Hi Daniel/Darren,

It's a shame there isn't any automatic manipulation on the horizon, but I can guess the reasons why.

We have a similar requirement for different build 'flavours' (for packed project libraries in this case) as we can squeeze a little extra performance from disabling debug and auto-error handling.  At the moment this is manually scripted and executed as a pre-build action.  We then have different build specs for debug / no debug - there is probably scope to expand this further, but at the moment it fills the need.


Regards,

Peter D

0 Kudos
Message 10 of 35
(13,364 Views)