03-08-2016 10:11 AM
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?
Solved! Go to Solution.
03-09-2016 10:31 AM
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!
04-22-2021 11:23 PM
hi
I'll be using c# for making an app too.
can you share your source code ?
I need that code very much.
09-21-2022 09:47 PM
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#
09-21-2022 11:21 PM
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.
09-21-2022 11:34 PM
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.
09-27-2022 04:17 AM
At last, I managed to make it work with a lot of exerted effort for several days.
09-27-2022 12:55 PM
@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.
05-21-2024 05:42 AM
Can you post the Source Code? Thanks