Continuous Integration

Re: 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
(200 Views)

Re: Command Line Tools for Continuous Integration

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
(181 Views)

Re: Command Line Tools for Continuous Integration

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


Joerg Hampel | CLA, LabVIEW Champion, DQMH Trusted Advisor
hampel-soft.com | ALArchitects.org | GDevCon.com | DSH-Workshops.com | bit.ly/WUELUG
Message 23 of 30
(165 Views)

Re: Command Line Tools for Continuous Integration

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
(146 Views)

Re: Command Line Tools for Continuous Integration

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
(89 Views)

Re: Command Line Tools for Continuous Integration

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
(81 Views)

Re: Command Line Tools for Continuous Integration

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

0 Kudos
Message 27 of 30
(70 Views)

Re: Command Line Tools for Continuous Integration

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
(53 Views)

Re: Command Line Tools for Continuous Integration

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.


Joerg Hampel | CLA, LabVIEW Champion, DQMH Trusted Advisor
hampel-soft.com | ALArchitects.org | GDevCon.com | DSH-Workshops.com | bit.ly/WUELUG
0 Kudos
Message 29 of 30
(50 Views)
Highlighted

Re: Command Line Tools for Continuous Integration

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

0 Kudos
Message 30 of 30
(46 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.