09-24-2008 06:35 AM
Hello!
I need example, how can I save cluster to Registry after read back? Aught possible this.
Before I save this cluster to ini file, but I want save that to reg.
Can you help me?
THX!
09-24-2008 08:29 AM - edited 09-24-2008 08:29 AM
You can use the "flatten to string" resp. "unflatten to string" vis to convert your cluster to a string. This string can be written to the registry with the normal registry-operations implemented in LabVIEW. You can read back your string and then convert it to a cluster by providing the desired data type to the "unflatten to string"-vi. In the example, only the conversion is shown, not the registry access! Hope this helps,
Greetings,
Christian
09-25-2008 03:14 AM
Yes you help me! Thanks.
But I have one question yet.
Can i give Path and file name to registry? e.g C:\LVREG\option.reg or some similar.
Greetings, Misi
09-25-2008 03:36 AM
If I understand you right, you want to import a .reg file to the registry? Yeah, that's possible...look at the page
http://www.eolsoft.com/freeware/registry_jumper/regedit_switches.htm
There, the command line switches of the tool "regedit" are explained. You can call regedit from LabVIEW with the appropriate switches (i. e. your filename).
Greetings,
Christian
09-25-2008 04:18 AM
No it's not certain.
I would like that, if i save cluster I can give file name( saves.reg ) and path ( c:\LVSaves\ ), where I can find the file easy and open it, as if you make ini file or txt file.
I would like if the file escalation has *.reg
Misi
10-15-2008 01:38 AM
Hello.
I have an other question. How can i save numeric value to registry? Becouse if Numeric value's 1,5673, then in the registry i can find 2, or i get -601 errors. So how can i save the accurate value?
Please help me.
Greeting,
Misi
10-15-2008 02:18 AM
One possibility is the same way as Christian proposed for clusters: flatten the floating point number to a string and store the string in the registry.
For numbers, instead of flattening it might be nicer to format a number into a string (see string/number conversion palette) so the value is human readable.
Hope this helps
Daniel
10-16-2008 02:20 AM
|
I made it with number to decimal string and decimal string to number first, but then if numeric value=the 0,23 then in registry 0 appear.
After i tryed flatten and unfletten but then I didn't read back real data from the registry.
Would you be able to attach a plain example possibly? with one of the methods.
Becouse may be, that I configuration something badly.
Misi
10-16-2008 02:23 AM
Number to decimal string cuts the digits. Use "Number to fractional string" or to engineering or exponential string, whatever fits your needs best.
10-16-2008 02:58 AM
Thank you for much!!
works perfectly with number to fractional string.
Thanks!
Greetings,
Misi