PDA

View Full Version : Max Number of Repeating Elements



dsmes
December 7th, 2005, 06:19 PM
Ben,
It looks like the maximum number of elements in a LOOP frame is limited to 100. When I open a ccf created in Tonto with 800 sliders in NR Designer, I get an "unhandled exception" error. It says... " '800' is not a valid value for 'Value'. 'Value' shoult be between 'Minimum' and 'Maximum'." I couldn't understand this error until I created a new loop frame in Designer and entered 800 elements. After I clicked OK, only 100 appeared. Open the loop frame again and sure enough, 100 is all it will take. Hence the error.

Could this limit be increased to, say, 2048 or so? I know it may seem strange to have so many repeating elements, but I use repeating sliders to graph data. Each of the 800 slider elements represents a point on the "x" axis and the slider value represents the "y" axis. Crude but effective!

Ben S
December 7th, 2005, 07:12 PM
Is your target device Windows or PPC?

Have you considered using an embedded SVG or Flash movie to do this? This sounds like performance may be a problem using so many looped elements.

dsmes
December 8th, 2005, 06:25 PM
I only do this on a Windows client. Even though there are about 5000 NR and Lua variables (each) being updated every time new data is available, performance doesn't seem to be an issue. I'm presently graphing Weather data so the code only runs once every two minutes.

I've looked (and drooled) over the SVG examples posted but can't quite figure out how to integrate it. And Flash movies are new to me... I must have missed that post.

I should also ask (because I can't get this far) if there is a limit on how many slider positions can exist. Can a slider take on values from 0 to 1000 for example? Tonto doesn't seem to mind, I'm just wondering about NR Designer.

Ben S
December 13th, 2005, 04:54 PM
Hi dsmes - There shouldn't be a limit as to # of values, 0 to 1000 is definitely possible (that's the limit with the sliders used for music position).

mhwlng
December 14th, 2005, 12:41 AM
If you just need charts in win32, then you could also use the line chart functionality mentioned here :

(picture is at bottom of thread)

http://www.promixis.com/phpBB2/viewtopic.php?t=8605&postdays=0&postorder=asc&start=150

note that it's not available yet, it will be released as soon as a new NR version is released..

p.s. dsmes: your feature request for pie charts is also included

Marcel

dsmes
December 18th, 2005, 09:16 PM
Hi dsmes - There shouldn't be a limit as to # of values, 0 to 1000 is definitely possible (that's the limit with the sliders used for music position).
Ben, The limit is the number of sliders allowed in a loop frame (even though the error message says "value"). Screen-shot below is from the ccf I e-mailed earlier today.

Ben S
December 19th, 2005, 06:08 PM
Yes, you are correct. Min is 1, max is 100. Were you able to use Marcel's charting for this?

dsmes
December 19th, 2005, 08:19 PM
Yes, you are correct. Min is 1, max is 1.
I don't understand Ben. Are you saying there is something wrong with my syntax above? I tried to recreate this loop frame in NRD and it would not accept more then 100 columns (the first parameter after "LOOP"). I would be very appreciative if this limit could be increased.

No, I have not had a chance to experiment and understand how Marcel's charting works. What would be especially challanging is to scale the chart such that the start & end of a chart's graph lands exactly on the correct pixels such that it matches the movement of the NR elements being positioned (in my ccf). I'm sure it can b done... I just need some working examples to go by. In the meantime, I'm proud to have found a way to make multiple sliders produce an accurate graph whose resolution equals screen resolution. The problem, though, is that NRD cannot be used to edit them (because of the 100 column limitation).

Ben S
December 20th, 2005, 04:09 AM
Sorry, I meant 1 to 100.

What # do you need? 1000? I'll see what I can do.

dsmes
December 22nd, 2005, 08:23 PM
Thanks Ben. I hope I'm not being too gready, but I can easily see using 1024 or 1600 on a larger monitor so maybe 2000 or so would be a good limit.

Ben S
December 24th, 2005, 09:25 AM
Okay. I'll set the max to 2000.