ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview command-line interface

calling .vi file through command prompt is working using the command

C:\Program Files\National Instruments\LabVIEW 7.1\LabVIEW.exe "C:\test.vi" –– 4 5

and the .vi file which is configured for addition operation is taking inputs and printing the output in front panel as 9.

Now how can i get this output(9) to be printed in command prompt

0 Kudos
Message 11 of 14
(1,613 Views)

You can't, or at least, not easily. LabVIEW has no functions for writing to StdOut or StdErr so I think you have to use DLL calls into Windows or .NET to find the process/command-line instance and then call the appropriate functions to output to the console.

 

There are some posts about it here:

http://forums.ni.com/t5/LabVIEW/how-to-make-a-VI-write-to-standard-output/td-p/347392

https://lavag.org/topic/13486-printing-to-the-standard-output/


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 12 of 14
(1,610 Views)

hi

how a .lib file can be created in labview15.0 version

0 Kudos
Message 13 of 14
(1,552 Views)

@PrathyushaAjjugal wrote:

hi

how a .lib file can be created in labview15.0 version


Do you mean a .LLB file? LLBs are not really recommended any more (use .lvlib instead), but you can still create LLBs by going to Tools -> LLB Manager...


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 14 of 14
(1,539 Views)