03-19-2019 11:58 AM
Dear all,
I know that this problem may seem easy but believe me, I only got dead ends.
I am trying to measure current using NI 9227 module in LabVIEW FPGA mode. My program is simple, I linked the module terminal to an indicator (see attached photo) I even added a graph to verify if any changes are detected. On the hardware side, I just connected my module in series with a resistor supplied by a voltage supply.
Please tell me what am I doing wrong is it a hardware trick? Any help is appreciated.
Thanks in advance,
Fares
03-19-2019 06:48 PM
Everything looks right to me. Is there a reason you think you might be doing something wrong? Can you put another multimeter in series and see what current it measures?
03-21-2019 01:00 AM
The reason I think that something is wrong is the fact that the NI 9227 works fine in Scan interface mode and measures the current but when I use it in LabVIEW FPGA mode it reads nothing the indicator is always 0.
Yes, I already put a multimeter in series and used a current clamp and both read 2A current for a Vdc=10V and R=5 Ohm except for the NI 9227 reads nothing.
03-21-2019 09:30 AM
Hi Fares,
It is possible that the device reports 0 because you don't tell the 9227 to start reading.
If you put your loop in a sequence and tell the module to start before you enter the loop. You can do this by calling a FPGA I/O Node and directing it to write True into the module's start bit.
I don't have a lot of experience with the Scan interface mode, but it may tell the module to start automatically.
You can see an example of implementation in the attached screenshot.
Regards,