-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add action yml * 切换到 lvcicd@lv2014_support * modify yml * Update Build_VIPM_Library.yml * Update Build_VIPM_Library.yml * Update Build_VIPM_Library.yml * Update Build_VIPM_Library.yml * Update Build_VIPM_Library.yml * Update Build_VIPM_Library.yml * Create print latest tag.yml * Update print latest tag.yml * add check broken VIs * change action name * $Tag=$(git tag --list | sort -V | Select -Last 1); * Update print latest tag.yml * Update print latest tag.yml * Update Check_Broken_VIs.yml * Update print latest tag.yml * Update print latest tag.yml * Update print latest tag.yml * Update print latest tag.yml * Update print latest tag.yml * Update README.md * Update README.md * update to lvcicd@main * update example * remove print latest tag.yml * update example * Update README.md * Update README.md * update readme * remove vip/
- Loading branch information
Showing
15 changed files
with
179 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Build_VIPM_Library | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
pull_request: | ||
branches: | ||
- main | ||
types: [closed] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
Build_VIPM_Library: | ||
# The type of runner that the job will run on | ||
runs-on: [self-hosted, lv2014] | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
|
||
# - name: vipm_InstallPackagesByName | ||
# uses: LV-APT/lvCICD@main | ||
# with: | ||
# Operation: vipm_InstallPackagesByName | ||
# Parameter1: 'Git API' | ||
|
||
# Runs a set of commands using the runners shell | ||
- name: Build VI Package | ||
id: build-vip | ||
uses: LV-APT/lvCICD@main | ||
with: | ||
LabVIEW_Version: 2014 | ||
Operation: vipm_BuildDailyVIP | ||
Parameter1: ${{ github.workspace }}\src\LabVIEW-GlobalStop-Library.vipb | ||
Parameter2: NO | ||
|
||
- id: vip-name | ||
run: | ||
$vipName=Split-Path -Path ${{ steps.build-vip.outputs.Result }} -Leaf; | ||
Write-Host "::set-output name=vipName::"$vipName"" | ||
shell: powershell | ||
|
||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: ${{ steps.vip-name.outputs.vipName }} | ||
path: ${{ steps.build-vip.outputs.Result }} | ||
# The desired behavior if no files are found using the provided path. | ||
if-no-files-found: warn | ||
retention-days: 90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Check_Broken_VIs | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
push: | ||
paths-ignore: | ||
- '.github/**' | ||
- 'vip/**' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
Check_Broken_VIs: | ||
# The type of runner that the job will run on | ||
runs-on: [self-hosted, lv2014] | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
|
||
# Runs a set of commands using the runners shell | ||
- id: Check_Broken_VIs | ||
uses: LV-APT/lvCICD@main | ||
with: | ||
LabVIEW_Version: 2014 | ||
Operation: VIAn_CheckBrokenVIs | ||
Parameter1: ${{ github.workspace }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,25 @@ | ||
# LabVIEW GlobalStop Library | ||
|
||
提供给LabVIEW 程序使用的全局停止方案。 | ||
|
||
**优点:简单、高效、易用,STOP FGV的方案也保证了多线程安全。** | ||
[![Check_Broken_VIs](https://github.com/NEVSTOP-LAB/LabVIEW-GlobalStop-Library/actions/workflows/Check_Broken_VIs.yml/badge.svg)](https://github.com/NEVSTOP-LAB/LabVIEW-GlobalStop-Library/actions/workflows/Check_Broken_VIs.yml) | ||
[![Build_VIPM_Library](https://github.com/NEVSTOP-LAB/LabVIEW-GlobalStop-Library/actions/workflows/Build_VIPM_Library.yml/badge.svg)](https://github.com/NEVSTOP-LAB/LabVIEW-GlobalStop-Library/actions/workflows/Build_VIPM_Library.yml) | ||
|
||
Simple stop mechanism for parallel loops in LabVIEW. | ||
|
||
## 功能 | ||
|
||
![Library Pallette](https://cloud.githubusercontent.com/assets/8196752/10752145/8288f624-7cc1-11e5-9700-e3740e08f571.png) | ||
|
||
- `Init.vi` : 初始化STOP FGV,如果ERROR 发生,则全局停止位初始化为 TRUE | ||
- `Reset.vi` :设置STOP FGV为 False,Index 标识模块编号,-1 标识全局停止位 | ||
- `Set.vi` : 设置STOP FGV为 True,Index 标识模块编号,-1 标识全局停止位 | ||
- `Get.vi` :检查STOP FGV值,如果输入的错误簇为False,会自动调用 `Set.vi` 方法,Index 标识模块编号,-1 标识全局停止位 | ||
- `CheckSet.vi` :检查输入的Boolean值,(通常连接到Stop Button上)判断是否需要退出。如果输入的错误簇为False,会自动调用 `Set.vi` 方法,Index 标识模块编号,-1 标识全局停止位 | ||
|
||
|
||
## 实现 | ||
|
||
- 使用Function Global Variable (FGV)的方式,存储一组(初始默认32个) Boolean 类型的标志数据,不同线程通过读取该FGV判断是否需要停止。 | ||
- Index 标识模块编号,-1 标识全局停止位。建议创建将模块列表创建为Enum/Combo Typedef,连接到 Index 输入端。 | ||
- 当超出当前定义的标志个数时,会自动扩展 FGV 中的标志Flag 数组长度。 | ||
- `Init.vi` : Initialzie Globalstop, if error occurs, GlobalStop will be set to TRUE | ||
- `Reset.vi` : Reset GlobalStop to FALSE. Index=-1 stands for reset all. | ||
- `Set.vi` : Set GlobalStop to TRUE. Index=-1 stands for set all to TRUE. | ||
- `Get.vi` : Get GlobalStop value of index. Set Index=-1 to get the global value of GlobalStop. | ||
- `CheckSet.vi` : Check the boolean input(usually a stop button). | ||
|
||
# Example | ||
|
||
## 使用环境 | ||
![image](https://user-images.githubusercontent.com/8196752/200517986-eb2f3ed4-0931-443e-9bb2-d45b227550c0.png) | ||
|
||
LabVIEW 2014 + | ||
## Development Environment | ||
|
||
- LabVEW 2014 | ||
- VIPM 2020.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# LabVIEW GlobalStop Library | ||
|
||
[![Check_Broken_VIs](https://github.com/NEVSTOP-LAB/LabVIEW-GlobalStop-Library/actions/workflows/Check_Broken_VIs.yml/badge.svg)](https://github.com/NEVSTOP-LAB/LabVIEW-GlobalStop-Library/actions/workflows/Check_Broken_VIs.yml) | ||
[![Build_VIPM_Library](https://github.com/NEVSTOP-LAB/LabVIEW-GlobalStop-Library/actions/workflows/Build_VIPM_Library.yml/badge.svg)](https://github.com/NEVSTOP-LAB/LabVIEW-GlobalStop-Library/actions/workflows/Build_VIPM_Library.yml) | ||
|
||
提供给LabVIEW 程序使用的全局停止方案。 | ||
|
||
**优点:简单、高效、易用,STOP FGV的方案也保证了多线程安全。** | ||
|
||
## 功能 | ||
|
||
![Library Pallette](https://cloud.githubusercontent.com/assets/8196752/10752145/8288f624-7cc1-11e5-9700-e3740e08f571.png) | ||
|
||
- `Init.vi` : 初始化STOP FGV,如果ERROR 发生,则全局停止位初始化为 TRUE | ||
- `Reset.vi` :设置STOP FGV为 False,Index 标识模块编号,-1 标识全局停止位 | ||
- `Set.vi` : 设置STOP FGV为 True,Index 标识模块编号,-1 标识全局停止位 | ||
- `Get.vi` :检查STOP FGV值,如果输入的错误簇为False,会自动调用 `Set.vi` 方法,Index 标识模块编号,-1 标识全局停止位 | ||
- `CheckSet.vi` :检查输入的Boolean值,(通常连接到Stop Button上)判断是否需要退出。如果输入的错误簇为False,会自动调用 `Set.vi` 方法,Index 标识模块编号,-1 标识全局停止位 | ||
|
||
## 实现 | ||
|
||
- 使用Function Global Variable (FGV)的方式,存储一组(初始默认32个) Boolean 类型的标志数据,不同线程通过读取该FGV判断是否需要停止。 | ||
- Index 标识模块编号,-1 标识全局停止位。建议创建将模块列表创建为Enum/Combo Typedef,连接到 Index 输入端。 | ||
- 当超出当前定义的标志个数时,会自动扩展 FGV 中的标志Flag 数组长度。 | ||
|
||
## Development Environment | ||
|
||
- LabVEW 2014 | ||
- VIPM 2020.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.