04-07-2021 02:41 PM
I have a NI 4139 card and I wish to use the sequencing function. However I want to use a trigger input to iterate through the sequence rather than running the entire sequence 1 time. The sequence is an array of voltages and timing. I am able to trigger the entire sequence, but not step through it.
Does anyone have experience using an external trigger to iterate through a DC Power sequence. I suspect I am missing some simple configuration.
Solved! Go to Solution.
04-07-2021 09:28 PM
It looks like you can achieve it with source trigger.
The source unit waits for the source trigger before sourcing in each step (if configured for a source trigger) excluding the first step.
https://zone.ni.com/reference/en-XX/help/370736U-01/ni_dc_power_supplies_help/sequencing/
04-08-2021 02:09 PM
Thank you Santosh.
Unfortunately is still does the entire sequence, rather than allowing me to step through it.
When I try to use a source trigger, I get an error stating the SMU is not waiting for a source trigger after I issue one.
When I use a Start trigger, the SMU Sequence runs and completes; It does not step
04-08-2021 02:19 PM
Would you be able to share the code for review?
https://zone.ni.com/reference/en-XX/help/370736U-01/ni_dc_power_supplies_help/configuringsequence/
This link also confirms that Source Trigger should work and example provided is what you are trying to achieve
04-08-2021 02:52 PM
Santhosh,
thank you for your kid offer to review this code. I've stripped it down to the bare essentials and ran it to make sure it works. When running this code is runs the entire sequence. My goal is to have a trigger (simulated here in the for loop) that forces the SMU to step through each iteration of the sequence.
04-12-2021 03:52 PM
Please try the attached VI (in LV2013). I did not have an actual SMU to verify the functionality, based on my understanding, the implementation should work as expected.
If you're using LV older than 2018, I would suggest replacing the wait function within the loop with a delay function.
04-14-2021 10:39 AM
Update: I validated the code I shared earlier with a 4139 instrument and it works as expected. So, this should solve your requirement.
04-14-2021 11:14 AM
Thank you so very much!!!