From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-13-2006 07:36 AM
07-13-2006 07:57 AM
I would need to add that the way the software is written related to the Dev devices as shown below:
For the input
myTaskJ12.DIChannels.CreateChannel("Dev1/port0/line0:7", "J12",ChannelLineGrouping.OneChannelForAllLines);
readDataJ12 = myDigitalReaderJ12.ReadSingleSampleMultiLine();
as well as for the output
try
{
using (Task digitalWriteTask = new Task())
{
// Create an Digital Output channel and name it.
digitalWriteTask.DOChannels.CreateChannel("Dev1/port2/line3", "LedJ1", ChannelLineGrouping.OneChannelForEachLine);
DigitalSingleChannelWriter writer = new DigitalSingleChannelWriter(digitalWriteTask.Stream);
writer.WriteSingleSampleSingleLine(true, !boAff);
}
}
catch
{
}
So basically, how do I get rid of this Devx, so the software always read whatever device is present? I would prefer to do this procedure automatically instead of renaming the devices with MAX
Terry,
07-17-2006 02:08 AM
Hi,
Try the DAQsystem.devices property out of the NationalInstruments.DAQmx class library to get a list of installed devices on the system. At least you will get the information which devices are available and you can define the appropriate Task names.
I hope this helps.
Bets Regards,
Evrem
NI Switzerland