07-01-2009 04:14 PM
Hello,
I'm using Measurement Studio 8.1.1 with C# Microsoft Visual Studio 2003 .NET. I'd like to perform a DAQmx Reset Device from within C#, how do I do this? I found the following online: int32 DAQmxResetDevice (const char deviceName[]) , but this doesn't seem to be available from with in C#?
Thanks,
Luke
07-07-2009 01:17 PM
Hi Luke,
If you look at the DAQmx .NET 1.1 Framework Help (Start»All Programs»National Instruments»NI-DAQ»Text-Based Support) you will find a Reset method as part of the Device class. In C# you should be able to use the method in a way similiar to this:
Device dev = DaqSystem.Local.LoadDevice("dev1");
dev.Reset();