10-20-2015 07:10 AM
Hello!
I want to find out if there is a limit for Index Array function maximum number of indexes?
Regards,
Evita
10-20-2015 07:18 AM
Evita,
you want to extend the index array node to its maximum?
Honestly, i don't know if there is a limit (maybe 65k?) but i know that having more than somewhere around 10-20 inputs gets unreadable.
So for sake of readability: Don't go for that!
What is the exact purpose of this question?
thanks,
Norbert
10-20-2015 07:22 AM
Norbet,
I don't care if it is not readable, the code will be processed by machine.
I want to generate code where Index Array function has 1024 index inputs.
Is that possible?
Evita
10-20-2015 07:35 AM
I agree with Norbert_B. Many things are possible with LabVIEW but that doesn't mean that they are expedient. I recommend that you look at another solution maybe using a loop with autoindexing to go through the data. Best wishes!!!
10-20-2015 07:37 AM
Evita,
i guess so. Never tried it before because it doesnt make sense, even not on FPGA....
And to state a quote:
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." – Martin Golding
Norbert
10-20-2015 07:41 AM
This will be a machine generated code and implemented in FPGA where cycles and loops should be avoided.
10-20-2015 07:47 AM
@VUC wrote:
[...] in FPGA where cycles and loops should be avoided.
I must confess that i am confused. Why should loops be avoided on FPGA? Who says so?
Also, i take it that you are talking about tools you implement which use VI Scripting to create FPGA VIs. Is that correct?
Norbert
10-20-2015 07:56 AM
It isn't effective way to use loops on FPGA since the advantage of FPGA is parallel code processing.
Yes, I am using LabVIEW scripting functions to generate LabVIEW FPGA code.
10-20-2015 11:38 AM
Hello VUC,
Your first question doesn't clearly state what your problem is. But I will try to answer anyway.
1. I want to find out if there is a limit for Index Array function maximum number of indexes? Yes if you refer to the maximum number of elments an array can hold (the array size). The indexes data type is U32 which leads to a possible maximum array size of 2^32 = 4294976295.
2. Regarding your comment about loops in FPGA programming: You can definitly have loops in FPGA as far as you meet your timing constraints for the process you want to implement.
Michel
10-20-2015 11:59 AM
I can't generate Index array with more than 256 index inputs. Therefore I have come to conclusion that there could be a size limit from LabVIEW side or a mistake in my generation code.