The invention relates to a method and
system for obtaining
analysis data in a semi-physical
simulation process, the method is applied to a
simulation computer end, and the method comprises the steps that when
simulation starts, recording configuration issued by a
data analysis computer is received, and the recording configuration comprises a sampling recording period, a segmented recording condition, a to-be-recorded
signal set and a
data recording layout; based on the to-be-recorded
signal set, establishing a corresponding relationship between the
record description information and the field offset and the corresponding relationship between the
record signal identifier and the field length; and creating an initial segmented
data recording file and writing segment header information. Segmental recording conditions are judged step by step in simulation operation, and if not, the to-be-recorded signals are read from the model according to a sampling recording period and packaged into fixed-length records according to
layout, and the fixed-length records are additionally written; and when the segmentation condition is met, ending the current segmentation, generating a completion identifier, creating a new segmented file, switching and writing, and circulating until the simulation is finished.