Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

NI USB-8451 .net c# support

Solved!
Go to solution

I'm looking into probably getting the NI USB-8451 but have a few questions.

 

I'll be using c# for making an app.  

 

Is there .net c# library for the usb-8451 so I can take advatnage of i2c , spi and all that?

0 Kudos
Message 1 of 11
(6,607 Views)
Solution
Accepted by cheece2001

Hi cheece2001,

 

To my knowledge there is unfortunately only a C API for the USB-8451. The user manual, found here: http://www.ni.com/pdf/manuals/371746e.pdf details all the C commands. Examples also come with the NI-845x driver download if you want to look at these. This downlad is found here: http://www.ni.com/download/ni-845x-15.0/5611/en/ The driver readme also only lists support for "Microsoft Visual C/C++ 6.0 (or newer)"

 

Hope this helps!

 

 

 

 

Selene
0 Kudos
Message 2 of 11
(6,589 Views)

hi 

I'll be using c# for making an app too.

can you share your source code ?

I need that code very much.

0 Kudos
Message 3 of 11
(3,526 Views)

Until now, i was only able to communicate and use the dio function as a switch and still looking on how to use the i2c function in c#

0 Kudos
Message 4 of 11
(2,589 Views)

You've to call the c dll in C#.

 

We have succeeded in using all the features of the 845x library in C# but couldn't share any of that development as those are proprietary.

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
Message 5 of 11
(2,585 Views)

Just tried to call all of those and managed to resolved all of the thrown errors, the master acknowledged the slave address already but my problem lately was; when I run my code, it stops right after the  ni845xI2cWriteRead.TIA function.

0 Kudos
Message 6 of 11
(2,579 Views)

At last, I managed to make it work with a lot of exerted effort for several days.

Message 7 of 11
(2,525 Views)

@Jepoy182 wrote:

At last, I managed to make it work with a lot of exerted effort for several days.


If it is not proprietary, please attach the code as reference for others.

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
Message 8 of 11
(2,513 Views)

Can you post the Source Code? Thanks

0 Kudos
Message 9 of 11
(835 Views)

proprietary?  If you created some special interpreter software but if just taking the NI845x.dll and using visual studio to make some adapted version of the dll that runs in C# then it shouldnt be proprietary.  when I solve it, will hopefully make it public for the world since its not really fair that NI refuses to help solve this. 

 

No one write a new app in C in 2024.  We use C#.  NI must know how to do this and wants to not help, when it comes time to specify a vendor solution we will assuredly be looking elsewhere for this reason.

0 Kudos
Message 10 of 11
(276 Views)