engwei
2008-07-17 04:40:06 UTC
Hi All,
I m newbies in Labview programming, as attached code will show it.
I m now using single 6552 HSDIO card to do some function like: Data Delay, Voltage Config,Load Wfm,Script Trigger, Immediate Stop at Nth Error, Fetch Error Location and Bits. (code attached)
I m gona implement it in multicard mode.
After refer to the example (TClk Data Gen and Acq), I m start worry about the Load Wfm, Script Trigger, Stop ASAP at Nth Error detected, Fetch Error location and bits.
For some identical part, a simple FOR loop will do.
My Question:
1. So, I plan to keep the data delay and voltage config for each card in array. Then they will have different delay or voltage level according to the array. Let say,
array[0] = 10ns, array[1] = 5ns .. by this way, I can config different delay for different card. I can do the same thing to have different voltage level for different card. Am I right ?
2. About the wfm files, I m confuse about where the waveform files gona loaded. a "niHSDIO Write Named Waveform" subvi will do ?
3. Let say, 1st HSDIO card generation channel (0-14), 2nd HSDIO card generation channel = (5-19), waveform of 30 channel will loaded properly to these cards ? I need to confirm this because I will need this flexibility in debugging.
4. In the code attached, I always check the error samples detected. If error samples more than 0, then it will stop as soon as possible. Can some1 give me some idea on how to implement it in multicard mode ?
5. About the script trigger. I put a while loop after "niHSDIO Initiate" vi, so I will always look for user input. If I need it in multicard mode, so I just put it after the "niTClk Initiate" vi ?
6. About the fetch error location and bits for multicard mode, I only need to put a "niHSDIO HWC Fetch Sample Errors (U32)" vi to fetch the error samples ? The error location will automatically incremented at the output ?
Sorry for the damn long question. Please help for my doubt above .. Your help will be much appreciated ..Thanks ..
I m newbies in Labview programming, as attached code will show it.
I m now using single 6552 HSDIO card to do some function like: Data Delay, Voltage Config,Load Wfm,Script Trigger, Immediate Stop at Nth Error, Fetch Error Location and Bits. (code attached)
I m gona implement it in multicard mode.
After refer to the example (TClk Data Gen and Acq), I m start worry about the Load Wfm, Script Trigger, Stop ASAP at Nth Error detected, Fetch Error location and bits.
For some identical part, a simple FOR loop will do.
My Question:
1. So, I plan to keep the data delay and voltage config for each card in array. Then they will have different delay or voltage level according to the array. Let say,
array[0] = 10ns, array[1] = 5ns .. by this way, I can config different delay for different card. I can do the same thing to have different voltage level for different card. Am I right ?
2. About the wfm files, I m confuse about where the waveform files gona loaded. a "niHSDIO Write Named Waveform" subvi will do ?
3. Let say, 1st HSDIO card generation channel (0-14), 2nd HSDIO card generation channel = (5-19), waveform of 30 channel will loaded properly to these cards ? I need to confirm this because I will need this flexibility in debugging.
4. In the code attached, I always check the error samples detected. If error samples more than 0, then it will stop as soon as possible. Can some1 give me some idea on how to implement it in multicard mode ?
5. About the script trigger. I put a while loop after "niHSDIO Initiate" vi, so I will always look for user input. If I need it in multicard mode, so I just put it after the "niTClk Initiate" vi ?
6. About the fetch error location and bits for multicard mode, I only need to put a "niHSDIO HWC Fetch Sample Errors (U32)" vi to fetch the error samples ? The error location will automatically incremented at the output ?
Sorry for the damn long question. Please help for my doubt above .. Your help will be much appreciated ..Thanks ..