LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with making picture invisible

Hi,
 
I prospect forums but I have not found solutions to my problems. I want to display different pictures at different times or successively.
I want to display one picture, wait until the user click onto it (I know how do it), then display another picture in the place of the first and so blinking (making invisible and inactive) the first.

Sorry for this simple request. Thanks in advance for your help.
0 Kudos
Message 1 of 19
(3,740 Views)
Have you looked at the Pict Ring control on the Ring and Enum palette? It's got the Increment/Decrement control that the user can click on to change pictures and you can also hide the decrement button if you just want to user to increment it. If you make it an indicator instead of a control, you can read the current value with a local variable, increment by one, and write the new value to the terminal. You can also use the Picture indicator on the Graphs>Controls palette. With the event structure you can detect a mouse down event and then load a new picture.
Message 2 of 19
(3,733 Views)
Thanks a lot for your help. Your first solution works but not the second.
0 Kudos
Message 3 of 19
(3,711 Views)
Hi,

I send here the program I would like to realize.
The user must clicks a certain number of times (once or five times) on a red rectangle before two shapes (A and B, once in the left and once in the right) appear and the subject chooses either one. The same thing with another pair of stimuli (C and D) after completion of a number of clicks required on the rectangle. One sequence consists on 2 presentations of the pair AB stimuli with each stimuli once at right and once at left + 2 presentations of CD stimuli with each stimuli once at right and once at left.
I want to randomize order of events, so I will create (no doing yet) 24 sequences of possible order of events (not only display AB_BA_CD_DC, like the example, here in the block diagram, but too AB_DC_BA_CD, for example). The choice of the sequence is randomized with a random number (multiply by one for the moment in order you see immediately the events when you run the VI).

I use ring picture to display the stimuli and enumerated constant for the type of stimuli I display. What I would like to do is using only 2 rings indicators, but I have seen when I did that, the program doesn't work. I was "forced" to use one ring each time. It will be more costly for me to write because I must create property node_property visible_false for other ring each time and in this cas I would use 288 rings.

My question is how can I do for using only 2 rings? And am I forced to use sequence structure?    

Thanks in advance for your help.

Attachment sequence 1 effort à FR5.zip (849 kb)

0 Kudos
Message 4 of 19
(3,683 Views)
Hi,

I send here the program I would like to realize.
The user must clicks a certain number of times (once or five times) on a red rectangle before two shapes (A and B, once in the left and once in the right) appear and the subject chooses either one. The same thing with another pair of stimuli (C and D) after completion of a number of clicks required on the rectangle. One sequence consists on 2 presentations of the pair AB stimuli with each stimuli once at right and once at left + 2 presentations of CD stimuli with each stimuli once at right and once at left.
I want to randomize order of events, so I will create (no doing yet) 24 sequences of possible order of events (not only display AB_BA_CD_DC, like the example, here in the block diagram, but too AB_DC_BA_CD, for example). The choice of the sequence is randomized with a random number (multiply by one for the moment in order you see immediately the events when you run the VI).

I use ring picture to display the stimuli and enumerated constant for the type of stimuli I display. What I would like to do is using only 2 rings indicators, but I have seen when I did that, the program doesn't work. I was "forced" to use one ring each time. It will be more costly for me to write because I must create property node_property visible_false for other ring each time and in this cas I would use 288 rings.

My question is how can I do for using only 2 rings? And am I forced to use sequence structure?    

Thanks in advance for your help.

Attachment sequence 1 effort à FR5.zip (849 kb)

0 Kudos
Message 5 of 19
(3,664 Views)
If I read you correct, you can divide your problem in several pieces and repeat these. But you also try to repeat the coding and that is not necessary.
Youre first problem is a piece of code that requires clcicking 1..5 times a rectangle. So in a while you count those clciks on a boolean control (transparent) and keep the number until now in a shiftregister. You leave this while when the appropriate number of clciks have occurred.
 
The second problem is showing the correct pictures, select them from a picture control that has all pictures inside.
The third problem (maybe first) is to allow this to repeat, so draw a while around the code and let it happen.
 
I don't see why you need so many times the same coding.
 
greetings from the Netherlands
0 Kudos
Message 6 of 19
(3,650 Views)
Thanks,  but sorry  I don't understand very well the code you proposed me. Could you write me with labview application, please? 
0 Kudos
Message 7 of 19
(3,628 Views)
I don't see why you need so many times the same coding?


I 'll conduct an experiment and I want to control many things and see stability of choice bythe subject so I need to repeat presentation of the same shape (in different position for example).
0 Kudos
Message 8 of 19
(3,628 Views)

I'll do my best. The biggest part of programming is to see what is a repeat and use that in a subvi aor repeat structure like a while or a for.

I't like Ceasar said: "Divide and Conquer"

greetings from the Netherlands
0 Kudos
Message 9 of 19
(3,610 Views)
Thanks in advance, it would be cool.
0 Kudos
Message 10 of 19
(3,609 Views)