Five ways to connect your software to its I/O
Designers connect a real-time system to its I/O in one of five ways. Here is each one: what it is, how the solution we build stands in for your device, what to tell us in the form, and what it takes to move to your real device.
Found your way? Each section ends with a button that opens the form with that way already chosen.
The same in all five
- Your software runs on INtime Node A. A simulator on Node B stands where your device would stand. We run both for two minutes, measure, and film the screens.
- In the form, part A is your software and part B is the device: what it answers, when, and what it does on its own. Each part takes files.
- The simulator behaves the way you describe. A passing run is evidence against that model, not against your device.
1A Contec card
One or more Contec PCI Express digital I/O cards in the PC: the three we have an INtime driver for. Your software reads and writes the card's ports.
What we simulate
The values on the card's ports. Not its timing, interrupts or filters.
What you tell us
- In the form, choose each card your software uses – DIO-1616L-PE, DIO-6464L-PE or DO-32L-PE – and whether it is input, output or both. The simulator on Node B plays the reverse side (the Contec cards in the form).
- In part A: what your software does with each card. The form does not go on until every card you chose has its use.
- In part B: which lines you use, what is wired to them, and what the device on them does on its own.
To your real card
Our INtime driver for the card, already in your solution. It has not yet run on a real card, so the first run on yours is its first test.
On Contec's site: PC-HELPER – Contec's PC-based I/O · its PCI Express cards · for example DIO-1616L-PE
2A UEI card
A UEI unit – a box that holds a range of I/O cards inside it – reached over Ethernet in UEI's own protocol. One box is one address; its cards are told apart by number.
What we simulate
The data path: the frames, the card numbers, the timing and the values. Not the box's own start-up handshake, and not the behaviour of your application against the real box.
What you tell us
- In the form, choose each card your software uses, from the 50 UEI cards we have both UEI's own sample program and our simulator for, and whether it is input, output or both. The simulator on Node B plays the reverse side (the UEI cards we simulate).
- In part A: what your software does with each card. The form does not go on until every card you chose has its use.
- In part B: which cards or layers and which channels, and what the device on them does – when, with what values, and on its own.
To your real box
Almost transparent: the same program, one start-up argument changes. If production later moves to another card, your application stays – only the part that talks to the card is rewritten, from that card's documentation.
On UEI's site: UEI's products · its chassis and I/O boards, quick reference (PDF)
3TCP/IP
An Ethernet port, in a protocol over TCP or UDP whose details the maker of your device sets freely – or a standard protocol.
What we simulate
All of it: the same messages, at the same address and port, as you define them.
What you tell us
- In part B: the messages, who sends what and when, UDP or TCP, the ports – or the standard's name and version.
- Helps most as a file: the protocol document – each message's fields, sizes and units – and code that already talks to the device.
- Say nothing about it, and the simulator speaks a simple protocol of our choosing; the summary says so. Traffic faster than every 10 ms is built at 10 ms, and the summary says that too.
To your real device
Almost immediate: the far end changes, nothing else does.
4Shared memory
Your software and the I/O device exchange data through memory – the device's own, such as an FPGA board with DMA. Each side writes its data there and signals the other that it is ready.
What we simulate
The discipline – the rings, the doorbells, what happens when one side stops – on a memory layout of our own, not your device's.
What you tell us
- In part B: what each side writes, how big and how often, and how each side signals it is ready.
- Helps most as a file: the memory map – where the data, the doorbell and the status registers are, the ring layout, how the interrupt is raised and cleared.
- A card with registers and a FIFO – most PCIe serial, digital and analog cards – is not this one: choose Other.
To your real device
Writing its INtime driver from the maker's documentation: finding it on the PCI bus, mapping its memory, its registers and its interrupt. The more of its interface you describe, the less of that driver is guessed.
5Other – an interface we did not list
An interface outside the four – a serial port, a CAN bus, a fieldbus. You define it with files: in part A for your software, in part B for the device we simulate. Or no I/O at all.
What we simulate
The device as your files and part B define it, where a simulator can stand in for it on Node B. Where it cannot – a physical bus with no software on the other end – the delivery says so and why.
What you tell us
- In part B: the device and its interface – the messages, the timing, who starts.
- Helps most as files: the interface document – its messages, timing and settings, such as a baud rate or an address – and code that already talks to the device on another system.
No I/O at all
Your software runs on its own schedule and talks to no device. What we measure is INtime's own timing: the period and its jitter.
To your real device
The same interface to the real device. How much changes depends on how fully your files define it.