02-03-2013 09:12 AM
Hi,
I wanted to create a simple metro style application in windows 8 that reads temperature from ni usb tc01 Thermocouple.However im getting these errors:
when adding: using NationalInstruments.DAQmx; as reference in my project i get this error:
Error 9 There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "NationalInstruments.DAQmx", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
When adding: using NationalInstruments.Common; as reference in my project i get the error shown in the attached picture.
Is there anyway around to use DAQ in metro applications(windows store)?
Solved! Go to Solution.
02-04-2013 10:34 AM
zyberb,
I haven't seen too many people developing Windows Store apps (what Metro apps are now called) that interface with NI hardware so I haven't run across this particular error yet. Digging around online though for ".NETCore .NETFramework" came up with some good results though. It seems like there is a new way Microsoft is wanting for developers to add the libraries to their project and a lot of people are getting this error until they add the library to their project correctly. Hope this helps!
02-04-2013 06:42 PM
Hi zyberb,
This is covered in Frequently Asked Questions about Windows 8:
Windows Store apps cannot be created using National Instruments software. These apps are run in a "sandboxed" environment, which limits their access to low-level system calls such as the Win32 API. National Instruments products require direct access to these APIs and system calls to run properly. Therefore, applications created with National Instruments software cannot be run as Windows Store applications.
Brad
02-05-2013 11:37 AM - edited 02-05-2013 11:49 AM
But perhaps this is something you should make happen? Afterall this is the new way of programming in Windows. It is the same with Measurement Studio which does not support Visual Studio 2012 - you guys are lacking behind! Windows 8 and Visual Studio 2012 was released in August 2012 (and beta releases several years before that). The same with LabVIEW - deploy LabVIEW applications as Windows Store Apps should of course be possible in the near future.
11-03-2013 02:11 AM
Hi,
Windows 8.1 Runtime has some USB device support.
Do you plan to support this platform for DAQmx USB device ou USB-GPIB ?
Laurent.
03-09-2015 11:00 AM - edited 03-09-2015 11:01 AM
I know this is an old thread but I'm interested in whether there are any future plans for National Instruments to support Win 8 Store applications based on the .NETCore through DAQmx?
I'm developing a tablet-based Win 8 Store based app where it would be useful to be able to support a USB connected (cDAQ-9171) device. I'd hate to have to revert to the old desktop environment just to include NI DAQ units!
Any update on when this might happen (or a definite "Never") would be appreciated!
Regards,
Malcolm Sharp