Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform size HSDIO 6552 2 lines ? 4 lines ? 128 lines ?

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 .. 

 

 


Message Edited by engwei on 12-23-2008 10:41 AM
0 Kudos
Message 1 of 4
(2,438 Views)

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. 

Common Scripting Use Cases

Single Waveform

script upOnly
  generate countUp(2)

end script

Generating Waveform Subsets

script upOnlySubset
  generate countUp(2) subset (0, 2)
end script

Generating Waveforms with Markers

script upOnlyWithMarkers
  generate countUp(2) marker0 (0, 20)
end script

Sequence of Multiple Waveforms

script upAllOnesDown
    generate countUp(2)
    generate allOnes(2)
    generate countDown(2)
end script

Finite Repetition (N Times)

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

 

Conditional Branching — If/Then Else

script upOnesOrDown
    generate countUp(2)
    if scripttrigger0 then
        generate allOnes(2)
    else
        generate countDown(2)
    end else
end script

Conditional Repetition — Repeat until Trigger

script upAllOnesUntilTrigDown
    generate countUp(2)
    repeat until scripttrigger0
        generate allOnes(32)
    end repeat
generate countDown(2)
end script

Message Edited by engwei on 12-28-2008 10:07 PM
0 Kudos
Message 2 of 4
(2,404 Views)

Continuous Generation — Repeat Forever

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

 

Waiting for Triggers

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

Finite Wait

script upWait32Down
    generate countUp(2)
    wait 32
    generate countDown(2)
end script

Stepping Through Multiple Waveforms


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

 

 

Bursting through Multiple Waveforms

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.

 

 

Message Edited by engwei on 12-28-2008 10:11 PM
0 Kudos
Message 3 of 4
(2,403 Views)
HellOooo .. Please leave some comment here if you have some idea about it. THanks.
0 Kudos
Message 4 of 4
(2,347 Views)