Skip navigation.
Home
The QNX Community Portal

View topic - buttons became blocked while th is a constant update o data

buttons became blocked while th is a constant update o data

Isn't the name clear?

buttons became blocked while th is a constant update o data

Postby prinz » Fri Oct 23, 2009 12:00 pm

Hi guys,
I try to explain my problem
I have a server file and client file (graphic). my client communicate with the server constantly and have to update the graphic as the information givin from the Server (container have to change colours). my graphic will be updated when i make a change on the robot side (taking or putting a new item) .
my problem is that i have other buttons which for example have to shutdown my application or to open another window. these buttons become blocked when i start my application.

can anyone help plz.
prinz
Active Member
 
Posts: 23
Joined: Tue Mar 24, 2009 11:37 am

RE: buttons became blocked while th is a constant update o d

Postby maschoen » Fri Oct 23, 2009 3:36 pm

A few questions
1) This is a Photon program?
2) The buttons you speak of are Photon Widgets?
3) Do you have any idea why they are "blocked"? Possibilities include:
A) Something is in front of them
B) They are disabled by software
C) The are active but the have no callback so they don't do anything
D) __________________

BTW, since you mention all the server-client stuff, how are you communicating with this program:
A) QNX Message Passing
B) TCP/IP
C) via a thread in the Photon program?
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

RE: buttons became blocked while th is a constant update o d

Postby prinz » Fri Oct 23, 2009 5:42 pm

Hi maschoen,

1) yes this is a phAB programm ( the client)
2) yes they are Photon Widgets?
3) i think when the client get constantly informations from the server, it blocks all other widgets
* all of them have collbacks

the Client and Server are communication with QNX Message Passing

PS : do u speak german maschoen?
prinz
Active Member
 
Posts: 23
Joined: Tue Mar 24, 2009 11:37 am

RE: buttons became blocked while th is a constant update o d

Postby maschoen » Sat Oct 24, 2009 12:34 am

Well it is possible that the photon program is receiving data so fast that it doesn't have time to update the GUI. This seems unlikely but is possible. I don't speak German well enough to communicate about computers. Sorry.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

RE: buttons became blocked while th is a constant update o d

Postby prinz » Sat Oct 24, 2009 1:14 am

is there any way to resolve this problem ?
prinz
Active Member
 
Posts: 23
Joined: Tue Mar 24, 2009 11:37 am

RE: buttons became blocked while th is a constant update o d

Postby maschoen » Sat Oct 24, 2009 1:45 am

Well, I don't know your problem, but here is how I would approach it.
I would make the data collection a separate thread. That thread would just do the following:

loop:
Receive-data
get-mutex
Update data
release-mutex

The main program would likewise have to obtain the mutex before it access the data.

Finally I would then make sure that this thread runs at a lower priority than the rest.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 5 guests