Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Onboard programm question

I'm using contouring mode in my application. My routine is based on the C example 'Buffered Countouting (Rose).c' that comes with MAX. I'm considering to migrate this part of my application (the do-while loop that writes incrementaly to the buffer)to an onboard programm. The amount of data points that I have dosen't fit in the board's memory, so it must be written incrementaly.

My question is:
- Is it possible to use flex_write_buffer from an onboard programm and pass to it a "C pointer-like" to an array that contains my data points in the host's computer memory directly or using onboard variable ?

Thanks !
0 Kudos
Message 1 of 2
(3,125 Views)
Is it possible to use flex_write_buffer from an onboard programm and pass to it a "C pointer-like" to an array that contains my data points in the host's computer memory directly or using onboard variable ?

Unfortunately, no. In order to run contour moves using onboard programming, you must be able to load the entire buffer onto the memory.

Regards,
Colin C.
Applications Engineering
Colin Christofferson
Community Web Marketing
Blog
0 Kudos
Message 2 of 2
(3,125 Views)