LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The connection between eurotherm 2704 and pc (with iTools OPC server) not fast enough ?!

Hi,

we have to develope a software for our lab, but we are beginner with LabView.

 

To acquiring the data from eurotherm 2704 we installed the iTool OPC Server and changed the file from

 

http://www.eurotherm.com/products/controllers/2704_doc.htm

 

site, after that it was possible to read / write the temperature from the controllers.

 

(http://forums.ni.com/ni/board/message?board.id=170&message.id=467301&jump=true)

 

it works well,

 

but we have an other problem now. The connection between the PC and the controllers is too slow. We have 3 controllers (with 3 loops each). To write 9 values and to read 9 values are ca. 3 seconds needed, and it is to slow for our project.

 

We changed the timeout of the serial-port to 200ms (it is the minimum value), through it the update-time is decreaded to 2 seconds (1 second would be enough for us), but we are not sure, that it is ok, to change the timeout-time of the serialport.

 

By the changing of the timeout-time (in the iTools OPC Server software) of the devices the update-time stayed the same (we think so).

(What does the timeout of the devices do ? )

 

It is possible to do the update faster ?!

 

We attached the simplified version of the program (only the part, where the values are read / written).

Maybe we have a mistake in other code, or it can be done better ?

 

We hope, you can help us.

Thank you very much.

0 Kudos
Message 1 of 2
(5,303 Views)

Several things to say about this code but main are :

- Are you sure it's revelant to write SP in parallel with reading PV? In this case, serialization of process is better => write then read

- How do you use this VI? If it's as a subVI in a loop, avoid to re-open Datasocket connection to each time.

- Your loop on the top is not needed I beleive you could win by link your array directly to data to write...

- Are you sure that all data are available? => Probe the error out cluters to check if there is not a timeout (1000ms)

- Be aware you send a entire number as SP (I32) while you programmed a floating (DBL)... Is it not the real problem?

Message Edité par J.DECHET le 01-12-2010 02:08 PM
0 Kudos
Message 2 of 2
(5,293 Views)