<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error code 14217 with LabVIEW CLI using the RunVIAnalyzer operation in Continuous Integration</title>
    <link>https://ni.lithium.com/t5/Continuous-Integration/Error-code-14217-with-LabVIEW-CLI-using-the-RunVIAnalyzer/m-p/4092425#M331</link>
    <description>&lt;P&gt;NI send me right now a possible reason I will test immediatly, please have a look on the following link :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.ni.com/t5/VI-Analyzer-Enthusiasts/Run-project-based-cfg-with-the-VI-Analyzer-API/m-p/4052082" target="_blank"&gt;https://forums.ni.com/t5/VI-Analyzer-Enthusiasts/Run-project-based-cfg-with-the-VI-Analyzer-API/m-p/4052082&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Oct 2020 13:06:37 GMT</pubDate>
    <dc:creator>dchaudet</dc:creator>
    <dc:date>2020-10-20T13:06:37Z</dc:date>
    <item>
      <title>Error code 14217 with LabVIEW CLI using the RunVIAnalyzer operation</title>
      <link>https://ni.lithium.com/t5/Continuous-Integration/Error-code-14217-with-LabVIEW-CLI-using-the-RunVIAnalyzer/m-p/4092421#M330</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm facing to an issue which is not documented. My target is to run a VIAnalyzer analysis from the command line.&lt;/P&gt;
&lt;P&gt;At the end I will use the corporate CI tool in my company to batch it (probably Jenkins).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Find below the command line :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;c:\Workspace&amp;gt;LabVIEWCLI -LabVIEWPath "C:\Program Files (x86)\National Instruments\LabVIEW 2020\LabVIEW.exe" -OperationName RunVIAnalyzer -ConfigPath "c:\Workspace\MerciNI.viancfg" -ReportPath c:\Workspace\output.txt -ReportSaveType "ASCII"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the output from the tool :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;LabVIEWCLI started logging in file: C:\Users\xxxxxxxxx\AppData\Local\Temp\lvtemporary_310102.log&lt;BR /&gt;Using LabVIEW: "C:\Program Files (x86)\National Instruments\LabVIEW 2020\LabVIEW.exe"&lt;BR /&gt;Connection established with LabVIEW at port number 3363.&lt;/P&gt;
&lt;P&gt;Operation output:&lt;BR /&gt;Error Code : 14217&lt;BR /&gt;Error Message : ExecuteOperation.vi.ProxyCaller &amp;gt;&amp;gt; ExecuteOperation.vi:6900002 &amp;gt;&amp;gt; ExecuteRunOperation.vi:5250001 &amp;gt;&amp;gt; CoreOperation.lvclass:CallRunOperation.vi:4230002 &amp;gt;&amp;gt; RunVIAnalyzer.lvclass:RunOperation.vi:5910001 &amp;gt;&amp;gt; NI_VIAnalyzerTKVIs.lvlib:VIAn Easy Analyze.vi &amp;gt;&amp;gt; NI_VIAnalyzerTKVIs.lvlib:VIAn New Task.vi&lt;/P&gt;
&lt;P&gt;An error occurred while running the RunVIAnalyzer operation.&lt;/P&gt;
&lt;P&gt;RunVIAnalyzer operation failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The operating system I work with is Windows10 x64. To avoid the kwown issue where the LabVIEW server is not found on the port number 3363, I run previously LabVIEW without project opened.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My concern is regarding the "error message" which is not understandable for me because I'm not confortable with LabVIEW code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Comments advices proposals are welcomed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 12:49:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Continuous-Integration/Error-code-14217-with-LabVIEW-CLI-using-the-RunVIAnalyzer/m-p/4092421#M330</guid>
      <dc:creator>dchaudet</dc:creator>
      <dc:date>2020-10-20T12:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 14217 with LabVIEW CLI using the RunVIAnalyzer operation</title>
      <link>https://ni.lithium.com/t5/Continuous-Integration/Error-code-14217-with-LabVIEW-CLI-using-the-RunVIAnalyzer/m-p/4092425#M331</link>
      <description>&lt;P&gt;NI send me right now a possible reason I will test immediatly, please have a look on the following link :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.ni.com/t5/VI-Analyzer-Enthusiasts/Run-project-based-cfg-with-the-VI-Analyzer-API/m-p/4052082" target="_blank"&gt;https://forums.ni.com/t5/VI-Analyzer-Enthusiasts/Run-project-based-cfg-with-the-VI-Analyzer-API/m-p/4052082&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 13:06:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Continuous-Integration/Error-code-14217-with-LabVIEW-CLI-using-the-RunVIAnalyzer/m-p/4092425#M331</guid>
      <dc:creator>dchaudet</dc:creator>
      <dc:date>2020-10-20T13:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 14217 with LabVIEW CLI using the RunVIAnalyzer operation</title>
      <link>https://ni.lithium.com/t5/Continuous-Integration/Error-code-14217-with-LabVIEW-CLI-using-the-RunVIAnalyzer/m-p/4092459#M332</link>
      <description>&lt;P&gt;NI solution works!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pay attention to build a viancfg file (Vi Analyzer configuration file) using the Vi Analyzer interface as follow :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- Tools-&amp;gt;Vi Analyzer-&amp;gt;Analyze VIs...&lt;/P&gt;
&lt;P&gt;2-Start a new Vi Analyzer task-&amp;gt;Next&lt;/P&gt;
&lt;P&gt;3-Add top-level item-&amp;gt;Select root folder or Vis-&amp;gt;Open&lt;/P&gt;
&lt;P&gt;4-Select tests to perform-&amp;gt;Save-&amp;gt;Close&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 14:06:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Continuous-Integration/Error-code-14217-with-LabVIEW-CLI-using-the-RunVIAnalyzer/m-p/4092459#M332</guid>
      <dc:creator>dchaudet</dc:creator>
      <dc:date>2020-10-20T14:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 14217 with LabVIEW CLI using the RunVIAnalyzer operation</title>
      <link>https://ni.lithium.com/t5/Continuous-Integration/Error-code-14217-with-LabVIEW-CLI-using-the-RunVIAnalyzer/m-p/4092503#M333</link>
      <description>&lt;P&gt;You can open your *.viancfg file with a text editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes" ?&amp;gt;
&amp;lt;Config&amp;gt;
&amp;lt;FileFormatVersion&amp;gt;1&amp;lt;/FileFormatVersion&amp;gt;
&amp;lt;AnalyzeProject&amp;gt;FALSE&amp;lt;/AnalyzeProject&amp;gt;
&amp;lt;ProjectPath&amp;gt;""&amp;lt;/ProjectPath&amp;gt;
&amp;lt;TargetIndex&amp;gt;0&amp;lt;/TargetIndex&amp;gt;
&amp;lt;ItemsToAnalyze&amp;gt;
	&amp;lt;Item&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the tag &amp;lt;AnalyzeProject&amp;gt; contains a TRUE and there is no empty string under &amp;lt;ProjectPath&amp;gt; then you have a VI-Anlyzer Config which is project based and not directory based.&lt;/P&gt;
&lt;P&gt;Which was in our case quiet useful as we where analyze FPGA Code. We the target Information the analyzer was able to correctly analyze those&amp;nbsp;VIs. LabVIEW opens those FPGA directly from the directory in the Main Application Instance which means under Windows level. The Analyze some times fails and report a broken VIs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Long story short, as long as you not need any target specific parts (e.g. normal Windows application) you can life probably very fine with the directory based viancfg.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issues is not directly coming from the CLI Operation itself. It is more a lack of the VI-Analyzer API VIs which do not support project based viancfg configurations. If you are interested, the CLI Opration is stored under C:\Program Files (x86)\National Instruments\Shared\LabVIEW CLI\Operations\RunVIAnalyzer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope those additional information help you for your next steps. If you need project based viacfg don’t forget to kudo the post on idea exchange &lt;A href="https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Execute-project-based-cfg-with-VI-Analyzer-API/idi-p/4052402" target="_blank" rel="noopener"&gt;Execute project-based cfg with VI Analyzer API&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Long story short, as long as you not need any target specific parts (e.g. normal Windows application) you can life probably very fine with the directory based viancfg.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issues is not directly coming from the CLI Operation itself. It is more a lack of the VI-Analyzer API VIs which do not support project based viancfg configurations. If you are interested, the CLI Operation, you can look into the class VIs located under &amp;lt;C:\Program Files (x86)\National Instruments\Shared\LabVIEW CLI\Operations\RunVIAnalyzer&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope those additional information help for you for your next steps. If you need project based VI-Analyzer config, don't forget to Kudo&amp;nbsp;&lt;A href="https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Execute-project-based-cfg-with-VI-Analyzer-API/idi-p/4052402" target="_self"&gt;Execute project-based cfg with VI Analyzer API&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 07:04:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Continuous-Integration/Error-code-14217-with-LabVIEW-CLI-using-the-RunVIAnalyzer/m-p/4092503#M333</guid>
      <dc:creator>SAndreas</dc:creator>
      <dc:date>2020-10-21T07:04:11Z</dc:date>
    </item>
  </channel>
</rss>

