09-12-2024 06:20 AM - edited 09-12-2024 06:20 AM
Hello,
I am new to LabVIEW and am currently having a little trouble with my project.
I'm using a cDAQ-9178 with an NI-9401 and an NI-9201 inserted into it. There is an incremental rotary encoder hooked up to the NI-9401 with encoder type X1 and 16384 impulses every 360°, and I connected a charge amplifier to the NI-9201. Connected to the charge amplifier is a piezoelectric sensor. All the hardware has been tested in NI Max and NI FlexLogger, and they're working fine. The screenshot attached shows both in FlexLogger.
The plan is to get a measurement from the sensor every time the encoder sends a new impulse.
I've tried to achieve this, but my first attempt turned out to be way too slow. For my second attempt, I'm now trying to use the "DAQmx - Export Signal" VI, but I can't get it to work properly.
I've attached my VI to this post.
As you can see, the while-loop checks if the encoder sends a new measurement, which, if it does, triggers the if-case that should activate the "Export Signal" VI. This signal should then trigger a way to save the data currently measured by the sensor into an array. I've opted to use the "Start-Trigger" signal since it seems to be what I'm looking for.
However, I've noticed that my piezoelectric sensor only shows up as a physical channel and therefore can't be connected to the VI.
I'm sure I'm missing something, but I can't figure out what I'm doing wrong. Some help would be much appreciated.