Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kovacskalirobert opened this issue Mar 2, 2023 · 0 comments

Comments

@kovacskalirobert
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant