Hi
I am fairly new to Labview. I have been trying to communicate with a Roboteq controller to control the speed of a marine thruster. The serial settings of the controller are 9600 bauds, 7 data bits, even parity and a \r as the termination character.
The controller recognizes some specific commands and replies back with an answer. One of the command I am using is ?z\r. The controller should respond to it by sending an echo of the command followed by two other lines to successive read operations. It should look something like this
First read reply ?z\r
Second read reply 00\r
Third read reply 00\r
I have done this with Matlab without having any trouble. I have even tried to use the measurement and automation explorer which seems to work fine i.e. when I click execute the first time, it replies with a ?z\r, second time with a 00\r and third time also with a 00\r.
The problem I am having is that the controller is responding with an echo i.e. ?z\r after the first read operation, however, when I read it again, it doesnt show any data. I have tried to automate the process by running the while loop 3 times but to no avail.
I have attached the program.
Any help/suggestions will be greatly appreciated.
Thanks