Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 2010

Read Temperature from USB TC01 C# WPF

$
0
0

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.


Viewing all articles
Browse latest Browse all 2010

Trending Articles



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