LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using DAQmx with windows 8 metro app

Solved!
Go to solution

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.

 

Error

 

Is there anyway around to use DAQ in metro applications(windows store)?

 

0 Kudos
Message 1 of 6
(3,608 Views)

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!

 

0 Kudos
Message 2 of 6
(3,570 Views)
Solution
Accepted by topic author zyberb

Hi zyberb,

 

This is covered in Frequently Asked Questions about Windows 8:

 

Can I write Windows Store apps using NI Software?

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

---
Brad Keryan
NI R&D
0 Kudos
Message 3 of 6
(3,542 Views)

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.

0 Kudos
Message 4 of 6
(3,512 Views)

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.

0 Kudos
Message 5 of 6
(3,308 Views)

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

0 Kudos
Message 6 of 6
(3,153 Views)