I am trying to find an example of reading the temperature directly from the USB port instead of using LabView or some other software. I have a program that is used for recording low temperature test data. At the moment the analyst has to manually enter the temperature before sending the data to the DB. I want the temperature to be read (maybe every 30 seconds) to eliminate human input. Just trying to establish a session caused an exception.
private UsbSession usbSession; public Temp() { GetSession("TempProbe"); } private void GetSession(string instName) { if (usbSession == null) { usbSession = new UsbSession(instName); } }
The instrument has been named TempProbe using NI Max. The test method said "Insufficient location information or the device or resource is not present in the system." I have not been able to find any examples or documentation. What I did find was over 6 years old and the example would not compile.
I am running Visual Studio 2013 professional, .Net 4.6.
Any help would be appreciated.