11-15-2011 03:02 AM
In the following attached llb.There is readbusconfig.vi ..I couldn't understand the working and understanding of this vi..I am not able to understand the logic of this vi .Especially the function of the index array and array size blocks..Please somebody help me in this..Thanks
11-15-2011 03:11 AM
For me your LLB is even worse.... Can't convert vi because the version is to 'early' 🙂
11-15-2011 08:16 AM
@nust wrote:
In the following attached llb.There is readbusconfig.vi ..
There is no such VI in the library you posted.
11-15-2011 10:28 PM
the attached llb has been sent. but this can be opened in labview 7.1 . please help me in this for the things i have asked in my previous post.
11-16-2011 08:02 AM
I repeat: There is no VI called "readbusconfig" in the library you uploaded.
You said you wanted us to look at that VI. The VI isn't in the library. What exactly do you want me to help you with?
11-16-2011 08:37 AM
To reiterate smercurio, that VI isn't in your llb:
What there are, however; are a lot of sequence structures.
11-16-2011 08:58 AM
Hmm, did my answer disappear? However, the combination array size and index array if often used to get the last element of an array.
/Y
11-16-2011 09:03 AM
@Yamaeda wrote:
Hmm, did my answer disappear? However, the combination array size and index array if often used to get the last element of an array.
/Y
Only by developers that do not know the default behavior of delete from array- or those who want to be featured on the Rube-Goldbegrg thread
11-16-2011 11:18 AM
Hello!
It looks like you've received some good responses about the use of the Index Array and Array Size functions.
Array Size will output the actual size of any array it receives as input, which is useful for using the Index Array function. Index Array will output any element or group of elements from whatever array you wire to its input, depending on the index (starting position within the array) you provide. As mentioned in other responses, you can indeed use these functions together to identify the last element in an array, since they provide the effective location of the last element (size) and the means to read and identify it.
If you'd like more information on these or any functions within LabVIEW, I'd suggest using the "Context Help" function, if you haven't already (in any VI, help>>show context help).
As far as the readbusconfig.vi, you'll have to upload the actual VI instead of just the llb file (although I was able to examine the SETUP_PWATON VI that calls it).
If you have any other questions about array functions, we'll be happy to help. In the meantime, I'll look for that VI from you.
Best,
Will H | Applications Engineering | National Instruments
11-16-2011 11:20 AM
@Jeff Bohrer wrote:
Only by developers that do not know the default behavior of delete from array- or those who want to be featured on the Rube-Goldbegrg thread
I didn't say it was the only or best way, just a common one. 🙂 Could it be some inherited solution where delete from array wasn't possible until LV5 or similar?
/Y