01-17-2008 06:27 AM
01-17-2008 06:35 AM
Hi Rodnebb,
you can monitor the Array change in an Event Structure and delete inserted items or show a warning to the operator.
Mike
01-17-2008 06:38 AM - edited 01-17-2008 06:42 AM
01-17-2008 06:48 AM
Ok, but no direct, hard way of hindering data entry, just a lot of workarounds?
I can check number of elements - or use array subset, good suggestion - but this isn't very elegant.... And, how do I block the user from seeing empty elements? I need to use scroll bar and the index to show the user which element he's working on. (I have one array element pr. device that I control)
01-17-2008 06:55 AM - edited 01-17-2008 06:56 AM
Hi
yes i think there is no direct way to block insert data. But i think the way with an event structre is very elegant. To not show empty elements you can size the array to the size of number of elements. there exist a property for it.
Mike
01-17-2008 07:01 AM
Hi,
In this thread i limited the number of elements displayed for a predefined value, but im sure it could be used for a variable number of elements with a little more coding.
http://forums.ni.com/ni/board/message?board.id=170&message.id=265806#M265806
Craig
01-17-2008 07:58 AM
Great Craig, this looks like it.
Another question - now that I have this fancy code that manipulates the arrays, how do I get it off my block diagram? I'll use this code for several arrays and I'd like to put it into a sub-vi. Any suggestions how this is best done? Shall I just send the references down, or is there a better way?
01-17-2008 08:13 AM
01-17-2008 08:22 AM
01-17-2008 10:38 AM