superslug Posted December 20, 2010 Report Share Posted December 20, 2010 This is probably a stupid question but is there any way to store and load values from a config file on a cRIO? thanks, Bernard Quote Link to comment
ned Posted December 20, 2010 Report Share Posted December 20, 2010 This is probably a stupid question but is there any way to store and load values from a config file on a cRIO? Same way you do on Windows. The standard file functions work normally on the cRIO using Windows-style paths; the internal flash drive is C:. Quote Link to comment
jgcode Posted December 20, 2010 Report Share Posted December 20, 2010 This is probably a stupid question but is there any way to store and load values from a config file on a cRIO? thanks, Bernard Hi Benard Yes you can certainly do that. The Native LabVIEW Config API works as well as LabVIEW XML, there are also some 3rd party API's too I find file io speeds can vary on the embedded targets between options so you may want to do some benchmarking? Cheers -JG Quote Link to comment
superslug Posted December 20, 2010 Author Report Share Posted December 20, 2010 cool, thanks guys. Quote Link to comment
jgcode Posted December 20, 2010 Report Share Posted December 20, 2010 cool, thanks guys. No probs. Quote Link to comment
swenp Posted December 20, 2010 Report Share Posted December 20, 2010 JG, The Native LabVIEW Config API works as well as LabVIEW XML the XML palette doesn't appear for Real-time targets in my LabVIEW projects. Did is miss something? I would love to use the build in XML parser without using 3rd party products. Cheers, Swen Quote Link to comment
jgcode Posted December 20, 2010 Report Share Posted December 20, 2010 the XML palette doesn't appear for Real-time targets in my LabVIEW projects. Did is miss something? I would love to use the build in XML parser without using 3rd party products. We use un/flatten to XML a bit - but its more to convert a e.g. class/cluster from disk and e.g. load it into the application. However, yes, I am guessing that the Xpath functions would not be available on Real Time. Quote Link to comment
viSci Posted December 20, 2010 Report Share Posted December 20, 2010 You can also use the GXML libraries. http://zone.ni.com/devzone/cda/epd/p/id/6330 But as jgcode mentioned, you should benchmark first because they can really hit your cpu pretty hard. Quote Link to comment
jgcode Posted December 21, 2010 Report Share Posted December 21, 2010 You can also use the GXML libraries. http://zone.ni.com/d...a/epd/p/id/6330 Good post We have tried these out on a recent project too. 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.