NI FPGA板卡程序设计概述

NI公司提到了三种不一样应用开发环境ADE:http://www.ni.com/white-paper/5956/zhs/编程

  • LabVIEW是NI公司主推的ADE,采用G语言(图像化语言),支持力度最大
  • LabWindows/CVI是相似于单片机界面的C语言开发环境(我的没用过,经过描述感受像是相似于IAR, Keil MDK这类软件)。
  • 基于Measurement Studio的配合visual studio的ADE
  • (还要一种)FPGA Interface C API,能够经过这个generator软件导入LabVIEW编译好的FPGA bitfile,生成C语言头文件,而后用第三方C/C++等编程软件调用该头文件既能够实现与NI FPGA板的通讯

 

Measurement Studio简介app

台式机安装了visual studio 2013,而后在NI官网下载measurement studio并安装设计

http://sine.ni.com/np/app/main/p/docid/nav-99/lang/zh-CN/3d

安装成功后,在visual studio 2013的菜单栏中自动嵌入measurement studioorm

阅读官网入门教程blog

http://www.ni.com/pdf/manuals/373225d.pdf教程

打开例程,发现分别提供了两种语言VB和C#ci


 

FPGA Interface C API开发

NI FPGA编程采用C语言方法rem

http://www.ni.com/product-documentation/9036/en/

使用方法:

在LabVIEW中设计并编译FPGA VI,生成bitfile;
用该软件导入该bitfile,生成对应的头文件;
将该头文件包含在C/C++开发工程中;
在C/C++开发工程中设计应用程序deploy NI的FPGA卡
该方法的官方说明文档汇总:http://zone.ni.com/reference/en-XX/help/372928G-01/
The FPGA Interface C API enables C/C++ applications to interact directly with compiled LabVIEW FPGA VIs on RIO devices without using LabVIEW. C/C++ applications can download a VI to a RIO target, perform DMA data transfers, wait on and acknowledge interrupts, and read from and write to named controls and indicators using C function calls.

A C/C++ application created with the C API can run on the real-time processor of a CompactRIO or NI Single-Board RIO device, and interact with VIs running on the FPGA of the RIO system. Alternatively, a C/C++ application can run on the real-time processor of a PXI system or the processor of a Windows or Linux PC, and interact with VIs running on the FPGA of a PXI or PCI RIO device.

相关文章
相关标签/搜索