10-23-2006 05:17 PM
10-24-2006 07:40 AM
10-24-2006 07:57 AM
Thanks Tommy, I appreciate the advice. However, I think I will be abandoning the network-published shared variables for now. Before I left the office yesterday, I found the "communication wizard" for the Real-Time module. It allowed me to select my top-level VI and it automatically set up a communication routine to transmit all the controls and indicators from the RT target to the VI running on my host PC. It allowed me to select from multiple communication protocols (I selected TCP) and everything is working well now. I would have liked to use shared variables because they seem to be so simple to use but I do not want to waste time trying to hunt down a problem I may never fix. For now, out with the shared variables, in with TCP.
PS. I didn't change any of my code, (I was using timed loops in case you were wondering), and by changing over to TCP communication all my delay problems were solved. This reinforces my suspicion that the delays were caused by the shared variables.
Damien
11-08-2006 07:41 AM
Following up on this, I am quite sure I know what your problem is. I experienced a huge delay when using SV on cFP2120 controller, untill I set a timedelay on the cFP. Do this: right click on the cFP controller in your project and select "Bank Network Module", then change the pause setting from its horrible default value of 0ms to say 100 ms. This will give the SVE on your cFP target enough time to run and your SV's will get up to speed. It took me a week to figure this out !.
søren jensen
10-07-2008 10:38 AM
Just to say THANKS to you soren... your post solved my problem. I was getting mad about the slow update of the shared variables. Thanks again.
Robst.
Robst - CLD |
Using LabVIEW since version 7.0 |