取消
显示结果 
搜索替代 
您的意思是: 

CHECK BYTE or Longitudinal Parity calculation

已解决!
转到解答

Hi All,

I am trying to communicate with a switch that uses a CHECK BYTE as the last byte. According to the Manual the CHECK BYTE, or “longitudinal Parity”, is the exclusive OR on all messages bytes.

I am new in programming and I have no idea how to calculate longitudinal parity so I can not create the VI.

Can someone please help?

Like if my message in Hexadecimal is: 02 30 31 31 03   What would be the CHECK BYTE? And how can I calculate it?

Thanks a lot

0 项奖励
1 条消息(共 6 条)
5,279 次查看

'fraid we're going to need a bit more information because I just did a quick Google of 'longitudinal parity check' and got descriptions of at least three different algorithms all using the same name. The manual should tell you how to calculate this value, if not -- call the manufacturer...

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 项奖励
2 条消息(共 6 条)
5,262 次查看
解答
接受人 Farracillo

This should correspond to your description of LPC

 

Message Edité par chilly charly le 02-01-2009 08:10 AM
Chilly Charly    (aka CC)
3 条消息(共 6 条)
5,248 次查看

Hi Chilly Charly,

Thanks a lot for your answer. I tried this and it's not working though. I am not quite sure it is the Check Byte but the switch is not answering my commands and that is because is not receiving the proper message. The message is pretty straight forward except for the Check Byte. I spent my whole day today trying to make it work and it's not happening.

I may have to call the manufacturer to be sure.

THanks again.

Farracillo

 

0 项奖励
4 条消息(共 6 条)
5,213 次查看

Hi Mike,

I will contact the manufacturer cuz the manual doesn't say anything about it. That's the first place i looked and it's silent to the calculation.

Thanks a lot for trying to help me.

Farracillo

0 项奖励
5 条消息(共 6 条)
5,210 次查看

HI Chilly Charly,

I am sorry it took me some time to accept your answer. Sure enough your VI makes sense, and is the answer for this question.

My real problem is a communication issue. I am getting "framing errors" eventhough my settings match the equipment specifications.

I will have to keep working on this.

thanks a lot for your help

Eddy

0 项奖励
6 条消息(共 6 条)
5,146 次查看