06-09-2025 02:12 AM - edited 06-09-2025 02:14 AM
Hi everyone,
I’m currently working on a LabVIEW project to acquire pressure data using:
Sensor: PN2271 pressure sensor (4–20 mA analog output)
DAQ: NI 9146 Crio and 9203 module
I’ve built a VI to acquire sensor data using the DAQ Assistant, but I’m only getting 10–12 readings per second. I want to achieve a much higher sampling rate, closer to the potential.
What I'm Doing:
Iam using TDMS logging
Request
Please help me understand how to modify or restructure my VI to:
Improve sampling rate
Correct any bad practices
Implement DAQmx properly
06-09-2025 08:13 PM
Please spend the time to learn LabVIEW. You need to learn DAQmx and learn to not use the DAQ Assistant (I call it the "Dreaded DAQ Assistant", or DDA, for short).
It is difficult to understand code from poor pictures (.pngs are much preferred to .jpegs) -- LabVIEW Projects, preferably "saved for previous version" to LabVIEW 2019 or 2021. Among other things, seeing your code can help us suggest what you need to learn.
Bob Schor
06-09-2025 09:36 PM
Please start with the Current - Continuous Input example, it will showcase how to use the DAQmx APIs to collect continuous data along with TDMS logging.
06-10-2025 02:10 AM
So there is one thing wrong in your description, your are NOT using any DAQ Assistant or DAQmx.
You have setup a timed while loop with a loop periode of 100 ms, and in that while loop you are taking one sample from a Scan Engine variable and logging that to a tdms file.
So why are you only getting 10 sample a second?
If you need a fast sampling, you need a faster loop time.
And you need the Scan Engine time to match that, else you will get duplicates in your logging.
06-10-2025 03:49 AM - edited 06-10-2025 03:50 AM
Hi mp,
@mp777 wrote:
I’m currently working on a LabVIEW project to acquire pressure data using:
- DAQ: NI 9146 Crio and 9203 module
Request
Please help me understand how to modify or restructure my VI to:
Improve sampling rate
Correct any bad practices
Implement DAQmx properly
The NI9146 is a rather old Ethernet-based cRIO with a small FPGA inside.
It was designed before DAQmx got support for cRIO chassis, so your NI9146 isn't supported by DAQmx.
With those old cRIOs you have two options to read measurement data: ScanEngine or FPGA interface.
So what are your requirements specifically? (What is "much higher"?)