12-23-2008 10:35 AM - edited 12-23-2008 10:41 AM
Hi,
I m here to asking about my current problem, waveform size in HSDIO PXI-6552.
If the script is simple or the frequency is lower (10MHz or 20MHz), everything appeared fine.
generate wfm0
generate wfm1 subset (0,4)
wfm0 = a file with 2 lines
wfm1 = a file with 4 lines
This will definitely run smoothly. No problem. But when the script is 100times more complex ( or even 1XXXXX lines of command in script, for my project),
the waveform sizes (a waveform with 2 lines will surely caused u error) or subset length of 4 (eg. generate wfm1 subset (0,4)) will definitely cause u trouble too.
So, I really need some1 who know what happen with the waveform size to explain the image attached below.
for the example above, wfm0 should be at least 32 lines in a single file ? wfm1's subset length should be at least 32 lines ?
Can some1 explain how about when the command together with the trigger command like
" if scripttrigger0
generate wfm2"
the wfm2 must be at least 128 lines ?
Really look ahead for those who familiar with the waveform stuff for HSDIO 6552. I have redo the waveform generation tool over and over again, really desperated with how's is the requirement behind. System ran smooth in 20MHz doesn't mean that u will meet the requirement (script and waveform size) when it run at 100MHz.
Merry Xmas and Thanks for viewing this post, hope some1 here will show the correct way for me ..
12-28-2008 10:01 PM - edited 12-28-2008 10:07 PM
Here I paste the common script and I label the minumum waveform size by a bracket.
Assume run on PXI-6552, at 100MHz
Please correct me If I m wrong. Thanks.
script upOnly
generate countUp(2)
end script
script upOnlySubset
generate countUp(2) subset (0, 2)
end script
script upOnlyWithMarkers
generate countUp(2) marker0 (0, 20)
end script
script upAllOnesDown
generate countUp(2)
generate allOnes(2)
generate countDown(2)
end script
script up3AllOnesDown
generate countUp(2)
repeat 3
generate
allOnes(32)
end repeat
generate countDown(2)
end script
script up3AllOnesDown
generate countUp(2)
repeat 3
generate wfm(32) subset (0, 32)
end repeat
generate countDown(2)
end script
script upOnesOrDown
generate countUp(2)
if scripttrigger0 then
generate
allOnes(2)
else
generate
countDown(2)
end else
end script
script upAllOnesUntilTrigDown
generate countUp(2)
repeat until scripttrigger0
generate
allOnes(32)
end repeat
generate countDown(2)
end script
12-28-2008 10:01 PM - edited 12-28-2008 10:11 PM
script upThenUpAndDownForever
generate countUp(2)
repeat forever
generate countUpAndDown(32)
end repeat
end script
script upThenUpAndDownForever
generate countUp(2)
repeat forever
generate countUpAndDown(32) subset (0, 32)
end repeat
end script
script upWaitAllZerosDown
generate countUp(2)
wait until scripttrigger0
generate allZeros(2)
generate countDown(2)
end script
or
script upWaitAllZerosDown
generate countUp(2)
clear scripttrigger0
wait until scripttrigger0
generate allZeros(2)
generate countDown(2)
end script
script upWait32Down
generate countUp(2)
wait 32
generate countDown(2)
end script
script stepThroughUpAllZerosDown
repeat forever
generate
countUp(128) subset (0,128)
clear
scripttrigger0
wait
until scripttrigger0
generate
allZeros(128)
clear
scripttrigger0
wait
until scripttrigger0
generate
countDown(128)
clear
scripttrigger0
wait
until scripttrigger0
end repeat
end script
script burstThroughUpDownThenZerosOnes
repeat forever
repeat
until scripttrigger0
generate countUp(512)
generate countDown(512) subset (0,512)
end
repeat
repeat
until scripttrigger0
generate allZeros(512)
generate allOnes(512)
end
repeat
end repeat
end script
*My assumption is (from try and failure experience) , subset length must be minimum length of the waveform sizes.
I need a confirmation, whether it is right or wrong. Please correct me. Thanks.
01-05-2009 01:37 AM