오픈소스 & 자료공유 게시판

Multi Edge Detector Function (여러 비트 동시 천이(엣지) 검사하는 펑션)

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Programming Language

  • LabVIEW G

Code and Documents

Attachment

설명

여러개의 Bit를 동시에 천이 검사를 위한 펑션입니다.

 

Boolean 값들을 Array 로 묶은 후 Boolean Array to Integer 펑션으로 변화한 후 입력.

결과값을 Integer to Boolean Array로 변화하여 결과 값 확인.

 

테스트 예제는 스위치  3개만 썼습니다.

 

Labview 2012 이상.

 

 

 

일 예로 Digital Input DAQ Card로 데이타를 읽어 들일 때 이 펑션을 쓰면 각 채널 별로 천이(Edge)가 된것을 확인 할 수 있습니다.

쉽게 설명하면 천이를 알 면 스위치가 눌려진 건지 떼어진 건지를 알 수가 있습니다.

 

또한 PLC등 하부 기종의 통신 시 유용하게 쓸 수 있는 펑션입니다.

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.