Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5370

Reference an FPGA Array of Controls

$
0
0

I am developing a cRIO application that has an array of 23 controls in the FPGA.  The FPGA Interface C API Generator defined them as a name and size.

 

typedef enum
{
   NiFpga_ControlArrayU32_Setpoints = 0x8118,
} NiFpga_ControlArrayU32;

 

typedef enum
{
   NiFpga_ControlArrayU32Size_Setpoints = 24,
} NiFpga_ControlArrayU32Size;

 

How would I reference the 15th setpoint, as NiFpga_ControlArrayU32[15] or as an offest to 0x8118?

 


Viewing all articles
Browse latest Browse all 5370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>