07-29-2011 11:46 PM
I am working with tracking problem. I am somewhat new to VC++. I have to take several data from the position sensor and read in the PLC and feed the data to the motor to run. That is fine.
But the problem arises when I receive the data from position sensor within a range between +5% of the standard value or -5% of the standard value. If the data value exceeds the range, I want an error message to pop-up.
How can develop this code in VC++?
08-01-2011 08:02 PM
Hi KRAZE4LV,
You could use an if statement to check whether the data is outside of the range or not. When the data is outside the range, you can then call the message pop up box. I've included an example link below for you reference.
http://msdn.microsoft.com/en-us/library/aa381915%28v=vs.85%29.aspx
I hope this helps.
Regards,
Josh L.
08-07-2011 07:44 PM
Thanks!!!!! this helps..