Hi all,
(I have created a simulated device PCI-6503 for test the following lines, and im using VS 2005 C#).
Im having problems reading a value that i have modified before in a DOChannel. It seems the value doesnt change. I have tried changing a lonely line, multiple lines, a port, multiple ports...everything. But still not succes and be able to read the modified value of a line/port.Can anyone give me a tip or help me with this?
Task tarea = new Task();
tarea.DOChannels.CreateChannel("Device1/port0/line0", "port0",
ChannelLineGrouping.OneChannelForAllLines);
DigitalSingleChannelWriter writer = new DigitalSingleChannelWriter(tarea.Stream);
writer.WriteSingleSampleSingleLine(true, true);
DigitalSingleChannelReader reader = new DigitalSingleChannelReader(tarea.Stream);
bool data =reader.ReadSingleSampleSingleLine();
hexData.Text = data.ToString();
Thanks in advance,
Ruzz