ethushara Posted February 11, 2018 Share Posted February 11, 2018 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. Link to comment Share on other sites More sharing options...
AzeoTech Posted February 14, 2018 Share Posted February 14, 2018 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? Link to comment Share on other sites More sharing options...
ethushara Posted February 14, 2018 Author Share Posted February 14, 2018 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 Link to comment Share on other sites More sharing options...
AzeoTech Posted February 14, 2018 Share Posted February 14, 2018 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.