From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-06-2014 07:34 AM
This is what I was talking about (Certainly need to tweek to make it more generalized).
06-06-2014 07:40 AM
Are you just trying to save and load control values? If so then you should look at the OpenG Save Panel to INI and Load Panel From INI under the Variant Configuration palette it takes care of all of this.
Still attached is a quick example of how to do what you want. It makes a look up table using a variant. Then for all controls get the value from the lookup table with the same name as label, then set the value on that control.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-06-2014 11:42 AM - edited 06-06-2014 11:43 AM
@Hooovahh wrote:
Are you just trying to save and load control values? If so then you should look at the OpenG Save Panel to INI and Load Panel From INI under the Variant Configuration palette it takes care of all of this.
Still attached is a quick example of how to do what you want. It makes a look up table using a variant. Then for all controls get the value from the lookup table with the same name as label, then set the value on that control.
OR, "Enable Database Access" is only a right click away and "Log at completion" is fairly straightforward. To do it progamatically just call Prompt and Save UDL.vi to create the record and Follow the help file suggestions to populate the FP data.
06-06-2014 12:06 PM
I get all kinds of missing dialogs when I try to use that snippet in 2013. Where on disk is that Prompt and Save VI? LabVIEW couldn't find it.
I've never used that feature, but I've been able to modify the OpenG to choose not to save all controls, only the ones I want, and if I have a complicated data type (cluster of array of cluster of cluster etc) I choose to write that control's data as a flat binary blob instead of human readable text. Still a native solution is prefered if it meets the needs of the application.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-06-2014 01:01 PM
essentially this is the tool that runs from here:
06-06-2014 01:21 PM - edited 06-06-2014 01:21 PM
@JÞB wrote:
essentially this is the tool that runs from here:
After searching I now see that those files are part of the Database and Connectivity Toolkit and is not included with base LabVIEW.
EDIT: At least I think.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-06-2014 01:51 PM
@Hooovahh wrote:
After searching I now see that those files are part of the Database and Connectivity Toolkit and is not included with base LabVIEW.
That would make sense. the DBC TK comes with Dev Suite and is available as an addon for LabVIEW. That library may have nothing whatsoever to do with Operate>> Database Access>>Log...
Not a feature I often use! but one I wanted to toss out since the discussion was going in that direction