LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"HELP: How would I collect CAN packets in a circular array?"

I need to collect CAN packets in the circular array, and when a trigger is hit, I need to be able to provide say 500 data packets before the trigger, and 500 after... how would i go about doing that? Any sample VI's out there?
0 Kudos
Message 1 of 3
(2,576 Views)
Just as any other data, put it in an array of 1000 elements, e.g. in a subvi that has local storage in a shiftregister, and fill it up until you get the trigger. Tell that vi that the trigger happened and let it fill up until 500 new datapoints are buffered.
This subvi needs to have several modes like init, start, trigger, and read. Easy to do with a statemachine approach.
If you need more info write to me directly
greetings from the Netherlands
Message 2 of 3
(2,576 Views)
Thankyou, that helped make things a litle clearer for me.
0 Kudos
Message 3 of 3
(2,576 Views)