cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

LabVIEW CLI can't execute Get Build Specification Version (path).vi

Resolvido!
Ir para a solução

We need to use the LabVIEW CLI scripting to access version information from build specification in *.lvproj.

There are Get and Set version information VIs available for build specifications and I am trying to run these VIs (from CLI) to access the build version and set the build version.

I am using LabVIEW CLI 2018 to perform action as RUN VI.

There is no specific information is given on how the order of connector pane terminals should be for constructing a command.So, I reffered the context help for the order information and constructed the command.

image.png 

"LabVIEWCLI -OperationName RunVI -VIPath "C:\Program Files (x86)\National Instruments\LabVIEW 2018\vi.lib\AppBuilder\AB_API_Simple\Get Build Specification Version (path).vi" "My Computer" <Build Specification Name> <Project Path> -PortNumber  <PORT>"

This results in an error

IssueRunningGetBuild.png

The other way I tried

"LabVIEWCLI -OperationName RunVI -VIPath "C:\Program Files (x86)\National Instruments\LabVIEW 2018\vi.lib\AppBuilder\AB_API_Simple\Get Build Specification Version (path).vi" <Project Path> <Build Specification Name> "My Computer" -PortNumber  <PORT>"

But this also results in same error.

Sample LabVIEW project and CLI command is added below.

0 Kudos
Mensagem 1 de 3
3.614Exibições
Solução
Aceita pelo autor do tópico MangeshD

From the LabVIEWCLI documentation, it appears you need to package the VI you wish to run in a wrapper that has a specific connector pane:

 

Capture.PNG

 

Mensagem 2 de 3
3.591Exibições
Thanks..! It worked.
0 Kudos
Mensagem 3 de 3
3.561Exibições