viSci Posted December 20, 2008 Report Share Posted December 20, 2008 From my cRIO I need to call a vi on a networked PC. I currently have to open a reference to this vi (which is kept in memory for this purpose) then make the call and then close the reference. I was thinking of caching the references but this could be dangerous if the PC restarts in which case I suppose the original references would be invalid. Just wondering if anyone could think of a more clever way to do this to avoid the time penalty of opening the reference. Thanks Quote Link to comment
jgcode Posted December 20, 2008 Report Share Posted December 20, 2008 QUOTE (sachsm @ Dec 20 2008, 07:47 AM) I was thinking of caching the references but this could be dangerous if the PC restarts in which case I supposethe original references would be invalid. Just wondering if anyone could think of a more clever way to do this to avoid the time penalty of opening the reference. Thanks Hi Sachsm Perhaps you could still cache the references as suggested above but run them through a proxy on each call. I.e. if the reference is good (no error) use cache (fast); In that case that the reference is bad (error) then [run state machine] to open a new reference (slow), update cache, then use cache. Therefore you avoid the time penalty associated with opening a reference each time, but you have the proxy ready to kick in when needed to avoid an error that can be handled from a dead reference e.g. when the PC restarts. And all this can be relatively transparent. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.