Feb 11, 2010 - In 'Files of Type' Select 'Automation Studio XML Library Files'. Open the 'Main.xls'. It will load all the 10 libraries automatically (hydraulics,.
I was working with another programmer in the same Automation Studio project that was shared using SVN, and after a new SVN checkout I had this compiler error message: Error: undefined reference to `FileOpen’ So it looked like someone started using some file handling library, looking around the documentation I realize that it is the FileIO library. The undefined reference means the corresponding binary file was not found by the compiler Looking into the SVN history I see that nothing changed on the configuration side of the project for the latest couple of weeks, so there were no reason to have this error message. I checked the project configuration and everything looked OK. Then I looked for the libraries folder and I found them inside project-name Logical Libraries. This is the main libraries folder and inside it there is a folder for each library. In each library folder there is a sub folder SG4 and inside it we normally have one.h file, one.br file and one.a file.
It is not the case for FileIO, inside the SG4 sub folder we only have the FileIO.h file. I did not find a FileIO.a file. I found a FileIO.br binary file inside the projects operating system folder: project-name as system D0410 SG4 IA32 It looks like the system libraries binary files come with the operating system files, which makes sense. Looking around I found some other libraries organized the same way. So in conclusion, when the project was committed to SVN we somehow didn’t commit some of the files inside project-name as system D0410 SG4 IA32.
![Automation studio 6 library Automation studio 6 library](https://image.slidesharecdn.com/automationstudiopro-120426025106-phpapp02/95/automation-studio-pro-13-728.jpg?cb=1335408864)
It was compiling OK on the other PC because those files were still there, but not in SVN and my PC local files. Removing and adding this library again to the project copied the library files to the correct places. After a SVN commit making sure the new files are included fixed the issue.
For my very first project at DMC, I was tasked with setting up a file handling system through B&R Automation Studio 3. The application was to create a CSV file, populate the file with the revelant information, and then move the file to a new folder. As a new engineer, setting up a brand new system architecture can be a little daunting, so I was happy to find that Automation Studio makes it extremely straighforward to set up paths to different folders on your local storage (in this case, a compact flash card) or external storage (USB). Purpose: To set up locations to send files/data, both locally (compact flash card), and externally (USB). To setup a location, navigate to the File Devices tab (Configuration View Double Click sysconf.br File Devices tab). At this point, destination paths and names can be added.
![Automation studio 5.0 library files Automation studio 5.0 library files](/uploads/1/2/5/4/125414837/323275627.jpg)
To add a location to the local Compact Flash, set the path to “C: ”. If the destination is a folder on the Compact Flash, set the path to “C: foldername”. To add a location to a USB, insert a USB mass storage into the physical view (Physical View Right click under USB 1 Insert usbms01).
The slot listed to the right of the usbms01 becomes the path for the USB in the File Devices tab. Now that your file devices are all set up, you're well on your way to setting up a fully functional file handling system. I utilized B&R's filehandling function blocks (FileCreate, FileCopy, and FileDelete) to move files between different storage locations. If you're looking to add more complexity to your file handling system, B&R's FileIO library also contains function blocks to manipulate directories, link to networks, and read/write attributes. Overall, in doing my first project, I found the B&R platform easy to use, and conducive to file handling and manipulation.