The sample projects are working applications, not snippets. Each one combines streams, drivers, models and the recorder
the way a real system does. Open the one closest to your own system and copy its config.json and
streams.json as a starting point.
1. Camera emulator (Raspberry Pi 5 / Rock 5B)
A small Linux board plays the role of a camera, so the application under test receives frames through its normal camera driver and cannot tell the difference from the real device. No camera hardware is needed on the bench, and the same frames can be repeated exactly.
- USB camera (UVC). The board runs the UVC gadget driver and shows up on the PC as a standard USB
camera. The Raspberry Pi 5 uses the
USB2library with a fixed gadget; the Rock 5B uses theUSB3library (UVCGadgetAPI3), where the formats (YUYV, YU12, MJPEG), resolutions, frame rates and camera controls (brightness, exposure ...) are all set instreams.json. Control changes made on the PC reach the application. - GigE Vision camera. The same idea is used for an Ethernet camera: the board answers as a GigE camera so the
application's GenICam driver (
GenICamGigEAPI) can be tested with no real camera. - On the PC side nothing changes: the
GenICamDriverstream is configured exactly as for a real USB3 Vision or GigE Vision camera, so the sample proves the application with the real driver path.
Read with it: UVC gadget driver, Troubleshooting the UVC gadget, Troubleshooting GenICam cameras.
2. Software-in-the-loop and hardware-in-the-loop (SIL / HIL)
This sample is a bus-connected system run in two ways from the same project and models. Only the stream configuration changes.
| SIL – software in the loop | HIL – hardware in the loop | |
|---|---|---|
| The other side of the bus | Simulated by the application (MuxBus stream in simulation mode, no card) | Real equipment on a real MIL-STD-1553 bus |
| Interface | None needed: runs on any PC | A 1553 card, or a 1553 layer of a UEI rack on Ethernet |
| What changes | The stream's interfaceAPILib (card library or UEIMuxBusAPI) and its interface keys. Models, blocks and bus schedule stay. | |
Start with SIL to develop and test the logic with repeatable results, then switch the stream to the hardware library for HIL. Streams of different hardware can live in the same program, each with its own settings.
Read with it: MuxBus stream, UEI drivers, Troubleshooting UEI.
3. Recording and playback of synchronized sensor data
This sample records time-synchronized data of an inertial measurement unit (IMU), an inertial navigation system (INS) and camera images, then plays the session back in the CoreEngine so the models run on exactly the recorded data.
- Recording. The recorder stores the selected data blocks every frame next to the camera frames and timestamps, on one or several drives (striping) so an 11 MB camera frame at video rate does not lose frames.
- Playback. A recorded session is replayed by the CoreEngine (
control:runplayback) and can be opened in the recording viewer to step through records and graphs. - Visualization. The application sends the navigation state over the GDL90 standard protocol (UDP) to an instrumentation display application, which shows it as 2D and 3D instruments (flight instruments, attitude, map). The display needs no APIC-specific interface: any GDL90 receiver works.
Read with it: Recording, How to record and play back, DI Panel, Troubleshooting GDL90.
4. Real-time application on NVIDIA Jetson
A real-time application running the CoreEngine on an NVIDIA Jetson board. It shows the project built for a Linux ARM target, with fixed-rate frames, CPU affinity and priority for the engine and driver threads, and no memory allocation in the run loop.
Read with it: Advanced real-time topics, How to tune real-time behavior, Profile reports.