Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Tracking problem?

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++?

0 Kudos
Message 1 of 3
(5,794 Views)

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.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(5,780 Views)

Thanks!!!!! this helps..

0 Kudos
Message 3 of 3
(5,768 Views)