LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Index array function

Hello!

 

I want to find out if there is a limit for Index Array function maximum number of indexes?

 

 

Regards,

Evita

0 Kudos
Message 1 of 15
(4,542 Views)

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 15
(4,535 Views)

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 

0 Kudos
Message 3 of 15
(4,529 Views)

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!!!

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7
0 Kudos
Message 4 of 15
(4,507 Views)

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 5 of 15
(4,502 Views)

This will be a machine generated code and implemented in FPGA where cycles and loops should be avoided. 

0 Kudos
Message 6 of 15
(4,494 Views)

@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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 7 of 15
(4,483 Views)

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. 

 

0 Kudos
Message 8 of 15
(4,475 Views)

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.

IndexSize.jpg

 

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

0 Kudos
Message 9 of 15
(4,411 Views)

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.

 

 

0 Kudos
Message 10 of 15
(4,396 Views)