08-16-2021 06:16 PM
I have been able to read flow measurements from a flow sensor using I2C communication on the USB-8452. I have also been able to get analog readings from another sensor on my cRIO-9046. I would like to be able to make these readings at the same time so that they are on the same plot. I can do this without using a real time target but I would like to be able to do it on the real time target. I was told by tech support that this was impossible but I was wondering if anyone had any ideas.
The error that comes up when trying to run 845x VI's on a real time target look like this:
"(Hex 0x436) Failed to load shared library ni845x.*:ni845xLVI2CWrite:C . Ensure that the library is present on the RT target."
Is it possible to put that library somewhere on the RT target and run the VI?
I've also tried using the NI-9042 module with the FPGA and the I2C API and have gotten absolutely nowhere, so I wanted to see if this library placement was possible as it would make my life much easier.
08-17-2021 09:21 AM - edited 08-17-2021 09:32 AM
@Will.I.am613 wrote:
Is it possible to put that library somewhere on the RT target and run the VI?
NO, that's a Windows-only driver. The support is correct.
EDIT: according to google search it should be possible to use a NI-9402 for the SPI bus, cf. e.g.:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019VSSSA2
https://forums.ni.com/t5/LabVIEW/NI-9402-I2C/td-p/3792125
Regards, Jens
08-17-2021 11:01 AM
Hi Jens,
Thank you for your reply, much appreciated. I did try using this API as well but I got some problems as mentioned here: https://forums.ni.com/t5/Digital-I-O/I2C-amp-SPI-Driver-API-with-cRIO-9046-and-NI-9402/m-p/4167971
I see that the thread you pointed me to has someone who messed around with the API a little to achieve successful communication so I'll try what he tried to see if it works for me. Also, I noticed he said he used 10kOhm resistors with the 9402? I heard from support it wasn't necessary due to the tri-state ability of the 9402. Do you know what is correct?
Best,
Will
08-18-2021 12:08 PM
Hi Will,
@Will.I.am613 wrote:
Hi Jens,
Thank you for your reply, much appreciated. I did try using this API as well but I got some problems as mentioned here: https://forums.ni.com/t5/Digital-I-O/I2C-amp-SPI-Driver-API-with-cRIO-9046-and-NI-9402/m-p/4167971
I see that the thread you pointed me to has someone who messed around with the API a little to achieve successful communication so I'll try what he tried to see if it works for me. Also, I noticed he said he used 10kOhm resistors with the 9402? I heard from support it wasn't necessary due to the tri-state ability of the 9402. Do you know what is correct?
Sorry, i cannot help you with this. I just found these threads from a google search.
Regards, Jens