Continuous Integration

cancel
Showing results for 
Search instead for 
Did you mean: 

Command Line Tools for Continuous Integration

Did you ever get CI/CD working with LabVIEW and GIT?

 

We are trying to use LabVIEW with github.

0 Kudos
Message 21 of 30
(2,584 Views)

Look at how MGI is doing it on GitLab. We have been using the Solution Explorer to help our build process, it has more options from a CLI that the built in options.  The CLI is not documented that much but once you get the syntax it is easy to use.  I have a doc on it, but my VM server is currently down (shakes fist at IT) and I can't get access to it. 

Message 22 of 30
(2,566 Views)

Shameless plug: http://rat.hampel-soft.com




DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (The Future of Team-Based LabVIEW Development)


Message 23 of 30
(2,550 Views)

There are several based on G CLI - check out https://github.com/JamesMc86/G-CLI/wiki/Tools-That-Work-with-G-CLI

 

The toolchain is maturing quickly now and I think it should only get easier going forward

James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com
Message 24 of 30
(2,531 Views)

Hello
Does one of you ever try to use LabVIEW CLI for compile bitfile? I manage to make it work for build spec under "My Computer" or RT target but with FPGA I get the following message :

Error Code : 1370
Error Message : mxLvErrorHandler.vi:2660001
An error occurred while running the ExecuteBuildSpec operation.

Regards

Kevin

0 Kudos
Message 25 of 30
(2,474 Views)

Yeah the normal build call doesn't work as you say. There is a separate function to call which means the tools need to adapt

 

I tried it once and from memory it only started the compile, I don't think it reported a final result (which is problematic for CI) - although I don't remember for sure

James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com
0 Kudos
Message 26 of 30
(2,466 Views)

Thanks for your answer. Do you have the name of the separate function?

0 Kudos
Message 27 of 30
(2,455 Views)

Yeah - you have to go find it in vi.lib though - its documented at https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000015AFoSAM&l=en-GB

James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com
0 Kudos
Message 28 of 30
(2,438 Views)

Our Release Automation Tools use a bunch of VIs from the vi.lib. For FPGA compilation, these are the ones:

 

1.) \vi.lib\rvi\CDR\niFpgaBuild_GenerateCode.vi

2.) \vi.lib\rvi\CDR\niFpgaBuild_Compile.vi

 

As we don't use the LabVIEW CLI but the G-CLI, our tools just wrap those VIs.

 

We keep running into lots of problems with popups, for example when the code is not executable. Even though there's an input called "display status dialogs", that one only shows or hides the progress window, not any error messages. So if anything out of the ordinary happens, at the moment, we wait for the whole process to time out and for LabVIEW to be killed. 

 

Also, the compilation status window will always open, but as it's neither modal nor blocking, that doesn't bother me much.




DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (The Future of Team-Based LabVIEW Development)


0 Kudos
Message 29 of 30
(2,435 Views)

Thanks a lot for your answers, I will have a look with that

0 Kudos
Message 30 of 30
(2,431 Views)