05-12-2013 08:42 PM
Hello guys.
I'm using a VI to measure the force applied to a load cell (strain gage). I wish I could calibrate it between defined periods, so I wish I could insert a data (the number I have to multiply the load cell voltage, wich one is in volts) in any moment, but I want that this number stay into the VI when I close it and than open it again. If possible, I would like to protect this data with a key.
Is it possible
Sorry for my bad english!
Hope you can help me!
Thank you!!
Solved! Go to Solution.
05-12-2013 10:58 PM
sorry, I meant:
Is it possible?
05-12-2013 11:47 PM
The simple way would be write the value to a file and then read it when you start the code.
05-13-2013 12:36 AM
Best way to use all the VIs in one common file and pass the wanting value from 1 VI to other using global variable.
05-13-2013 01:47 AM
As Anand says, the easy way is to just write the data to a file, but then it wont be protected. You can write it as a registry key in which case it's somewhat protected by being somewhat hidden and you can easily make a password-vi to allow modification of this value.
/Y
05-13-2013 02:01 AM
Writing to registry is a good way to save the top level configuration parameters like Checksum values. But for the data still I would go for writing to file like binary files (Cannot be edited manually) so your file is protected to a level. If you want to increase the number of parameters you can still easily do it.
05-13-2013 02:02 AM
There is absolutely no problem in using file but if labview has given you facility then why not use it, just saying ?
05-13-2013 03:07 AM
@Ranjeet_Singh wrote:
There is absolutely no problem in using file but if labview has given you facility then why not use it, just saying ?
I don't understand which facility you meant here. 🙂
05-13-2013 03:13 AM
Read about global variable
05-13-2013 03:45 AM
Using a file and the registry key is different and global variable is different. Global varaible comes into play after reading from the file or reg key but the question here is to preserve the value somehwere even after closing the vi.