기본 데이터 타입 소개
Introduction to basic data types
 숫자형 (Numerical)
연산을 위한 숫자 데이터 타입 (numeric data types for operations)
 불리언 (Boolean)
참, 거짓으로 표현되는 논리 연산을 위한 데이터 타입
(data type with two possible values: true (1) or false (0)
 문자형 (character)
ASCII 코드로 나타낸 문자를 표시하기 위한 데이터 타입
(Data type for displaying characters represented by ASCII code)
LabVIEW의 기본 데이터 타입
• Type used to perform operations
• The same data type can be represented by all controls and indicators in a numeric
palette
• Can be converted to real, integer, and natural numbers
Numeric data type
 부호가 있는 정수
• 32-bit (I32): -2147483648 ~ 2147483647
• 16-bit (I16): -32768 ~ 32767
• 8-bit (I8): -128 ~ 127
 부호가 없는 정수
• 32-bit (U32): 0 ~ 4,294,967,295
• 16-bit (U16): 0 ~ 65536
• 8-bit (U8): 0 ~ 256
Numeric Data Type – Integer (정수)
 실수형:
• 확장형 정밀도 [EXT]: –1.19e+4932 ~ 1.19e+4932
• 배정도 [DBL]: –1.79e+308 ~ 1.79e+308
• 단정도 [SGL]: –3.40e+38 ~ 3.40e+38
 복소수 실수형:
• 복소수 실수형 데이터 타입은 실수형 데이터 타입과
같은 정밀도를 가짐.
• 실수형과 달리 복소수 실수형 데이터 타입은 실수와
허수부를 가짐.
Numeric data type – 실수
• Type of data that can be represented as False or True
• Can also be expressed as 0 or 1
• Type of data used for logical operations
Boolean Data Type
컨트롤, 인디케이터 (Controls, indicators)
Terminal (터미널)
Lab 1: [Number]/[String]/[Boolean] controls,
creating indicators
Lab 2: Wiring and Label Change
DBL
Int 16
Lab 3: Changing the data type
Lab 4: Two-Number Data with 4 output
 Celsius temperature → Fahrenheit:
Fahrenheit temperature = (C) * 1.8 + 32.0
 Fahrenheit → Celsius?
  kelvin?
  Rankine?
Task #1: Converting Celsius to Fahrenheit/
converting Fahrenheit to Celsius
Task #2: Boolean Logic (NAND, NOR)
?
디버깅 (Debugging)
Error List
 Allows users to see the flow of data continuously with their own
eyes
Run Highlights
실행하이라이트
 Allows users to monitor values at points they want
Probe (프로브)
프로브
 Users can pause and check at any point they want
브레이크 포인트 (Breakpoint)
브레이크포인트
노드 단계별 실행 :
노드 하나씩 차례로 실행됨
노드 내부 확인
Check node
internal
노드 건너뛰기
Skip Node
노드 벗어나기
Out of Node
디버깅 (Debugging)
 Wire values are retained for verification after the
program is run
와이어 값 유지 (Maintain wire value)
와이어 값 유지
 Error Cluster
Status:
Whether or not
an error has
occurred
Source:
Information on the node
where the error occurred
Code:
Error unique
number
에러 클러스터 (Error Cluster)
LabVIEW의 구조문
(Structural Statements in
LabVIEW)
구조문의 종류
• 에 입력한 횟수 만큼 Loop를 실행
• 반복 횟수
For loop
While loop
Time delay function
 Timed 구조
Waveform Chart
Composition of the waveform chart
Practice 5: For/While Structure Comparison
 For loop
Practice 5: For/While Structure Comparison
 While loop
Task #3: Random number occurrence and finding matching real
number values
?
 Let's implement a program that ends when a random number
matching an input value is generated by generating a random number.
Task #4: Draw sin/cos waves using For structural
statements
How to complete the assignment
 과제물 작성 요령
표지
# 예비/ 결과 보고서
실험 제목
 수업 시간: 목요일 1,2,3 교시
 제출 날짜: 2022-##-##
 학과: 메디컬IT융합공학과
 학번: 20201111
 이름: 000
 실험 내용 1
결과 그래프 or 사진
 실험 과정 설명
 결과에 대한 해석 및 고찰
# 결과 보고서: 실험 제목 # 예비 보고서: 실험 제목
 이론 설명 설명
결과 보고서 예비 보고서
• 레포트 표지 꼭 작성
• 파일 명 : 예비/결과_학번_이름.docx
• 자유 양식으로 작성
 과제물 제출기한을 꼭 지켜야 하며, 늦게 제출한 과제물은 받지 않음
(웹 상에 제출시 문제가 생겨 과제물 제출이 늦어지는 경우 전적으로 본인 책임)
 과제물에 대하여 토론은 할 수 있지만, 타인의 과제를 그대로 복사하여 제출할 경우 자료 제공자와
복사를 한 학생 모두 해당 과제에 대해 0점 처리한다.

Basic labview programming.pptx

  • 1.
    기본 데이터 타입소개 Introduction to basic data types
  • 2.
     숫자형 (Numerical) 연산을위한 숫자 데이터 타입 (numeric data types for operations)  불리언 (Boolean) 참, 거짓으로 표현되는 논리 연산을 위한 데이터 타입 (data type with two possible values: true (1) or false (0)  문자형 (character) ASCII 코드로 나타낸 문자를 표시하기 위한 데이터 타입 (Data type for displaying characters represented by ASCII code) LabVIEW의 기본 데이터 타입
  • 3.
    • Type usedto perform operations • The same data type can be represented by all controls and indicators in a numeric palette • Can be converted to real, integer, and natural numbers Numeric data type
  • 4.
     부호가 있는정수 • 32-bit (I32): -2147483648 ~ 2147483647 • 16-bit (I16): -32768 ~ 32767 • 8-bit (I8): -128 ~ 127  부호가 없는 정수 • 32-bit (U32): 0 ~ 4,294,967,295 • 16-bit (U16): 0 ~ 65536 • 8-bit (U8): 0 ~ 256 Numeric Data Type – Integer (정수)
  • 5.
     실수형: • 확장형정밀도 [EXT]: –1.19e+4932 ~ 1.19e+4932 • 배정도 [DBL]: –1.79e+308 ~ 1.79e+308 • 단정도 [SGL]: –3.40e+38 ~ 3.40e+38  복소수 실수형: • 복소수 실수형 데이터 타입은 실수형 데이터 타입과 같은 정밀도를 가짐. • 실수형과 달리 복소수 실수형 데이터 타입은 실수와 허수부를 가짐. Numeric data type – 실수
  • 6.
    • Type ofdata that can be represented as False or True • Can also be expressed as 0 or 1 • Type of data used for logical operations Boolean Data Type
  • 7.
  • 8.
  • 9.
    Lab 1: [Number]/[String]/[Boolean]controls, creating indicators
  • 10.
    Lab 2: Wiringand Label Change
  • 11.
    DBL Int 16 Lab 3:Changing the data type
  • 12.
    Lab 4: Two-NumberData with 4 output
  • 13.
     Celsius temperature→ Fahrenheit: Fahrenheit temperature = (C) * 1.8 + 32.0  Fahrenheit → Celsius?   kelvin?   Rankine? Task #1: Converting Celsius to Fahrenheit/ converting Fahrenheit to Celsius
  • 14.
    Task #2: BooleanLogic (NAND, NOR) ?
  • 15.
  • 16.
  • 17.
     Allows usersto see the flow of data continuously with their own eyes Run Highlights 실행하이라이트
  • 18.
     Allows usersto monitor values at points they want Probe (프로브) 프로브
  • 19.
     Users canpause and check at any point they want 브레이크 포인트 (Breakpoint) 브레이크포인트
  • 20.
    노드 단계별 실행: 노드 하나씩 차례로 실행됨 노드 내부 확인 Check node internal 노드 건너뛰기 Skip Node 노드 벗어나기 Out of Node 디버깅 (Debugging)
  • 21.
     Wire valuesare retained for verification after the program is run 와이어 값 유지 (Maintain wire value) 와이어 값 유지
  • 22.
     Error Cluster Status: Whetheror not an error has occurred Source: Information on the node where the error occurred Code: Error unique number 에러 클러스터 (Error Cluster)
  • 23.
  • 24.
  • 25.
    • 에 입력한횟수 만큼 Loop를 실행 • 반복 횟수 For loop
  • 26.
  • 27.
  • 28.
  • 29.
    Composition of thewaveform chart
  • 30.
    Practice 5: For/WhileStructure Comparison  For loop
  • 31.
    Practice 5: For/WhileStructure Comparison  While loop
  • 32.
    Task #3: Randomnumber occurrence and finding matching real number values ?  Let's implement a program that ends when a random number matching an input value is generated by generating a random number.
  • 33.
    Task #4: Drawsin/cos waves using For structural statements
  • 34.
    How to completethe assignment  과제물 작성 요령 표지 # 예비/ 결과 보고서 실험 제목  수업 시간: 목요일 1,2,3 교시  제출 날짜: 2022-##-##  학과: 메디컬IT융합공학과  학번: 20201111  이름: 000  실험 내용 1 결과 그래프 or 사진  실험 과정 설명  결과에 대한 해석 및 고찰 # 결과 보고서: 실험 제목 # 예비 보고서: 실험 제목  이론 설명 설명 결과 보고서 예비 보고서 • 레포트 표지 꼭 작성 • 파일 명 : 예비/결과_학번_이름.docx • 자유 양식으로 작성  과제물 제출기한을 꼭 지켜야 하며, 늦게 제출한 과제물은 받지 않음 (웹 상에 제출시 문제가 생겨 과제물 제출이 늦어지는 경우 전적으로 본인 책임)  과제물에 대하여 토론은 할 수 있지만, 타인의 과제를 그대로 복사하여 제출할 경우 자료 제공자와 복사를 한 학생 모두 해당 과제에 대해 0점 처리한다.

Editor's Notes

  • #21 Run node step by step: Running one node after another
  • #26 Run Loop as many times as you enter in Number of iterations