<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://labviewwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=CoreOperation</id>
	<title>CoreOperation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://labviewwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=CoreOperation"/>
	<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=CoreOperation&amp;action=history"/>
	<updated>2026-05-08T17:04:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=CoreOperation&amp;diff=35374&amp;oldid=prev</id>
		<title>Logmanoriginal: Created page with &quot;&#039;&#039;&#039;CoreOperation&#039;&#039;&#039; is the base LabVIEW Class of all operations of NI LabVIEW Command Line Interface.  ==Methods==  ===GetHelp=== The &#039;&#039;&#039;GetHelp&#039;&#039;&#039; method is called when the &#039;&#039;-Help&#039;&#039; option is specified for an operation:    LabVIEWCLI -OperationName &lt;name&gt; -Help  Each operation must override the GetHelp method to provide custom help text. The method has a single return value for the help text.  {| class=&quot;wikitable&quot; style=&quot;text-align: center;&quot; !DataType !Descript...&quot;</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=CoreOperation&amp;diff=35374&amp;oldid=prev"/>
		<updated>2025-01-04T06:54:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;CoreOperation&amp;#039;&amp;#039;&amp;#039; is the base &lt;a href=&quot;/wiki/LabVIEW_Class&quot; title=&quot;LabVIEW Class&quot;&gt;LabVIEW Class&lt;/a&gt; of all operations of &lt;a href=&quot;/wiki/NI_LabVIEW_Command_Line_Interface&quot; title=&quot;NI LabVIEW Command Line Interface&quot;&gt;NI LabVIEW Command Line Interface&lt;/a&gt;.  ==Methods==  ===GetHelp=== The &amp;#039;&amp;#039;&amp;#039;GetHelp&amp;#039;&amp;#039;&amp;#039; method is called when the &amp;#039;&amp;#039;-Help&amp;#039;&amp;#039; option is specified for an operation:    LabVIEWCLI -OperationName &amp;lt;name&amp;gt; -Help  Each operation must override the GetHelp method to provide custom help text. The method has a single return value for the help text.  {| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot; !DataType !Descript...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;CoreOperation&amp;#039;&amp;#039;&amp;#039; is the base [[LabVIEW Class]] of all operations of [[NI LabVIEW Command Line Interface]].&lt;br /&gt;
&lt;br /&gt;
==Methods==&lt;br /&gt;
&lt;br /&gt;
===GetHelp===&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;GetHelp&amp;#039;&amp;#039;&amp;#039; method is called when the &amp;#039;&amp;#039;-Help&amp;#039;&amp;#039; option is specified for an operation:&lt;br /&gt;
&lt;br /&gt;
  LabVIEWCLI -OperationName &amp;lt;name&amp;gt; -Help&lt;br /&gt;
&lt;br /&gt;
Each operation must override the GetHelp method to provide custom help text. The method has a single return value for the help text.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
!DataType&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|{{Terminal|type=indicator|string}}&lt;br /&gt;
|style=&amp;quot;text-align: left;&amp;quot;|Help text. This is displayed on the command line when using the &amp;#039;&amp;#039;-Help&amp;#039;&amp;#039; flag.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===RunOperation===&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;RunOperation&amp;#039;&amp;#039;&amp;#039; method executes when an operation is called:&lt;br /&gt;
&lt;br /&gt;
  LabVIEWCLI -OperationName &amp;lt;name&amp;gt; [&amp;lt;arg&amp;gt;...]&lt;br /&gt;
&lt;br /&gt;
Each operation must override the RunOperation method to provide custom behavior. The method receives the list of arguments and returns the return code and output text to display on the command line. A return code of zero indicates success.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
!DataType&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|{{Terminal|type=control|1d array of string}}&lt;br /&gt;
|style=&amp;quot;text-align: left;&amp;quot;|List of arguments and values in the order they are specified on the command line. For example, &amp;quot;-arg1 99&amp;quot; is provided as [&amp;quot;-arg2&amp;quot;, &amp;quot;99&amp;quot;].&lt;br /&gt;
|-&lt;br /&gt;
|{{Terminal|type=indicator|i32}}&lt;br /&gt;
|style=&amp;quot;text-align: left;&amp;quot;|Return code. 0 indicates success.&lt;br /&gt;
|-&lt;br /&gt;
|{{Terminal|type=indicator|string}}&lt;br /&gt;
|style=&amp;quot;text-align: left;&amp;quot;|Output text to display on the command line.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Read Logger===&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Read Logger&amp;#039;&amp;#039;&amp;#039; method provides access to the [[Logger]] instance of the CoreOperation class. Operations can use this method to access the logger to put additional output on the command line.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[NI LabVIEW Command Line Interface]]&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [https://www.ni.com/docs/en-US/bundle/labview/page/creating-custom-command-line-operations.html Creating Custom Command Line Operations] (LabVIEW User Manual)&lt;br /&gt;
&lt;br /&gt;
[[Category:NI LabVIEW Command Line Interface]]&lt;/div&gt;</summary>
		<author><name>Logmanoriginal</name></author>
	</entry>
</feed>