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