There are several predefined decoders, e.g. EM410x and T55xx
An example output:
You just need decode the text data into signed binary integer, with a simple script like (arg1 is pm3 input, arg2 is binary output):
#!/usr/bin/env python3
import sys
import struct
with open(sys.argv[2], "bw") as out:
for line in open(sys.argv[1]):
i = int(line.rstrip())
b = struct.pack("b", i)
out.write(b)
Then you import it into Pulseview via "Import Raw analog data without header". Select S8 (signed 8-bit) as data format, 125000 Hz as sample rate, 1 channel.
Next, click on the imported channel on the left (CH1) and select "Conversion" to "to logic via threshold" or "logic via schmitt-trigger".
Then select the decoder (EM4100 for instance) and select CH1 as to decode on. You may have to set conversion threshold on CH1 to "average +/- 15%" to work correctly sometimes.
]]>