07-11-2006 09:37 AM
hi there
your app sends 2 bytes ("@\n") per shot, so at a rate of 300 baud this takes at least 50 ms plus overhead -> max rate 20 Hz! if you increase the baud rate the app will run faster. see the attached simplified code. it shows the time between two shots in a chart. change the value of the baud rate in the diagram and see what happens.
as MattH mentioned in his post put hardware configuration OUTside loops. and always CLOSE hardware devices....
07-11-2006 10:03 AM
07-11-2006 10:08 AM - edited 07-11-2006 10:08 AM
Message Edited by Novatron on 07-11-2006 11:09 AM
07-11-2006 10:11 AM
hi there
first step is always a right mouse click: right click on the frame of the loop and select "Add shift register". to tunnel a scalar through a structure (loops, cases..) right click on the tunnel and select "disable autoindexing", to build a array out of scalars right click on the tunnel and select "enable autoindexing".
search for "autoindexing" in the "VI, function & How-To" help of your LV installation or play around a little bit.
07-11-2006 10:48 AM - edited 07-11-2006 10:48 AM
Message Edited by anjie on 07-11-2006 10:49 AM
07-11-2006 11:25 AM
07-11-2006 12:09 PM
07-11-2006 12:50 PM
07-11-2006 01:09 PM
07-11-2006 01:25 PM - edited 07-11-2006 01:25 PM
Message Edited by jasonhill on 07-11-2006 01:26 PM