Skip to content

Instantly share code, notes, and snippets.

View asemlucben's full-sized avatar
📡
Working

Luca Bennati asemlucben

📡
Working
View GitHub Profile
@asemlucben
asemlucben / ExportOptixApplicationToUsb.ps1
Created October 16, 2025 09:09
How to export an FT Optix application to an encrypted .z file to be loaded from USB
$projectPath = "D:\temp\NewHMIProject12\NewHMIProject12.optix"
$optixIdePath = "C:\Program Files\Rockwell Automation\FactoryTalk Optix\Studio 1.6.2.36\FTOptixStudio.exe"
$7zipPath = "C:\Program Files\7-Zip\7z.exe"
$outputPath = "C:\Users\LabUser\Downloads\"
$platform = "Yocto_arm64"
$optixPanelPassword = "SomeComplexPassword"
# Create a temporary directory for the export process
Write-Host "Creating temporary directory for export..."
$tempDir = New-Item -ItemType Directory -Path "$env:TEMP\OptixExportTemp" -Force
@asemlucben
asemlucben / docker-compose.yml
Created October 16, 2025 09:07
Browse Optix Edge/Embedded Edge folders and volumes using a WebUI
services:
filebrowser:
image: filebrowser/filebrowser:latest
container_name: filebrowser
ports:
- "18081:80" # Access via http://address:18081
volumes:
- /storage/sd1/:/srv/sd1 # Assuming the SD is plugged in
- /storage/usb1/:/srv/usb1 # Assuming the USB is plugged in
- /persistent/data/shared:/srv/shared # Shared folder where all services can share data
@asemlucben
asemlucben / FTOptixRuntimeAsService.ps1
Created November 13, 2024 15:45
Execute FactoryTalk Optix Runtime as a service
# Copy this file to the same folder where the FTOptixRuntime.exe was exported
# Then execute the script as administrator
Write-Host "Stopping FactoryTalkOptixRuntimeService"
# Stop the service first
$stopResult = sc.exe stop "FactoryTalkOptixRuntimeService"
if (($stopResult -like "*1062*") -or ($stopResult -like "*1060*")) {
Write-Host "The service has not been started, no need to stop."