04-28-2021 08:55 PM
Sequences are HW-controlled and deterministic so every step must be stored in the local memory. For both regular and advanced sequences using the PXIe-4139, the maximum number of steps is not defined in the data sheet. Maybe I missed it but I'm pretty sure it isn't there. I searched for words like "step" and "memory" to no avail.
Anyways, what is the maximum number of steps I can add to a sequence regular sequence? Does it change when advanced sequences are used? Is it based on the the number of properties?
Thanks in advance.
Solved! Go to Solution.
04-28-2021 09:43 PM - edited 04-28-2021 09:44 PM
Recently we had the same problem. We tried to load over 10000 steps but an error returned.
As you know, there is no reference about maximum memory size.
Fortunately (but very tedious...), the error told us how much sequences could we load.
So my proposal is, run VI with large steps... Sorry for inconvenience...
04-29-2021 11:21 AM
> Sequences are HW-controlled and deterministic so every step must be stored in the local memory.
If by "local memory" you mean "memory on the instrument", then you are incorrect. The NI-DCPower driver will compile the sequence steps (both regular and advanced) into the instructions that the hardware executes and streams them to the instrument as it runs.
A single step can result in wildly different number of these low-level instructions based on several factors such as: how many settings are being modified in the step, whether there is a range change involved, what state the hardware is in before the new step is executed, etc.
For these reasons, it doesn't make sense for there to be a "maximum number of steps" in the data sheet.
The maximum number of steps is limited by host (PC) memory. How much physical RAM do you have? How much physical RAM is in use and page-locked? Are you running in a 32-bit or 64-bit process?
Good luck!
04-29-2021 01:55 PM
Marcos,
Thank you for the detailed reply. I got the deterministic idea from this community post:
Configuring Advanced Sequencing - NI Community
Looks like I read too much into it.
04-29-2021 02:00 PM
> Sequences are HW-controlled and deterministic
This part is true.
> so every step must be stored in the local memory.
This part is false. They are streamed to the instrument's memory where there is a buffer. As long as this buffer never underflows then all is good! The driver handles underflow conditions but they would only occur under extraordinary loads.