reference path

I had a NationalInstruments.DAQmx.dll file under C:\Program Files\National Instruments\MeasurementStudioVS2008\DotNET\Assemblies\Current

And write a line in csharp:
using nationalinstruments

but error shows:Assets/Standard Assets/Character Controllers/Sources/Scripts/IO_control_NI.cs(6,7): error CS0246: The type or namespace name `NationalInstruments’ could not be found. Are you missing a using directive or an assembly reference?

Anyone knows how to set the reference path in unity?

many thanks

try adding your dll in assets/plugins folder

assuming your using windows, you may want to check your PATH environment variable ( search google ). to see if it contains the directory to the dll. Fixing this to contain that variable will help you but not standalones on other peoples computers.

Like johnboy007_2006 said if it is actually a dll missing issue this should fix it.

If that doesnt fix it, it might be that the dll is not a pure cli module and would only work with pro, Or it was compiled in a newer .net than unity supports.

I have added .dll in assets/plugins, then it says ‘Method contains unsupported native code’.

I think that in order to use NationalInstruments.DAQmx.dll, I have to also add
nidex32.lib
nidaq32.lib

How do I do that?

You can’t use native code in Unity Free or when targetting Webplayer.