05-19-2007 07:18 PM
05-21-2007 11:50 AM
script myScript1
Repeat 20
Generate WfmA marker0(0) marker1(1024)
Repeat 500
Generate WfmB
end repeat
end repeat
end script
script myScript1
Repeat 20
Generate WfmA marker0(0) marker1(1024)
Repeat 500
Generate WfmB
end repeat
Wait until scriptTrigger0
end repeat
end script
05-21-2007 12:24 PM
Juan,
Thanks for the reply. I am almost positive I tried this as first thing long ago, and got an error saying the device (PXI-6542) does not support two levels of repeat nesting. Will try again and verify. But I'm pretty sure that's why I originally put my start trigger in a loop.
Bill
05-21-2007 12:39 PM
Juan,
Yep, just tried doing what you suggested. I get an HSDIO error that says to unroll one of the repeat/end repeats, as the device allowed number of levels of nesting is 1.
Thanks anyway! It is a pain, this limitation. My workaround is to explicitly duplicate my statements in the script, and only start trigger once (no multiple initiate calls).
Bill
05-21-2007 01:05 PM - edited 05-21-2007 01:05 PM
script myScript1
Repeat forever
Generate WfmA marker0(0) marker1(1024)
Repeat 500
Generate WfmB
end repeat
Wait until scriptTrigger0
end repeat
end script
Message Edited by JuanCarlos on 05-21-2007 01:06 PM
05-21-2007 02:27 PM
Thanks Juan,
I may give this a shot. Right now I'm having trouble using TClk with a 6542 gen session, a 6542 acq session, and a 5122 session.
Bill