02-24-2012 07:10 AM
02-24-2012 08:40 AM
02-24-2012 09:43 AM
I would think that ListGetPtrToItem or ListGetDataPtr would address your problem, but the documentation clearly states that they are only valid until the list is modified, so they won't survive list manipulation. Moreover, the documentation for the latter states that "items are stored (in memory) contiguously in ascending order": it appears that manipulating the list alters this order so that getting a valid pointer is not possible unless you perform a new list search.
03-15-2012 03:10 AM
03-15-2012 05:19 AM
Guillaume Dargaud ha scritto:
Those functions are really handy. It's too bad that a lot of my code is not
in CVI but just standard C. I wish there were list functions in standard C.
Or source code from NI to recompile at willl... 😉
--
Guillaume Dargaud
http://www.gdargaud.net/
Code for toolbox instrument is available in <cvidir>\toolslib\toolbox: don't know if it is possible to recompile all or part of it for use under Linux OS.