billmileski
2007-05-20 00:40:07 UTC
Hi,
I am generating a digital pattern with a PXI-6542 that uses scripting to generate one pattern followed by 500+ repeats of another pattern. I used a software start trigger to begin the generation. But now I need to tell the 6542 to do this whole pattern some number of times, i.e. 2 to 20. Scripting won't support this additional nesting. I tried using a for loop: In the for loop "send software start trigger" is followed by a while loop that checks for generation complete before the next iteration. This resulted in only one triggering of the generation. I got it working by putting the HSDIO Initiate VI inside of the for loop, but that doesn't seem right (additional delay? hiccupping in the timebase?). Is it a bad idea to do it this way and is another solution obvious to anyone out there? Do I need to send advance triggers after the first start trigger?
I also have two marker events generated near the start of the first pattern that I need to retain (they are exported to start a high speed digitizer, which will also need to trigger as many times as the generation).
Thank you for any help,
Bill M
I am generating a digital pattern with a PXI-6542 that uses scripting to generate one pattern followed by 500+ repeats of another pattern. I used a software start trigger to begin the generation. But now I need to tell the 6542 to do this whole pattern some number of times, i.e. 2 to 20. Scripting won't support this additional nesting. I tried using a for loop: In the for loop "send software start trigger" is followed by a while loop that checks for generation complete before the next iteration. This resulted in only one triggering of the generation. I got it working by putting the HSDIO Initiate VI inside of the for loop, but that doesn't seem right (additional delay? hiccupping in the timebase?). Is it a bad idea to do it this way and is another solution obvious to anyone out there? Do I need to send advance triggers after the first start trigger?
I also have two marker events generated near the start of the first pattern that I need to retain (they are exported to start a high speed digitizer, which will also need to trigger as many times as the generation).
Thank you for any help,
Bill M