Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the NI USB-8452 on a Real Time Target (cRIO-9046)

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.

0 Kudos
Message 1 of 4
(924 Views)

@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

Kudos are welcome...
0 Kudos
Message 2 of 4
(897 Views)

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

0 Kudos
Message 3 of 4
(886 Views)

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

Kudos are welcome...
0 Kudos
Message 4 of 4
(878 Views)