06-11-2008 12:41 PM
06-12-2008 03:53 AM
Hi enzo
When you say you reduce the number of variable, do you mean that you have multiple variables in you project and you can reduce this down to one or are you actually placing a smaller number into the variable.
What datatype is the variable that you are using.
Is there any chance if your project is not too large that you can zip it and post it up here so that I can take a look at the variable settings that you have.
I look forward to hearing frorm you as with a little clarification I would hope that we can find a solution to this one
best regards
06-12-2008 04:25 AM
Hi Graham
My project is made by an OPC Client, and 4 VI, each one has at least 20 shared variable that are word 16 bit, and they are updated at a very slow rate. So I create a VI with just one shared variable, and it work perfectly.
If you need I can develop a small project similar to mine, because it is too big.
Thanks
06-12-2008 05:29 AM
Hi
I have developed a new project smaller than the first , and I notice that The updating of the shared variable don`t depend of the number of variable, because I craete 2 VI with different number of variable, and both updating is very slow.
I send a copy of this project...
Thanks
06-12-2008 11:18 AM
Hi Enzo,
The VIs you posted miss temporization! Every OPC needs time to present and store data into shared variables. From LabVIEW side, almost every Loop Structure requires a temporization function suc as:the 'Wait' or the 'Wait until next ms multiple' functions.
Try to temporize your process first. Than you can monitor the shared variables status by running the NI Variable Manager you can fund under Start»Programs»NationalInstruments»VariableManager»Variable Manager.
Hope this help
Hudson | NIIT AE
06-12-2008 11:49 AM
06-13-2008 08:23 AM
06-13-2008 08:48 AM
Ciao Fabio
Ho notato che il mio VI ha lo stesso update del Variable Manager, ma credo che non dipenda dall`OPC Server e ti spiego perche`:
Precedentemente ho creato un progetto che leggeva alcune variabili dallo stesso OPC server, ed esso funzionava correttamente, mentre adesso in questo nuovo progetto le stesse variabili hanno un update veramente lento...
infatti se nel Variable Manager apro contemporaneamente le due variabili, (quella de progetto che funziona correttamente e quella del progetto che non va) ho notato che la prima funziona correttamente, la seconda no, eppure sono due variabli che leggono dallo stesso OPC server. Non so!
Grazie
06-13-2008 09:04 AM
The English version...
Hi Fabio
I have noticed that my VI has the same update of the Variable Manager, but I think that it don`t depend on the OPC Server, because:
- I have developed recently an other project, with any shared variable linked to the same OPC Server, and it worked perpectly. But now in thi project the same shared variable has a very slow update ...
Infact if I check this on The Variable Manager, I can notice that the Shared Variable of the old progect works correctly, while the same shared Variable of the new project is slow...yet they both are reading the same OPC server...I don`t know...
Thanks
Vincenzo