03-29-2012 05:17 AM
Dear All,
I can't seem to find an answer to my problem. Here's what I'm doing:
1. Programmatically create a database (Create database.vi from DSC-> Historical -> Database management)
2. Programmatically create a process and variables for this process (using as an example the Create Online Process.vi from NI Examples)
3. For this process I "Configure Process Log State VI" to log the variables in the database I've created (verify with Get Process Log State VI - shows me the database and path I've created in step 1)
4. Open reference to a variable with Open Variable Connection.vi (Connectivity -> Shared Variables)
5. Write data to this variable (using Write Variable.vi)
6. Close variable reference etc...
Now the problem is, that when I look in MAX for my data in the Historical Data tree, I can see my database created but it is empty, and the variable I've opened a reference for (and the process) is in the Default_Database.... but I've configured process log state in step 3.
Am I missing something?
The example is attached.
Regards
03-29-2012 05:30 AM
Looks like asking the question on a forum, automatically brings the answer to your mind. I've fixed it!
For the "Configure Process Log State VI" I supplied the vi with db URL rather than the path. Writing db path fixes the problem.
Regards
Witek