1- How ? On raspberry, it's : "/mnt/sdb1" ?
I use this code:
PROGRAMMEMORISATION_PERSISTANTSVARfbDelete : FILE . Delete; (* bloc pour effacer le contenu dufichier*)sFileName : STRING :='data.ret';pApp : POINTERTOAPPLICATION;Result : RTS_IEC_RESULT;xInit : BOOL;RESTORE : bool;END_VAR//CmpApp+CAAFile+SysTypesInterfacesIFNOTxInitTHEN
  pApp :=AppGetCurrent(pResult :=ADR(Result));
   xInit :=TRUE;
   RESTORE :=TRUE;
   PERSIST_RESTAUREES :=FALSE;
 END_IFIFSAUVEGARDER=TRUEANDNOTRESTORETHEN
  fbDelete(xExecute :=TRUE , sFileName :=sFileName);
  IFfbDelete . xDoneOR(fbDelete . xErrorANDfbDelete . eError=File .Error . NOT_EXIST)THEN
    fbDelete(xExecute :=FALSE);
    IFpApp<>0THEN
      Result :=AppStoreRetainsInFile(pApp , sFileName);
    END_IFEND_IFIFRESTORETHEN
  Result :=AppRestoreRetainsFromFile(pApp , sFileName);END_IF
Hi,
I make backup of persistant on sd card, with date and hour name, with AppStoreRetainsInFile.
Question 1: is it possible to store backup files on external USB flash disk ?
Question 2: I would like to choose with webvisu, which backup file I have to restore, with AppRestoreRetainsFromFile. How to make chooser of file ?
1- How ? On raspberry, it's : "/mnt/sdb1" ?
I use this code:
I have to specify ?```
sFileName : STRING := '/mnt/sdb1/data.ret' ;
parameter : filelistprovider; type: VISU_FBFILELISTPROVIDER; Value : ????
```
Point 1 :
I do auto mount usb disk on /media/usb with user pi.
On sFilename I do: '/media/usb/data.ret'. It work.
And for point 2: I need help !
I analyse example VisuDialogST, but the second application which can help me, doen't work. Please help me !
Edwin, could you help me !?!