Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Aribitrary Register From an MCT8316AV Using NI USB-8452 in C#

Hi everyone,

 

I’m currently working on a project where I need to read an arbitrary register from an MCT8316AV motor driver (specifically to verify that the driver's I2C interface is operational). I’m using the NI USB-8452 device along with the ni845x.dll in C#, for which I have an auto-generated wrapper class created using CppSharp.

 

How would I go about reading a register, for example, the CONST_POWER register (0x90)?

 

I’ve attached the datasheet for the motor driver for reference.

 

Thank you in advance for your help!

 

Best regards,
Marcus

0 Kudos
Message 1 of 2
(54 Views)

What have you tried? have you looked at the C examples to understand how to use the functions to communicate with a device?

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019La7SAE&l=en-US

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 2
(34 Views)