Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Querying the SoftMotion table size programmatically

Hello,

 

Is there a way to obtain the size of a table buffer (as in the total capacity, not the "Space Available") at run-time?. I'd like to benchmark different buffer sizes + sample rates, and I'd like my timers to adapt whenever I change one of the quantities.

 

Alternatively, I could create a control and change it manually whenever I change the buffer size, but it would be nice to have it automated 🙂

 

 

Thanks!

Certified LabVIEW Developer
0 Kudos
Message 1 of 5
(5,884 Views)

Hey,

 

 

You can use the configure table dialog box to pre-define an empty table buffer with the desired amount of points.  Also you can dynamically update the table using the update points method.

Regards,
Isaac S.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(5,863 Views)

Thanks for replying, Isaac!

 

After I use the "configure table" dialog box to pre-define the number of points in my buffer, is there a way to get this pre-defined number at run-time? (e.g. is there a read-only Property Node that returns the number of points that the buffer can hold?)

Certified LabVIEW Developer
0 Kudos
Message 3 of 5
(5,855 Views)

Hmmm I doesn't seem like there's a property with that functionality, however I'll have to dig further in the matter.

Regards,
Isaac S.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(5,844 Views)

Thanks for looking into it. Please let me know if you find something!

Certified LabVIEW Developer
0 Kudos
Message 5 of 5
(5,833 Views)