취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

how to create an interactive rectangular grid in labview.

해결 완료!
솔루션으로 이동

Hello everyone I want to create a grid in labview in which If I click in any block it should change colour and say it changes from intially white to red, than blue. And I want to save the data representing the colour like 0, 1, 2 , 3 to an array. Can anybody help me, where should I start with?? Can you please direct me towards any example.

0 포인트
1/7 메시지
6,301 조회수

Use an array of picture rings.

0 포인트
2/7 메시지
6,297 조회수
솔루션
주제 작성자 GJAKLDFJG이(가) 승인함

Like this

Tim
GHSP
3/7 메시지
6,291 조회수

Thank you guys for your reply (Tim & altenbach ), I would like ask one question. How did you create Red and blue coloured color box without using any additional vi. Because whenever I try to create it I end up creating something else. I know this is silly and If I want to have it in different shapes than I shoud simply use make rectangle and other vi right ??윙크 이모티콘Untitled.jpg

0 포인트
4/7 메시지
6,255 조회수

right-click the picture ring array terminal and select "create constant" You get a diagram constant of the array of picture rings. Now drag the element out of the array container to the diagram and you got yourself a diagram constant of the picture ring. Make as many copies you like using ctrl-drag.

0 포인트
5/7 메시지
6,246 조회수

Ah sorry, the posted VI has an array of pictures instead on an array of picture rings as I suggested. Thus my reply does not apply directly.

 

I recommend a array of picture ring indicators, since there is only a small set of possibilities.

You coulds use code similar to the one shown in the link of this post:

 

A full featured 4x4 Tic Tac Toe Game

 

Alternatively, you could make the entire grid as one big picture.

0 포인트
6/7 메시지
6,236 조회수

If it were me, I would get the color and numeric value in one place by using an intensity graph.

 

RectGridFP.PNG

 

Rectangle.png

 

Easy to change the grid size, number of colors you want as well as the colors themselves.

7/7 메시지
6,223 조회수