03-08-2010 08:13 AM
Solved! Go to Solution.
03-09-2010 11:32 AM
Hi Shuli,
Yes, you should be able to do that, that functionality is part of the DAQmx driver. A quick search of the .net help for “temperature” brings up the Device.Temperature Property. Take a look at the Device Class members list, this shows a lot of methods and property available on the Device class. Second from the bottom is Temperature. Hope this helps!
03-10-2010 11:55 AM
Matt,
Thanks for pointing me in the right direction. My initial quick search was only finding Task commands.
I couldn't figure out how to initialize Device until I fortunately found the solution in the help documentation. "You cannot instantiate the Device class directly. Instead, use the LoadDevice method to obtain an instance of the Device class."
02-15-2011 01:07 PM
Hi Shuli,Matt I try to read the temperature within of PXI-4462 and PXI-4461 but I think tath I am not in correct way, If you know if and how this is possible could you please push me in the right direction. thank you in advance for your help. I working wit C# Visual Studio and Mensuremente Studio.
02-16-2011 12:52 PM
Hi Tapiam,
What Matt suggested was you try something like this:
DaqSystem.Local.LoadDevice("Dev1").Temperature; Dev1 should be the name of whatever device you're using as specified in MAX or as appears in DaqSystem.Local.Device.
Hope this helps!
02-21-2011 02:20 PM
Hi Sean
Thank you for the information, it works properly, but just a little problem, when I try to run the app in the PXI. show this error: Could not load file or assembly 'NarionalInstrumen.common' Ver:8.7.35.131. I was checking in my PC, where I did the app and did not find the this version. Do you know something about, how to fix it or where can find this version to install in my PXI?
Thank you in advance for your help
02-22-2011 04:58 PM
Hi Tapiam,
Is that the full context of the error? I found a similar issue in another discussion forum (linked here) where two or more versions of an assembly are being called. If you could, go through the KB linked there and post any further questions on that thread. Thanks!
02-23-2011 12:18 PM
Thanks a lot Sean F, we find how to fix it. just update the Ver in the PXI.