Sort X-NET Signals Inside A Frame According To Their Start Bit

제품 및 환경

이 섹션은 예제 생성에 사용된 제품과 OS를 표시합니다.

아래의 제품을 비롯한 NI 소프트웨어를 다운로드하시려면 ni.com/downloads를 방문하십시오.

    하드웨어

  • Industrial Communication

    소프트웨어

  • LabVIEW

    드라이버

  • Other

코드 및 문서

첨부파일

모두 다운로드
Overview

This example demonstrates how to sort signals in a XNET frame according to the start bit instead of an alphabetical order.

 

Description

You can use the XNET property node in LabVIEW to get a list of all signals within a frame. The list is sorted alphabetical.

This example takes the list from the property node and sorts the signals according to the start bit associated with the signals. The signal with the lowest start bit will be the first entry in the list.

 

Requirements

 Software

  • LabVIEW Base Development System 2012 (or compatible)
  • NI XNET driver 14.0 (or compatible)
  • If running in a Real-Time context, you will need the LabVIEW Real-Time Module 2012 (or compatible)

 Hardware

  • No hardware is necessary to use this example VI

 

Steps to Implement or Execute Code

  1. Download and open the attached VI
  2. Select the XNET frame which contains the signals you are interested in. You may need to select a XNET database in the frame control first.
    You can use the shipped database NIXNET_Example.CAN_Cluster if you don't have an own database.
  3. Run the VI

 

Additional Information or References

Sort XNET Signals By Start Bit - Front Panel.png
Sort XNET Signals By Start Bit - Block Diagram.png

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
National Instruments
Applications Engineer
NI Prototyping Community

NI 커뮤니티에 있는 예제 코드 교환의 예제 코드는 MIT 라이센스로 라이센스가 부여됩니다.