Quantcast
Channel: Measurement Studio for VC++ topics
Viewing all articles
Browse latest Browse all 660

C Programming with NI-845x library

$
0
0

Hello I want to try reading and writing to an NI USB-8452 device in C.

 

I've downloaded the driver from https://www.ni.com/en-us/support/downloads/drivers/download.ni-845x-driver-software.html#460629

And I am in the example code located in C:\Users\Public\Documents\National Instruments\NI-845x\Examples\C\I2C\Basic\General I2C Read

But I am having issues with the line

#include "ni845x.h"

 

It seems that cmd/mingw/powershell cannot find the ni845x header file even after I set up the pathing in c_cpp_properties.json and tasks.json
it looks like I'm still having issues when trying to compile where the program cannot find that file even if it's properly linked.

I am not an expert on C but I have dug around online to where I'm positive I have the pathing correct as no errors flare up in VSC about the header file not being found anymore.

 

Sorry if this is confusing, TLDR;

Does anyone know how to get the ni845x driver to work in C for the example programs included in the installation of the library/driver


Viewing all articles
Browse latest Browse all 660

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>