Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

copy digital signal

Hi
I'm using NI-DAQ and just want to copy a TTL signal (about 30 hz).
I know how to measure the frequency and set an output pulse train. I want a copy of the signal, so that I can delay it.
 
kind regards
0 Kudos
Message 1 of 3
(3,544 Views)

hi,

i want to do the following but i get an exception (see attachment). What am I doing wrong?

 

private

void startButton_Click(object sender, System.EventArgs e)

{

measureTask = new Task();

CIChannel channelIn = measureTask.CIChannels.CreateCountEdgesChannel(counterComboBox.Text, "Count Edges", edgeType, Convert.ToInt64(initialCountTextBox.Text), countDirection);

measureTask.CounterOutput +=

new CounterOutputEventHandler(OutputMethod);

myCounterReader =

new CounterReader(measureTask.Stream);

measureTask.Start();

}

 

private void OutputMethod(object a, CounterOutputEventArgs e)

{

//do something

}

0 Kudos
Message 2 of 3
(3,534 Views)
Hello Ghannes,

I'm not entirely sure what you are trying to achieve.

In your first post, you wrote that you wanted to read a TTL signal and write it back with a delay.

The code in your second post suggests you want to trigger an event for every edge of your signal.

Or are these two post unrelated?

Thank you,
Johannes
0 Kudos
Message 3 of 3
(3,510 Views)