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.

Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

how to generate 2 rectangular signals with pxi 6221

Hi everyone,

 following problem. I try to generate two rectangular signals with adjustable frequencies. The first one is working fine, but when creating the second signal, I get following error:

 

DAQmx Write (Digital 1D U8 1Chan NSamp).vi:2410002<append>

<B>Property: </B>SampClk.Src

<B>Property: </B>SampClk.ActiveEdge

<B>Source Device: </B>Dev6

<B>Source Terminal: </B>Ctr1InternalOutput

 

<B>Required Resources in Use by</B>

<B>Task Name: </B>_unnamedTask<1>

<B>Source Device: </B>Dev6

<B>Source Terminal: </B>Ctr0InternalOutput

<B>Destination Device: </B>Dev6

<B>Destination Terminal: </B>do/SampleClock

 

<B>Task Name: </B>_unnamedTask<3>

 

How can I fix this problem? Or do you have other ideas to realize this example?

VI is included.

 

Kind regards

Jens

 

0 Kudos
Message 1 of 3
(4,921 Views)

 No ideas?

0 Kudos
Message 2 of 3
(4,891 Views)

Hi everyone,

 

I found my solution. I used two counters to create those pulse signals and to adjust the frequency.

 

Here is my solution, it works fine for me.

 

 

0 Kudos
Message 3 of 3
(4,885 Views)