[posted and mailed]
Anja_Schmiele@gmx.de (Anja_S.) wrote in
<8t9gkd$5ep$00$1@news.t-online.com>:
>Hello,
>I have problems with sending commands and receiving data out of a
>sequence loop from/to a Multimeter and power supply. The instruments
>work fine with simple single visa serial or GPIB Vi`s.
>For simple mesurements I need to transmit only com port number(or visa
>device), write string, receive string
>switching some relays in between, some delays.
>There are always errors. Maybe the opening and closing or timing is not
>ok. Problems are always with the second command or receive strings to
>the devices.
>Can somebody send me an easy sample vi for RS232 and for GPIB Interfaces
>that is working in a test sequence loop.
Serial comms is never easy. You need to give us s
ome more information, such
as what the errors are. Is it possible that each iteration of the loop you
are opening a reference (eg VISA) and forgetting to close it? Alternatively
you could place the initialisation outside the loop and the close after
loop termination (this will increase efficiency).
--
Alexander C. Le Dain, PhD
ICON Technologies Pty Ltd
http://www.icon-tech.com.au
******************************************************************
* The LabVIEW FAQ http://www.icon-tech.com.au/thelabviewfaq.html *
******************************************************************