11-16-2015 02:54 AM
Dear Sir,
I am very new to Database Connectivity Toolkit and my doubts are as follows:
Work have been done: I have developed a four emitter configuration application and each emitter having the same controls. For that I created four different clusters (Emitter-1, 2, 3 & 4) separately and I placed one over another based on emitter selection the particular emitter will be enabled and remaining three emitters are disabled. And one more thing whatever parameters entered by the user those parameter values should display corresponding to emitter selection. I implemented all these things because it is four emitter configurations only.
Work to be done: But today my requirement is 16 emitters and it will go up to 64 emitter configuration in future. In this case very difficult to create those many clusters and I have to validate each control value in each cluster. So that I am going to introduce Database to implement all the configurations in one cluster or screen. If I implement database, based on emitter selection corresponding values can be extracted and displayed on the screen after that user can modify the values and save the latest values.
This is what I am going to implement please help me in database creation and extraction.
Here I am attaching the sample screen.
Thanks & Regards,
S Nagaraju
11-16-2015 04:01 AM
It wasn't clear if you had done this, but if you make each emitter cluster a 'type definition' - each copy of the cluster will have exactly the same controls.
Rather than have a cluster containing 16 of the same element, why not create an array of emitters? This way you can index (select) an item from the array.
Do you specifically need a database? Databases are good for storing large amounts of data (e.g. 1000s of emitters), or where you need to perform calculations / searches on the data. Using something like the MGI/OpenG variant configuration file functions, you can write the array of emitter configuration to an INI file with just a handful of VIs.
11-16-2015 05:30 AM
Dear Sir,
Can you please explain how to store the different configurations into an array.
Please give me some example on this.
Regards,
S Nagaraju
11-16-2015 09:52 AM
I suggest you take some LabVIEW tutorials and/or read about arrays. You said that each emitter is the same so it will have the same configuration parameters. You can therefore have an array of configuration parameters (one element in the array for each emitter) instead of duplicating the same cluster multiple times.
There is a tutorial about arrays and clusters here: http://www.ni.com/white-paper/7571/en/
Here is an example:
11-17-2015 12:33 AM
Dear Sir,
Whatever you are suggested is understood. But here I am using State Machine and data for 16 emitters is not pre-defined. Based on input data I have to maintain the log files and display the log files as a library with corresponding emitter number, date & time. Kindly let me know how to create and display the log files for different emitters. In future user will not enter all the parameters he will select one of the emitter from the log files library and he will modify whatever parameter he want.
Please help me.
Regards,
S Nagaraju
11-17-2015 06:13 AM
@Sam_Sharp wrote:
Using something like the MGI/OpenG variant configuration file functions, you can write the array of emitter configuration to an INI file with just a handful of VIs.