08-31-2005 12:21 PM
08-31-2005 12:28 PM
08-31-2005 05:45 PM
08-31-2005 08:59 PM
Don;
Here's another take on your problem. It doesn't have a load button because it "transmits" the data when you press enter. In addition, I added a window that lets you maintain a record of the commands and responses that have gone back and forth. When you run the VI type something into the command area and press enter. The command and the internally-generated "response" will appear in the window to the right.
If you look at the diagram you will see that it was built using event-driven progrmming. In the event for handling changes in the command string, you'll see the place where I have my demo serial io vi. Replace that VI with one that really sends commands to the external device and reads the response and you have a nice interactive interface for the device.
Note I have also added some error handling (always very important). Basically the little green icon to the left of the loop creates a user event for errors. The little bitty green icon at the right side of the loop looks at the error cluster coming out of the event structure after each execution. If it detects an error it fires the error user event to display the error to you. The green icon to the right of the loop is deinitialization.
Mike...
09-01-2005 07:53 AM
09-01-2005 08:47 AM
yes, but it will have to be tonight...
Mike...
09-01-2005 09:01 AM
09-01-2005 08:53 PM
Here it is.
Mike...
09-02-2005 07:57 AM
09-02-2005 08:28 AM