AMarks95
Member
Hello all,
I'm using a 5069-L330ER in a project and I need to essentially capture some data that will be shown as a trend on a screen. The data to be captured is the amp draw and voltage on the motor during startup.
I'm thinking I could use a 60ms periodic task with a FIFO to fill a 1500 element array, triggered by our 'call to run' that would essentially store 90 seconds of data after that call to run, and then stop collecting when that FIFO is full.
Then, once the motor is no longer called, that array is moved into a 'historical' array - of which there would be 5 to store the last 5 starts, and the FIFO reset for the next start.
Has anybody done something similar, or have some other suggestion for a better approach?
TIA
I'm using a 5069-L330ER in a project and I need to essentially capture some data that will be shown as a trend on a screen. The data to be captured is the amp draw and voltage on the motor during startup.
I'm thinking I could use a 60ms periodic task with a FIFO to fill a 1500 element array, triggered by our 'call to run' that would essentially store 90 seconds of data after that call to run, and then stop collecting when that FIFO is full.
Then, once the motor is no longer called, that array is moved into a 'historical' array - of which there would be 5 to store the last 5 starts, and the FIFO reset for the next start.
Has anybody done something similar, or have some other suggestion for a better approach?
TIA