01-28-2020 06:35 PM - edited 01-28-2020 06:35 PM
Hello,
I'm just getting familiar with HW-timed sequences using NIDCPower to take measurements on a PXIe-4141 in order to avoid the overhead of using SW loops.
From what I understand, I need to do the following steps:
However, I would like to stop the HW sequence when a measurement threshold value has been reached (before the end of the sequence). Is it possible to create a trigger event that would stop the HW-sequence based on the measurement output? I know this can be done in SW by breaking out of a for loop, but I want to take advantage of HW-timed sequence approach.
Thank you in advance.
01-28-2020 06:55 PM
Hi AJ3D, I struggled with the same question previously. But as my conclusion, No.
Once we begin HW-timed sequence, there is no feature which allows measurement-based aborting.
I visited NI office and tested with SE but we couldn't find a solution. Finally, we gave up to implement the feature.
01-28-2020 07:01 PM
Hi Emboar,
That's disappointing.
What about creating an advanced sequence where the sequence only advances if the measurement is under a certain value? Is that possible?
What approach did you end up settling for?
Thanks
01-28-2020 07:22 PM
Your application requires following sequence for instance.
Case Number | Source Type | Voltage | Current Limit | Lower | Upper |
---|---|---|---|---|---|
1 | Voltage | 1.5V | 100mA | 0.5 | 1.5 |
2 | Current | 2V | 10mA | 0mA | 10mA |
3 | Voltage | 5V | 10mA | 3 | 5 |
Let's assume that at case2, the measurement was 20mA and the test was fail,
you would like to abort the sequence.
But unfortunately you cannot. You just only know the result when you call Read or Fetch function on VI,
it's SW based timing. Then, you can compare the result with limitation values.
Such as FGEN device, scripting feature would be a solution but SMU doesn't have it.
On our project, we didn't care each test did pass or fail, ran all sequence anyway.
And as final operation, compared all results with limitation values.