Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Exception when creating a new Task -> Device is not available for routing...

Hi,
I am realy new in this topic and I have searched for solutions of my problem. Perhaps it is no problem. When I star to create a analog input task I get a exception. This exception also occurs when I start some samples from NI. Maybe someone can help me with my problem.

---------------------------------------------------------------------------
Here is what the exception says:

Device not available for routing. It is possible that the device needs to be reset or that the device is being reset.

Task Name: aiTask

Status Code: -89130


---------------------------------------------------------------------------
Here is my code snippet:

if ( !taskRunning ) {
try {
//Create a new task
this.aiTask = new Task( "aiTask" );

//Create virtual channel(s)
foreach ( clsSignal signal in this.AIChannels ) {
this.aiTask.AIChannels.CreateVoltageChannel( "Dev1/ai" + signal.MvarBoardAddress, signal.Name, AITerminalConfiguration.Differential, signal.MvarLowerLimit, signal.MvarUpperLimit, AIVoltageUnits.Volts );
}

//Verify the Task
this.aiTask.Control( TaskAction.Verify );

this.analogInReader = new AnalogMultiChannelReader( aiTask.Stream );
} catch ( DaqException exception ) {
MessageBox.Show( exception.Message );
this.taskRunning = false;
aiTask.Dispose();
}
}
---------------------------------------------------------------------------



Thank you for your help
0 Kudos
Message 1 of 2
(3,171 Views)
Ok that was too easy, sorry that I have soiled this forum with this stupid question. On my new development system the card was installed under the name "dev3" and not "dev1"! So I have only changed this silly thing and 'plobs' everything works fine...
0 Kudos
Message 2 of 2
(3,161 Views)