06-18-2008 07:58 AM
Hi, muks,
If you familiar with C programming, then do it with simple function, like this:
then call DLL:
This code above executes within 30-40 ms (depends from used PC and compiler, of course) for 1500000 elemenths. There is no way do to it faster in LabVIEW. In additional, this is good exercise - how to call external code from LabVIEW (for example, you can transfer array by handle instead of pointer, and resize array inside of the DLL, etc)
best regards,
Andrey.
06-18-2008 08:15 AM
Hi muks,
attached is the vi to remove elements without conversion to string.
Hope it helps.
Mike
06-18-2008 09:26 AM
06-18-2008 09:41 AM
Hi muks,
here the 8.0 version.
Mike
06-18-2008 09:43 AM
06-19-2008 02:19 AM - edited 06-19-2008 02:20 AM
Hello Muks,
I post this solution just because I like the indexing scheme of the MathScript node . But (on my PC) this code is about 30 times slower than Mikes solution .
06-19-2008 04:09 AM
06-19-2008 08:04 AM