LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating and scrolling multiple histograms

Hi
i'm working on a system that uses a VI to acquire data from brain research experiments, in which stimuli are shown to subjects during different trials.
For every trial, a histogram should be plot conatining the nr of braincell spikes per time; So 16trials should give 16 histograms, and 100 trials should give 100 hisograms, but I do not know on beforehand how many trials there will be. And obviousely, I cannot display 100 histograms at once, so I was thinking of something like a scrollable pane that automatically extends when histograms are added, but I have currently no clue on how this should be done with a minimum of cpu load..
Any suggestions are welcome!

Regards,
Stijn
0 Kudos
Message 1 of 3
(2,667 Views)
I'm not sure if this will work for you or not, but this is what I thought of when I read your post...

You can't look at 100 histogram simultaneously. You can probably only fit 4 or 5 on a front panel (without using tab a control, and I recomend NOT using the tab control), so I would try to work with a front panel that contains a (small) limited number of Histograms.

You should already be saving your data to a file, so I would create a new directory each time a new set of trilas is started. Then create a data file for each trail you run. So in the case you described, the directory would have 16, or 100 files. Then on the front panel, you can have a ring control under each histogram that lists all the files in a given directory. When the user sele
cts an item from the ring control, you load the data file, and push the data into the histogram. This would let the user quickly select the data run they care about, look at it, and select another.
0 Kudos
Message 2 of 3
(2,667 Views)
Thanks for your reply, I like the idea of using a ring control, I'll see if it is usefull..
The histograms can be drawn quite small however, I can easily have 10 histograms showing at one screen.
0 Kudos
Message 3 of 3
(2,667 Views)