Sign in to follow this  
ethushara

Write and read in permanent memory

Recommended Posts

Hi,

In sometimes my Daqfactory program is suddenly stopping (attached a print screen copy) and again i cannot run the same copy. So i have to run an other copy of same program soon. in this case the values attached to some virtual channels are changed and this is a big issue for me.  So can we have any possibility to write those necessary channel values in permanent memory (not in the program file - even in a file in Daqfactory directory) in the PC frequently using and script and get them read when initiating the program?  this will solve this problem. 

In fact i need this very urgently as i'm going to log some sequential data and if any file corruption occurs when logging, it will jam my entire system when it will be continued with another copy of the program.  

so your support on this is highly appreciated. 

Best regards,

Thushara.

Share this post


Link to post
Share on other sites

Use Persist in Channels to save values outside of the DAQFactory document and outside the logging set.  However, you should figure out why your .ctl document is getting corrupted.  Are you using the Auto-Persist timer or doing system.saveDocument() anywhere?

Share this post


Link to post
Share on other sites

hi,

1. Mostly i need to save the Virtual channel values to be read by the next copy of same .ctl file. In channel persistence i found only the way to persist the channels in the channel table. So please let me know can i do the same for the virtual channels as well.

2. No. Im not doing auto persist or system.saveDocument() anywhere. 

Best regards,

thushara

 

Share this post


Link to post
Share on other sites

1. No you can't do it with V channels.  That's why I don't use V channels ever.  Its almost always better to just create a Test channel instead.

2. Then you really should chase down why the file gets corrupted.  It sounds like you have some hard drive troubles.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this