Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use module dyntools to get the channel values from a .out file.

import dyntools

outfile = 'TripGen102.out'
chnfobj = dyntools.CHNF('TripGen102.out')
sh_ttl, ch_id, ch_data = chnfobj.get_data()

# extract list with time
t = ch_data.get('time')  

# extract list with values for channel ch
v = ch_data.get(ch)

chid is a dictionary with channel id's and chdata is a dictionary with time and all channel values