Feedback on NI Community

cancel
Showing results for 
Search instead for 
Did you mean: 

请具体讲下xcontrol的创建和应用,谢谢!

对于xcontrol的强大功能似乎从例子中能够看出,但具体到制作xcontrol控件还是存在很大困难,请朋友们讲一下 制作的具体过程好吗?比如经典的黑白棋游戏,或是七段led显示0-9的数值。非常感谢!!!
0 Kudos
Message 1 of 5
(8,754 Views)
I am pretty sure you posted this in the wrong place.
0 Kudos
Message 2 of 5
(8,752 Views)

translated from Chinese:

 

For xcontrol power seems to be able to see from the examples, but specific to the production of xcontrol control there is still considerable difficulties, please my friends talk about the specific process of making you? For example the classic Othello game, or a seven segment led display 0-9 values. Thank you very much! ! 

0 Kudos
Message 3 of 5
(8,747 Views)
I'm sorry for my mistake,but could you help me? 
0 Kudos
Message 4 of 5
(8,713 Views)

(We should do all that in english, unless you want to post it in the chinese forum.)

 

It is not entirely clear what you want to do. Of course you could hide the entire othello game logic inside the Xcontrol, but most likely you are looking to simply create a UI for the board or LED display.

 

What kind of difficulties do you have?

 

First you need to decide on a suitable datatype. For a seven segment display, it could be a simple integer. How many 7-segment digits you need? For an othello game it could be an array of two U64 numbers. The bits of one indicating the black position and the other showing the white positions.

 

Maybe you can attach what you made so far and tell us where you got stuck. 

Message Edited by altenbach on 04-01-2010 09:11 AM
0 Kudos
Message 5 of 5
(8,707 Views)