LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to obtain a picture constant with color

Solved!
Go to solution

Thank you very much. That helped me a lot.:)

 

 

0 Kudos
Message 21 of 31
(1,264 Views)

Hello Altenbach,

 

I updated the file even a little bit more and combined it with what I was working previously, where I have NEXT and FINISH and the array gets updated everytime NEXT is pressed. In NEXT I have "Latch when released action" and I use an empty 2D array and add on it every time I press NEXT. However everytime I go back to pressing the Mouse UP of these colored arrays, the array corresponding to NEXT seems to reset, which I am not sure why that is happening. How come it works separately but when I combine these two, it doesnt work?

 

G

 

 

0 Kudos
Message 22 of 31
(1,245 Views)

I just conversted the 6X8 color based arrays in a 1X48 array using reshape array and every time I press NEXT, it gets added in its corresponding row and keeps getting added ON. My FINISH button has nothing right now, but I would be using FINISH later.

0 Kudos
Message 23 of 31
(1,241 Views)

You need to wire the 2D array across in all other cases, else the event output an empty array and writes that to the shift register, resetting it.

 

(Currently, the array linked to the array7 indicator is not wired across in the mouse up events, casuing your observed problem)

0 Kudos
Message 24 of 31
(1,239 Views)

Thanks a lot. That was helpful.

 

I was just curious Would it be possible for me to get a different "array 5" every time I press NEXT. Basically instead of getting updated in array 5, I want to display them as separate arrays everytime I run NEXT. I am not sure whether it is possible.

 

Thus if I press a couple of buttons and then run NEXT, I need it to be displayed as lets say "Array5-1". Then the second time I press NEXT, those updated val;ues should be "Array 5-2" and so on and so forth.

 

 

 

 

0 Kudos
Message 25 of 31
(1,227 Views)

@GV8 wrote:

I am not sure whether it is possible.


Everything is possible!

 

It is not clear what you want. Do you want multiple indicators? Do you want to update the existing indicator with new values? Do you want an indicator that has more dimensions?

0 Kudos
Message 26 of 31
(1,222 Views)

I want to dynamically create indicators which would display what I selected at each iteration ( every time I press NEXT ) . Thus my # of indicators should be dependant of my # of iterations.

 

Lets say I click a couple of color boxes and then click NEXT and this is the first time i click  then I should have an array showing "iteration 1" or "array 1" and should display what ever i selected and when i click the second time, it should show the array "iteration 2" or "array 2" or so on and so forth . Every time I press NEXT, it should show a new array with the corresponding selection which I made.

 

I have an image to demonstrate it. Right now I just added a couple of arrays in front panel and it is connected to nothing at them back panel.  I can try to add multiple arrays and make the arrays visible based on iteration.However the fundamental problem which exisits is I dont know how many iterations I would be doing during a run, so how can I decide how many arrays I want as indicators?

 

Thus what I imagined was to dynamically create array indicators based on the iteration count.

0 Kudos
Message 27 of 31
(1,217 Views)

Put the 2D array in a cluster, then make a 1D array of such clusters. Change the number of visible elements according to the array size.

0 Kudos
Message 28 of 31
(1,208 Views)

Hello Altenbach,

 

I altered the code so that it is displayed as an array with each row representing one run/iteration... so now it works perfectly..:) thanks a lot.

 

However can you please upload image of the back panel of the program. I was working on incorporating "the number of iterations" in the code when my evaluation version of Labview 12 ended. Now I have only Labview 7.1 and I am unable to open it there. So can you either upload an image or as an executable version which is stand alone which will help me finish this code to the completion.

 

Thanks a lot for all the help

G

0 Kudos
Message 29 of 31
(1,183 Views)

Post in the version conversion board and somebody will be able to convert it down for you.

0 Kudos
Message 30 of 31
(1,177 Views)