‎06-18-2015 12:55 AM
‎06-18-2015 01:11 AM - edited ‎06-18-2015 01:17 AM
@ijustlovemath wrote:
That makes sense. I was wondering how it might work should I compile it as an EXE.
It generally doesn't, as Nathand already pointed out. For one thing normal users don't have write access to the Program Files location anymore. Second, every Virus scanner worth its name will scream hell and fire if it detects an application trying to modify itself or any other executable file on the computer.
I would echo Mikes comment too. It can be pretty useful to have a history of calibration values for all kind of statistical analysis as well as maintenance of the hardware. However it does complicate the application considerably as now you also have to somewhere deploy some database server. A good low level compromise for this could be a local file based database such as using sqlite.
‎06-18-2015 06:56 AM
‎06-18-2015 07:27 AM
I'm not sure if you can create them - I am sure there is a way - but if you use the Database Connectivity Toolkit, you can modify pretty much any database like SQL Server, Access, MySQL, etc.
‎06-18-2015 08:09 AM
Lot of good suggestions here but you should start with a configuration file or a simple text file to store these values at a minimum. That makes your code more expandable for any future feature enhancements or saving other values you may have to add later. I almost always have a config file with my applications because there is always something that needs to be saved from one iteration of the program to the next.
‎06-18-2015 10:36 AM
@ijustlovemath wrote:
Roflk, nice catch on the virus scanner. That didn't even cross my mind! I was thinking of doing a database, but I want this application to be deployable on its own, without much setup from the user. Does the labview runtime include ways to programmatically create and modify relational databases?
No of course not. Relational databases are the Porsche under the databases. They come each with their own management tools and most have a price tag too. 🙂
And a relational database is certainly a bit of overkill for simple calibration value management.
It doesn't mean that you can't create a database from within LabVIEW. Using the Database Toolkit or any of the several other available Database Interface Libraries out there, you can create databases using SQL statements that you send to the database driver. However this quickly gets very complicated and is in most cases not worth the hassle.