Skip to content

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

@kovacskalirobert

Description

@kovacskalirobert

[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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions