nifpga-python icon indicating copy to clipboard operation
nifpga-python copied to clipboard

The use of CompactRIO and NI modules; handling analog input with nifpga.

Open kovacskalirobert opened this issue 2 years ago • 0 comments

[CompactRIO, nifpga API, FPGA]

Hello, I'm Robi. I would like to ask for help with a project. First, let me list the technologies I am working with.

The exact python version used: 3.10+ The exact versions of packages used:

  • nifpga API: 22.0.0
  • LabVIEW: 2017
  • NI CompactRIO (driver): 17.0
  • LabVIEW RT: 17.0
  • Numpy, Pandas, matplotlib, etc...
  • cRIO-9076
  • NI-9215
  • NI-9263
  • Windows 10

I would like to use the aforementioned modules from Python, but I am unable to do so because any data I read always returns 0.0, and I am also unable to write to the module outputs. Here's the setup: I write a program in LabVIEW to program the FPGA to measure an analog signal on the AI0 channel. I compile this program and create a bitfile, which I then use in Python. Everything works great in LabVIEW, but I cannot use the module output in Python because it always reads 0.0. What am I doing wrong? My code is good because if I use a constant instead of the module (AI0), then Python can handle it. So my question is, can the modules not be used from Python?

kovacskalirobert avatar Mar 02 '23 20:03 kovacskalirobert