02-02-2006 12:27 PM
02-02-2006 02:08 PM
02-02-2006 04:56 PM
02-02-2006 06:39 PM
02-03-2006 01:53 AM
You only specify a relative database name. So it is up to the current directory setting for the current process (LabVIEW here) where the file will be generated. I'm not sure about Linux but on Windows numerous system calls can change the current directory and I'm pretty sure LabVIEW does call such functions on Linux to achieve a similar behaviour there.
@nmxnmx wrote:
Well first of all thanks for answer, what i'm doing exactly is make a library (.so) where I call to functions of berkeley database, they are basic functions, in the library I'm doing I have this functions:
/*This function calls all berkeley library functions and others declared in this file, returns error msgs*/
char *database_test(char *char_data)
{
int result;
char *filename = "prueba.db";
DB* database_ptr = NULL;
/* This function open de data base, and here is where the things get some wrong, because, it should create the database if doesn't exist and return a succesful value, but it returns a successful value although doesn't create the database, and if this exist still return successful (which in this case it's ok)*/
result = open_database(&database_ptr, filename);
if(result != 0)
strcpy(char_data, db_strerror(result));
/* Leaving that problem of above, this cause another problem because don't get any data stored in the database*/
char_data = get_all_records(database_ptr, char_data);
result = database_ptr->close(database_ptr, 0);
if(result != 0)
strcpy(char_data, db_strerror(result));
return char_data;
}
Well I don't want you to think I want you make my program :s, so that's why I don't put here the content of the other functions, but just I want to say that I've compiled the same code of above as "stand alond" program in C as usually and it works fine, but by compiling as library and linking to LV don't work as it's expected ....
Thanks in advanced
02-03-2006 10:09 AM
02-20-2006 11:20 PM
Does National Instruments have any plans to directly support Berkeley database? Or any other databases?
Thanks,
Chris
02-21-2006 01:42 AM
NI is not really in the business of databases so they won't develop their own ;-). And with the Database Connectivity Toolkit they have a good offer to connect to any database that has ODBC and/or ADO connectivity (for Windows clients that is).
@Chris Reyerson wrote:Does National Instruments have any plans to directly support Berkeley database? Or any other databases?