I want to test whether serial communication can work between a heat pump and a PC through LabVIEW. During the communication, I want to send a certain signal to change the compressor rotation speed of the heat pump and receive feedback from the heat pump to confirm if the compressor works at the specified speed. Sending signals is easy, but I don't know how to receive signals continuously. The heat pump transmits the internal status (169 bytes) as binary data in 1-second cycles. The first data after there has been no communication for 320 ms or more should be the first byte. By extracting the upper 8 bits of the 39th byte and the lower 8 bits of the 40th byte, 16-bit data can be formed from which the rotation speed for the compressor can be obtained. For example, the upper 8 bits of the 39th byte is 0x00, the lower 8 bits of the 40th byte is 0x00, so the 16-bit data should be 0x0000. How can I do in Labview to read this periodic data after 320ms? I tried it in the Open VISA Test Panel on MAX, but the error: a framing error occurred during transfer was reported.
↧