08-24-2007 12:47 PM
08-24-2007 02:04 PM
08-24-2007 02:59 PM
08-24-2007 03:14 PM
08-29-2007 12:38 PM
08-29-2007 01:01 PM - edited 08-29-2007 01:01 PM
I don't understand how your code compares to what you want to do? You have 3 different sets of read and write controls on your front panel, all set to *IDN. Which of these is supposed to send the start actuator command? What is your start actuator command? One set only can execute once, right in the first frame, and that depends on if your have the read and write booleans set before you start the program. The other two sets occur in the loop associated with your Run button. But why the boolean Read 4 that toggles the results going between read string 4 and read string 5?
I don't think it is a good idea to take the Read/Write example and extend it in this way. It looks like all of these sets are associated with the same Com port. If you send a command in one frame but don't read it because the read switch is not set, then write another command, the buffer is still going to have what was returned after the first write command.
You need to get this down to one communication mechanism per com port. And get rid of the read/write switches, especially the read since you almost certainly need to read results after every write. If you need to send different commands, put an enum control on the screen that is attached to a case structure to put out the appropriate string associated with each command.
Message Edited by Ravens Fan on 08-29-2007 02:02 PM
08-30-2007 02:48 PM
08-30-2007 03:19 PM
09-04-2007 02:07 PM
09-04-2007 02:38 PM