Procedure how to configure a controller to send data files directly to an FTP server
Please follow our firewall & network settings guide to properly configure your firewall with the use of the Q.series data acquisition software. In addition to that configuration, you may need to add a firewall exception for your FTP server.
The most common protocols used in file transfer today are FTP, FTPS, and SFTP. The Q.series controllers support FTP and SFTP. FTPS is not supported.
Controller Configuration
- Download and install the latest version of GI.bench (or test.commander) from our website.
- Open the controller in a GI.bench (or test.commander) project
- Double-click the controller to bring up the controller settings.
- GI.bench
- Navigate to the FTP clients section
- Change the connection count to 1 and press Enter
- Change the connection settings
- Address: The static IP address of the FTP server
- Port: The listening port of the FTP server (e.g. 21). This can be configured to a different port on the FTP server configuration but 21 is the typical port.
- Username: The username setup in the FTP server
- Password: The password for the user account
- Type: unknown (other options: Unix, MS-DOS, SFTP)
- Directory: Enter the directory within the server or leave blank
- Click OK to save the settings
- Back in the project window, right-click Data Logging > Add > Add Logger (or double-click the existing logger)
- Configure the logger: select variables to save, logger type, the main storage destination
- In the Send FTP section: Check the enabled box and select the corresponding FTP connection
- Click OK and write updates to the controller
- Start the logger (e.g. continuous, trigger condition, event condition)
- The data files can be found in the folder specified in the FTP client settings
- test.commander
-
Navigate to Host Interface > FTP > Client settings
- Set the Configuration mode to manually. Expand this section.
- Change the FTP connection count from 0 to 1. Change the connection settings:
-
Server address: The static IP of the FTP server
-
Username: The username setup in the FTP server
-
Password: The password for the user account
-
Port: The listening port of the FTP server (e.g. 21)
-
Use passive mode: No
-
Type: unknown
-
Directory: Leave blank
-
-
- GI.bench
-
-
- Click OK to save the settings.
- Back in the project window, highlight the controller and select Logger configuration
- Configure the logger: select the channels to save, assign triggers, and the main destination to save the data.
- To send data to an FTP server, place a checkmark next to Send data additionally to FTP-server and select the pre-configured FTP server. Click OK to save the settings.
- To send data to an FTP server, place a checkmark next to Send data additionally to FTP-server and select the pre-configured FTP server. Click OK to save the settings.
- Write the updates to the controller: File > Write Project (Update)
- Start the logger (i.e. trigger level, event condition, continuous)
- The data files can be found in the folder specified in the FTP server settings
- These .dat files can be viewed using test.viewer and converted into other formats such as CSV.
-
How to setup an FTP server on a PC
In this example of how to set up an FTP server, the FileZilla Server for Windows is used.
- Download and install the FileZilla Server for Windows.
- Add FileZilla as an exception to Windows Firewall or turn the Firewall off
- Open Control Panel
- Navigate to System and Security > Windows Firewall
- On the left-hand menu, select Allow a program or feature through Windows Firewall
- From the list, select FileZilla Server and FileZilla Server Interface or select
Allow another program if the programs aren’t already listed.- If not on the list select Allow another program
- In the next window scroll and find the 2 programs
- If not listed there select Browse and navigate to the installation directory: C:\Program Files\FileZilla Server
-
-
- Select one program and click Open, repeat for the second program
- Select one program and click Add, repeat for the second program
- For each program click the check the boxes then click OK.
-
- Run the FTP Server. Use the default settings and click OK. It will prompt you to create an admin password.
- Server Address: 127.0.0.1
- Port: 14148
- Go to Server > Configure
- In the server settings window, navigate to the Administration section. The listening port and password previously defined will be shown
- Navigate to the Groups section. Add a new group. Define the virtual and native paths.
- In the server settings window, navigate to the Administration section. The listening port and password previously defined will be shown
- Navigate to the Users section
- Click Add to create a new user and give them a name
- Make sure the box for User is enabled is checked. Change the credentials option to require a password. Enter the desired password.
- Enter virtual and native paths. Make sure the access mode is set to Read + Write
- Click OK to save settings.
- Click Add to create a new user and give them a name