LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie question

Hi chrni,

 


@chrni47 wrote:

I have a single VI (.vi), I want to convert that to a run time version?

Can I do it?


Yes, you can.

Create a project for your "single VI".

Then create a BuildSpec inside this project for your "single VI".

Then build your executable…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 14
(664 Views)

@GerdW wrote:

Hi chrni,

 


@chrni47 wrote:

I have a single VI (.vi), I want to convert that to a run time version?

Can I do it?


Yes, you can.

Create a project for your "single VI".

Then create a BuildSpec inside this project for your "single VI".

Then build your executable…


Just to be clear you may have to add some additional code to your VI for it to behave correctly when built as an exe. For example, in the development environment you can load the VI, set all of the values of the controls to the desired values and then start execution. Before you started executing everything was initialized. In an exe, execution of the application begins immediately. Meaning you will need some code to delay the start of the "real" execution so that control values can be initialized properly or you will need a way to load the initial values from an external source.

 

Yes, you can drop a VI in as the top level VI of an application but that doesn't mean the user experience will be good.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 12 of 14
(649 Views)

@chrni47 wrote:

I have LabVIEW 2020,I have a green dot for application builder.

I have a single VI (.vi), I want to convert that to a run time version?

Can I do it?


Introduction to the LabVIEW Application Builder

 

Building and Distributing Applications

========================
=== Engineer Ambiguously ===
========================
Message 13 of 14
(616 Views)

thank you everyone I now know how to create an executable and it's working fine

0 Kudos
Message 14 of 14
(580 Views)