I am running my project and got this exception that says "Another task exist with the same name"..There is no other task with this name. I have this task that has 3 AI tasks in it. Why do I get the exception?? Thank you
namespace ProjectGUI
{
using System;
using NationalInstruments.DAQmx;
public class LoadCellTask : Task
{
public LoadCellTask() :
base("LoadCellTask")
{
this.Configure(); //<<<---An error occur here during run saying another task already exist
}
public virtual void Configure()
{
this.AIChannels.CreateVoltageChannel("Dev1/ai4", "Voltage_On_X_Load", AITerminalConfiguration.Differential, -5, 5, AIVoltageUnits.Volts);
this.AIChannels.CreateVoltageChannel("Dev1/ai5", "Voltage_On_Y_Load", AITerminalConfiguration.Differential, -5, 5, AIVoltageUnits.Volts);
this.AIChannels.CreateVoltageChannel("Dev1/ai6", "Voltage_On_Z_Load", AITerminalConfiguration.Differential, -5, 5, AIVoltageUnits.Volts);
this.Timing.ConfigureSampleClock("", 1000, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples);
}
}
}