Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with scripted waveform generation HSDIO

Hello all,

I am using a PXIe 6541 card to dynamically generate a sequence of waveforms using a script. With a clock frequency of 10 MHz, my test script looks something like

 

script myScript

generate waveform0
Repeat 400
generate waveform1
end repeat
Repeat 400
generate waveform2
end repeat
Repeat 400
generate waveform3
end repeat
Repeat 200
generate waveform4
end repeat
Repeat forever
generate waveform5
end repeat

end script

 

when I run this script, I get the output that I expect from the programmed waveforms and repetition times.  Each waveform is an array of 4 samples that changes the state of one channel to pulse it on and off. However, when I increase the loop times by a factor of 25, I only see one pulse, as if the full script is not being generated. The card should be able to handle this many repetitions, so I am not sure why it cannot output the script if I increase the number of times each waveform is repeated.

 

Many thanks,

Jimmy

0 Kudos
Message 1 of 2
(2,462 Views)

Hi Jimmy,

Why do you need "Repeat Forever"?

When you say you only see 1 pulse I assume you mean using a Oscilloscope. Could your scope setting be wrong for your 25 loop?

0 Kudos
Message 2 of 2
(2,380 Views)