LTPDA Toolbox | contents | ![]() ![]() |
Any of the following
When an object is submitted, the following steps are taken:
Objects can be submitted using the command ltpda_obj_submit. This command takes two inputs:
object | The LTPDA object to submit |
sinfo | An information structure (see below) |
>> sinfo = conn: [1x1 database] username: 'ltpdaadmin' experiment_title: 'submit ao' experiment_description: 'just a test' reference_ids: '' additional_comments: 'none' additional_authors: 'no one'
% Connect to a repository [conn, username] = mysql_connect('localhost', 'ltpda_test'); % Create an AO p = ao(plist('waveform', 'sine wave', 'f', 1, 'phi', 0, 'nsecs', 3600, 'fs', 10)); % Build an information structure sinfo.conn = conn; sinfo.username = username; sinfo.experiment_title = 'submit ao'; sinfo.experiment_description = 'this is just a test of the whole thing'; sinfo.reference_ids = ''; sinfo.additional_comments = 'none'; sinfo.additional_authors = 'no one'; % Submit the AO [ids, cid] = ltpda_obj_submit(p, sinfo); % Close the connection close(conn);
** Connecting to localhost as ltpdaadmin... ** Connection status: DatabaseProductName: 'MySQL' DatabaseProductVersion: '5.0.45' JDBCDriverName: 'MySQL-AB JDBC Driver' JDBCDriverVersion: [1x103 char] MaxDatabaseConnections: 0 CurrentUserName: 'ltpdaadmin@localhost' DatabaseURL: 'jdbc:mysql://localhost/ltpda_test' AutoCommitTransactions: 'True' *** Submitting objects to repository... ** got user id 2 for user: ltpdaadmin + submitted object ao with id 1 + made meta-data entry + updated transactions table ** made collection entry *** submission complete.
% Connect to a repository [conn, username] = mysql_connect('localhost', 'ltpda_test'); % Create objects to submit o1 = ao(plist('waveform', 'sine wave', 'f', 1, 'phi', 0, 'nsecs', 10, 'fs', 100)); o2 = specwin('Hanning', 100); o3 = plist('b', 2, 'c', 'asd'); % Create an information structure sinfo.conn = conn; sinfo.username = username; sinfo.experiment_title = 'submit multiple objects'; sinfo.experiment_description = 'this is just a test of the whole thing'; sinfo.reference_ids = ''; sinfo.additional_comments = 'none'; sinfo.additional_authors = 'no one'; % Submit the objects [ids, cid] = ltpda_obj_submit(o1, o2, o3, sinfo); % Close connection close(conn); % END ** Connecting to localhost as ltpdaadmin... ** Connection status: DatabaseProductName: 'MySQL' DatabaseProductVersion: '5.0.45' JDBCDriverName: 'MySQL-AB JDBC Driver' JDBCDriverVersion: [1x103 char] MaxDatabaseConnections: 0 CurrentUserName: 'ltpdaadmin@localhost' DatabaseURL: 'jdbc:mysql://localhost/ltpda_test' AutoCommitTransactions: 'True' *** Submitting objects to repository... ** got user id 2 for user: ltpdaadmin + submitted object ao with id 16 + made meta-data entry + updated transactions table + submitted object specwin with id 17 + made meta-data entry + updated transactions table + submitted object plist with id 18 + made meta-data entry + updated transactions table ** made collection entry *** submission complete.
![]() |
Connecting to an LTPDA Repository | Exploring an LTPDA Repository | ![]() |
©LTP Team