Recent

Author Topic: Pascal bindings for NI FPGA cards and c-RIO devices  (Read 2373 times)

mig-31

  • Sr. Member
  • ****
  • Posts: 305
Pascal bindings for NI FPGA cards and c-RIO devices
« on: April 27, 2015, 06:04:04 pm »
Hi,

find in attachments NI FPGA bindings for Linux 32-bit and Windows 32-bit. This bindings are enabled you to control FPGA application from HOST PC program, written on FreePascal.

These devices are supported:
http://www.ni.com/rseries/
http://www.ni.com/compactrio/

What you need:
1. Install NI-RIO device driver
http://www.ni.com/download/ni-rio-14.0/5027/en/
http://www.ni.com/download/ni-rio-14.0.1/4862/en/
2. FPGA C interface
http://www.ni.com/download/fpga-interface-c-api-14.0/4946/en/
3. Create, download to FPGA and prepare bitfile of your FPGA application under LabView with NI FPGA module.
4. Generate fpga C headers file in LabView. Labview are created 3 files, the most important is fpga_fpga.h (C header file with FPGA application control codes), which contains of "integer value of controls" declared by enumerate
variables. Use this code to set control value by using functions from bindings.

Tested under Scientific Linux 6.4 32-bit and Windows 7 32-bit (probably worked with 64-bit)
« Last Edit: August 04, 2015, 10:07:58 am by mig-31 »
Lazarus 2.2.6 - OpenSuse Leap 15.4, Mageia 8, CentOS 7

mig-31

  • Sr. Member
  • ****
  • Posts: 305
Re: Pascal bindings for NI FPGA cards and c-RIO devices
« Reply #1 on: May 13, 2015, 04:47:56 pm »
Hi,

I see that a few people download bindings and I want to ask you if it useful for others to add a code example?

PC program (code example) controls FPGA program and bonded very close with FPGA program. It not possible to write universal example.

I think the best way to use example on the NI web site and rewrite it C code example to Pascal.

What you think?
Lazarus 2.2.6 - OpenSuse Leap 15.4, Mageia 8, CentOS 7

 

TinyPortal © 2005-2018