Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Store hours in a backup file

Store hours in a backup file 1 year 6 months ago #11676

  • Phil19
  • Phil19's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Karma: 0
Hello,

I have made good progress in my project thanks to your help on this forum.
Once again I need your expertise.

I have to store hours in a file in order to recover them when the station restarts.
These hours are set by the operator and change weekly.
I think I have to use the DataFRead and DataFWrite functions associated with a GetData.

Unfortunately I can't get any further on this.

Could you please help me?

Thanking you in advance

Philippe

Capture_2022-09-13.PNG
The administrator has disabled public write access.

Store hours in a backup file 1 year 6 months ago #11677

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi Philippe,

If you mean that you will recover the values after a restart of the ProviewR system, you can use the backup function. Configure the backup server with a Backup_Conf object in the node hierarchy, and backup of each time value with a Backup object.

/Claes
The administrator has disabled public write access.

Store hours in a backup file 1 year 6 months ago #11678

  • Phil19
  • Phil19's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Karma: 0
Hi,

Thank you very much Claes.
Indeed I am looking for a function to save certain values.

I'm going to try

best regards

Philippe
The administrator has disabled public write access.

Store hours in a backup file 1 year 6 months ago #11679

  • Phil19
  • Phil19's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Karma: 0
Hello,

The times are well stored and returned when the runtime is opened.
On the other hand, I have an error with the backup of a Dv type variable.
The compilation gives me an error.
In DataName of block Backup28, I have nothing.
I tried to enter the full path with .ActualValue.
I got a syntax error return.

Thanks for your help

Capture_2022-09-14.PNG
Last Edit: 1 year 6 months ago by Phil19.
The administrator has disabled public write access.

Store hours in a backup file 1 year 6 months ago #11680

  • brunad
  • brunad's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 247
  • Thank you received: 48
  • Karma: 11
Bonjour Philippe,

Il me semble avoir eu ce pb. Essaie d'enlever l'underscore ex objet FoncLun au lieu de Fonc_Lun

/Bruno
The administrator has disabled public write access.

Store hours in a backup file 1 year 6 months ago #11681

  • Phil19
  • Phil19's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Karma: 0
Bonjour Bruno,

J'ai essayƩ mais cela ne change rien.
Impossible de faire un backup d'une DV.


/Philippe
Last Edit: 1 year 6 months ago by Phil19.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 7.974 seconds