LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

graph,chart,thread?

hi,sir:
I want to acquire data and monitor it on a chart,as soon as acquiring ends,all data will be ploted on a graph,and i can get coordinate the current cursor.(UpdateMaker() is the CALLBACK funtion of the graph)I realized my funtion in one thread for the first time,there is no error.then I seperated them into two treads,(acquiring is put into another tread)when I
move cursor on graph,error appeared.Project break at CVICALLBACK UpdateMaker();
"Line XXX,Col YYY thread id 0xFFFC22E5
Library function error
The control is not the type expected by the funtion"
Who can tell me why?
My whole project has been several MB,it is inconvenience to post it here.
0 Kudos
Message 1 of 2
(2,755 Views)
This kind off error is usually due to an incorrect panel handle or control ID that makes the program point to a control different to that you THINK it is pointing. Are you using variables to store those values that can be affected by another thread execution? Try putting a breakpoint in the source code and check actual panel and control values.

Next, verify that you are using a function that can manage correctly the control pointed to (have you made modifications to the UIR, e.g. changing strip chart to graph or vice versa?).

Hope this helps
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,755 Views)