# Labview基礎教學
###### tags:`教學`
<style>
html, body, .ui-content {
background-color: #1e1e1e;
color: #ddd;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
color: #ddd;
}
.markdown-body h1,
.markdown-body h2 {
border-bottom-color: #ffffff69;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
color: #fff;
}
.markdown-body img {
background-color: transparent;
}
.ui-toc-dropdown .nav>.active:focus>a, .ui-toc-dropdown .nav>.active:hover>a, .ui-toc-dropdown .nav>.active>a {
color: white;
border-left: 2px solid white;
}
.expand-toggle:hover,
.expand-toggle:focus,
.back-to-top:hover,
.back-to-top:focus,
.go-to-bottom:hover,
.go-to-bottom:focus {
color: white;
}
.ui-toc-dropdown {
background-color: #333;
}
.ui-toc-label.btn {
background-color: #191919;
color: white;
}
.ui-toc-dropdown .nav>li>a:focus,
.ui-toc-dropdown .nav>li>a:hover {
color: white;
border-left: 1px solid white;
}
.markdown-body blockquote {
color: #bcbcbc;
}
.markdown-body table tr:nth-child(0n+0) {
background-color: #5f5f5f;
}
.markdown-body code,
.markdown-body tt {
color: #eee;
background-color: rgba(230, 230, 230, 0.1);
}
a,
.open-files-container li.selected a {
color: #5EB7E0;
}
</style>
---
[TOC]
---
## 壹-建立專案
### 一、開啟Labview
![](https://i.imgur.com/qG8svb2.png)
### 二、點擊"FRC roboRIO Project"建立一個新的專案
#### 填入專案名稱(Project name)、儲存位置(Project folder)及隊號(Team number)後點擊Finish建立專案。
![](https://i.imgur.com/08kScSb.png)
### 三、完成
![](https://i.imgur.com/OaOdCjc.png)
### 四、檔案介紹
#### 點擊左側的![](https://i.imgur.com/ck6201k.png)展開內容
![](https://i.imgur.com/EP60vT5.png)
##### 1.`Robot Main.vi`
主程式,測試時上傳、執行及結束都從這裡。
##### 2.`Begin.vi`
啟動後會運行的第一個程式,主要用途為初始化馬達及搖桿。
##### 3.`Autonomous Independent.vi`
寫自動程式的地方。
##### 4.`Teleop.vi`
寫遙控程式的地方。
##### 5.`FRC Robot Boot-up Deployment`
要把程式燒錄進RoboRIO的時候會用到。
## 貳-編寫自動程式
暫缺
## 參-編寫遙控程式