User Tools

Site Tools


code:open-source:hse-db:faq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
code:open-source:hse-db:faq [2021/05/07 11:21] – ↷ Page name changed from code:open-source:hse-db:faq to code:open-source:hse-db:upgrade joerg.hampelcode:open-source:hse-db:faq [2024/02/09 15:14] (current) alexander.elbert
Line 1: Line 1:
 +====== 03 FAQ ======
 +
 +==== Upgrade Instructions ====
 +
 +  * See [[code:open-source:hse-db:upgrade|98 Upgrade Instructions]]
 +  * create a subclass of DB-Interface and add decryption in ''Init Interface'' override
 +
 +---- 
 +==== How can I encrypt my credentials in the config file? ====
 +  * read about [[kb:common:encryption|AES encryption]]
 +  * create a subclass of ''DB-Interface''
 +  * add decryption before calling the parent's ''Init'' method
 +
 +{{:code:open-source:hse-db:pasted:20230714-073836.png}}
 +{{:code:open-source:hse-db:pasted:20230714-073950.png}}
 +
 +==== Advanced usage in subVI ====
 +
 +If you want to access a database from a SubVI of a larger DQMH module, but you don't want to start the entire module, there's an easy way to get a DB-Connector running in the SubVI without starting the whole project:
 +  - Configure DB-Connector in your project
 +  - Open "Test DB-Connector.vi" and run
 +    {{ code:open-source:hse-libraries:hse-core-libs:db-con1.png?nolink |}}
 +  - Press "Run New Module Instance"
 +    {{ code:open-source:hse-libraries:hse-core-libs:db-con2.png?nolink |}}
 +  - Your SubVI should already look somewhat like this:
 +    {{ code:open-source:hse-libraries:hse-core-libs:db-con3.png?nolink |}}
 +  - Copy value from "Active Modules" to your SubVI "DB Module ID" front panel element and run. The DQMH request VIs send commands to the running instance of DB-Connector
 +  - When done, use “Stop Module Instance” in DB-Connector and close your SubVI.
 +
 +----