LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run labview only when open from command prompt

Solved!
Go to solution

Hello everyone,

    I am working on a LabVIEW project in which I have to create a exe

(i) Which should run directly with certain arguments when call from command prompt. 

(ii) But when open manually I don't want that tool should run directly without users permission. 

 

If anybody can suggest any idea to implement is most welcome.

Thanks in advance

 

Regards

Kaustav Sen

0 Kudos
Message 1 of 3
(1,526 Views)

Hi Kaustav,

 


@Kaustav19 wrote:

I am working on a LabVIEW project in which I have to create a exe

(i) Which should run directly with certain arguments when call from command prompt. 

(ii) But when open manually I don't want that tool should run directly without users permission. 


  1. You can enable command line arguments for your exe and read those arguments on startup procedure…
  2. What is "open manually" in comparison to "call from command prompt"? You still can examine the command line arguments: when there are no arguments then your executable can react on that as needed…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,503 Views)
Solution
Accepted by topic author Kaustav19

@Kaustav19 wrote:

Hello everyone,

    I am working on a LabVIEW project in which I have to create a exe

(i) Which should run directly with certain arguments when call from command prompt. 

(ii) But when open manually I don't want that tool should run directly without users permission. 

 

If anybody can suggest any idea to implement is most welcome.

Thanks in advance

 

Regards

Kaustav Sen


1) Command line arguments can be implemented

2) Huh? Do you mean if the user launches it by clicking on its icon? That would be the same as launching it form the command line with no arguments, right? So make a case that just exits if no command line argument was present on launch.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 3
(1,477 Views)