12-06-2024 04:44 AM
Hello Dear All,
To obtain data from thermocouples, I am using MEASURPoint system for data logger. For this, we have a control file that I have to change IP address and channel numbers, as can be seen from attached picture.
Whatever I try, I could not change IP address and channel numbers. I am adding both .ctl file for MEASURPoint and picture from it.
would you kindly describe me how I can change it?
Sincerely.
12-06-2024 05:05 AM
You have to explain better what you want to do. Maybe the problem as well.
How do you want to change those controls: manually from the diagram, all together or one element? Or do you mean permanently change them (change and make them default)?
When I open the control, I can change the value...
12-06-2024 05:08 AM
Boy, this is a tough one because you are not explaining it very well, but I have a feeling that if you could explain it well, you wouldn't need our help.
12-06-2024 05:10 AM
Hello Dear CARYA,
I have just wanted to change IP address and TC number channel to communicate with my MEASURPoint box (data logger). I can also change values but when I save it and close/open again, all the parameters will be changed to its previous values.
12-06-2024 05:37 AM
Hi Ex,
@Exchanging7878 wrote:
I have just wanted to change IP address and TC number channel to communicate with my MEASURPoint box (data logger). I can also change values but when I save it and close/open again, all the parameters will be changed to its previous values.
There are two problems:
12-06-2024 05:50 AM
Hi,
Your .ctl file is a Type Definition, so it defines a type, not data.
There may be somewhere else in your code or file structure where it stores the actual parameters data.
It is most likely in an .ini, .txt or .csv file.
It can also be simply a block diagram constant or a control / global variable with default values...
If it is a control or global variable, make sure you right-click your control / global variable control > Data Operation > Make Current Value Default, to make the new values persistent.
Regards,
Raphaël.
12-06-2024 08:43 AM
@Exchanging7878 wrote:I have just wanted to change IP address and TC number channel to communicate with my MEASURPoint box (data logger). I can also change values but when I save it and close/open again, all the parameters will be changed to its previous values.
I think you could use an explanation from another source...
LabVIEW never stores data changes. This would be horrible if a graph gathered 50 BM of data while running... Besides that, data is often filled while running, and while running VIs are typically not saved.
To make data in control persist (e.g. save\load) you should change the default value, and save the VI. But this is an editing action, not something a user of the running VI can or should do.
To make a value in a control persist, you have to make it behave that way. So, your program should read the value, save it to something at selected times (on change, a times, on close, etc). Then, when restarting your VI, it should load the data from the source (a database or file of any sorts: .ini, cvs, json, xml) and write the value(s) to the control(s).
There are many, many ways to do this. There are even some (rudimentary) constructs in LabVIEW that try to do this.
If you're a beginner and simply add this 'persistence' functionality to your main VI, you'll probably make a big mess. You really have to make some low level VIs (subVIs) so your main doesn't clutter. Probably easier said that done, but we're here to help. It's not that this particular problem is hard, but levelling up application design is...