LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write static clock and step function to HSDIO

Highlighted

I want to write a static clock to HSDIO, when running the code, the clock will run until I stop the code. Also, I want to create a step function, at the beginning, the signal is '0', and there is a transition after some time, the signal will be always '1' until I stop the code. Thank you.

0 Kudos
Message 1 of 3
(1,235 Views)
Highlighted

Have you considered doing this with scripting? This is a good resource for getting started:

http://www.ni.com/white-paper/7285/en/

 

I'm thinking you could do this with two waveforms. Something like this:

 

wfmA:

Clk 0 1

Step 0 0

 

wfmB:

Clk 0 1

Step 1 1

 

script ClkandStep
    repeat until scripttrigger0
        generate wfmA
    end repeat
repeat forever wfmB
end script

 

Just keep in mind that Clk would output at half the rate that you clock the output waveform at.

Dale S.
RF Systems Engineer - NI
0 Kudos
Message 2 of 3
(1,174 Views)
Highlighted

Thank you for your help.

0 Kudos
Message 3 of 3
(1,165 Views)