Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Reset Device in C#

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

0 Kudos
Message 1 of 2
(4,951 Views)

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();

Message 2 of 2
(4,917 Views)