Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Cant read the writted value in DOChannel

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
0 Kudos
Message 1 of 2
(3,353 Views)

Hi all,

if you are interested in this topic, the same question was answered here:

http://forums.ni.com/ni/board/message?board.id=70&message.id=8850

Clara

0 Kudos
Message 2 of 2
(3,345 Views)