Proyecto
This commit is contained in:
commit
3e7835e670
BIN
Datasheets/Banco IGBTS datasheet.pdf
Normal file
BIN
Datasheets/Banco IGBTS datasheet.pdf
Normal file
Binary file not shown.
BIN
Datasheets/Encoder.pdf
Normal file
BIN
Datasheets/Encoder.pdf
Normal file
Binary file not shown.
BIN
Datasheets/IO397 - Hardware Reference Manual v1.2.pdf
Normal file
BIN
Datasheets/IO397 - Hardware Reference Manual v1.2.pdf
Normal file
Binary file not shown.
BIN
Datasheets/OptoacopladorTLP250.pdf
Normal file
BIN
Datasheets/OptoacopladorTLP250.pdf
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/banana.prt.1
Normal file
BIN
Diseños 3D/Caja conexiones/banana.prt.1
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/banana.prt.2
Normal file
BIN
Diseños 3D/Caja conexiones/banana.prt.2
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/bnc_adapter.prt.1
Normal file
BIN
Diseños 3D/Caja conexiones/bnc_adapter.prt.1
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/bnc_adapter.prt.2
Normal file
BIN
Diseños 3D/Caja conexiones/bnc_adapter.prt.2
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/bnc_adapter.prt.3
Normal file
BIN
Diseños 3D/Caja conexiones/bnc_adapter.prt.3
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/bnc_adapter.prt.4
Normal file
BIN
Diseños 3D/Caja conexiones/bnc_adapter.prt.4
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/bnc_adapter.prt.5
Normal file
BIN
Diseños 3D/Caja conexiones/bnc_adapter.prt.5
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure.asm.1
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure.asm.1
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure.asm.2
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure.asm.2
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure.asm.3
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure.asm.3
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure.asm.4
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure.asm.4
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure.asm.5
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure.asm.5
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure.asm.6
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure.asm.6
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure.asm.7
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure.asm.7
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure.asm.8
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure.asm.8
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.1
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.1
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.10
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.10
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.11
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.11
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.12
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.12
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.13
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.13
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.14
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.14
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.15
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.15
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.16
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.16
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.17
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.17
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.18
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.18
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.19
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.19
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.2
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.2
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.3
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.3
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.4
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.4
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.5
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.5
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.6
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.6
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.7
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.7
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.8
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.8
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.9
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.prt.9
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.stl
Normal file
BIN
Diseños 3D/Caja conexiones/enclosure_bottom.stl
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/m1217p.prt.1
Normal file
BIN
Diseños 3D/Caja conexiones/m1217p.prt.1
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/m1217p.prt.2
Normal file
BIN
Diseños 3D/Caja conexiones/m1217p.prt.2
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/m1217p.prt.3
Normal file
BIN
Diseños 3D/Caja conexiones/m1217p.prt.3
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/m1217p.prt.4
Normal file
BIN
Diseños 3D/Caja conexiones/m1217p.prt.4
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/m1217p.prt.5
Normal file
BIN
Diseños 3D/Caja conexiones/m1217p.prt.5
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/m1217p.prt.6
Normal file
BIN
Diseños 3D/Caja conexiones/m1217p.prt.6
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/pcb.prt.1
Normal file
BIN
Diseños 3D/Caja conexiones/pcb.prt.1
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/pcb.prt.2
Normal file
BIN
Diseños 3D/Caja conexiones/pcb.prt.2
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/pcb.prt.3
Normal file
BIN
Diseños 3D/Caja conexiones/pcb.prt.3
Normal file
Binary file not shown.
BIN
Diseños 3D/Caja conexiones/pcb.prt.4
Normal file
BIN
Diseños 3D/Caja conexiones/pcb.prt.4
Normal file
Binary file not shown.
BIN
Esquemáticos/Esquemático general.pdf
Normal file
BIN
Esquemáticos/Esquemático general.pdf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,83 @@
|
|||||||
|
{
|
||||||
|
"board": {
|
||||||
|
"active_layer": 31,
|
||||||
|
"active_layer_preset": "All Layers",
|
||||||
|
"auto_track_width": true,
|
||||||
|
"hidden_netclasses": [],
|
||||||
|
"hidden_nets": [],
|
||||||
|
"high_contrast_mode": 0,
|
||||||
|
"net_color_mode": 1,
|
||||||
|
"opacity": {
|
||||||
|
"images": 0.6,
|
||||||
|
"pads": 1.0,
|
||||||
|
"tracks": 1.0,
|
||||||
|
"vias": 1.0,
|
||||||
|
"zones": 0.6
|
||||||
|
},
|
||||||
|
"selection_filter": {
|
||||||
|
"dimensions": true,
|
||||||
|
"footprints": true,
|
||||||
|
"graphics": true,
|
||||||
|
"keepouts": true,
|
||||||
|
"lockedItems": false,
|
||||||
|
"otherItems": true,
|
||||||
|
"pads": true,
|
||||||
|
"text": true,
|
||||||
|
"tracks": true,
|
||||||
|
"vias": true,
|
||||||
|
"zones": true
|
||||||
|
},
|
||||||
|
"visible_items": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3,
|
||||||
|
4,
|
||||||
|
5,
|
||||||
|
8,
|
||||||
|
9,
|
||||||
|
10,
|
||||||
|
11,
|
||||||
|
12,
|
||||||
|
13,
|
||||||
|
15,
|
||||||
|
16,
|
||||||
|
17,
|
||||||
|
18,
|
||||||
|
19,
|
||||||
|
20,
|
||||||
|
21,
|
||||||
|
22,
|
||||||
|
23,
|
||||||
|
24,
|
||||||
|
25,
|
||||||
|
26,
|
||||||
|
27,
|
||||||
|
28,
|
||||||
|
29,
|
||||||
|
30,
|
||||||
|
32,
|
||||||
|
33,
|
||||||
|
34,
|
||||||
|
35,
|
||||||
|
36,
|
||||||
|
39,
|
||||||
|
40
|
||||||
|
],
|
||||||
|
"visible_layers": "fffffff_ffffffff",
|
||||||
|
"zone_display_mode": 0
|
||||||
|
},
|
||||||
|
"git": {
|
||||||
|
"repo_password": "",
|
||||||
|
"repo_type": "",
|
||||||
|
"repo_username": "",
|
||||||
|
"ssh_key": ""
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"filename": "AmplifOptoacopladorEnclosure.kicad_prl",
|
||||||
|
"version": 3
|
||||||
|
},
|
||||||
|
"project": {
|
||||||
|
"files": []
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,602 @@
|
|||||||
|
{
|
||||||
|
"board": {
|
||||||
|
"3dviewports": [],
|
||||||
|
"design_settings": {
|
||||||
|
"defaults": {
|
||||||
|
"apply_defaults_to_fp_fields": false,
|
||||||
|
"apply_defaults_to_fp_shapes": false,
|
||||||
|
"apply_defaults_to_fp_text": false,
|
||||||
|
"board_outline_line_width": 0.05,
|
||||||
|
"copper_line_width": 0.2,
|
||||||
|
"copper_text_italic": false,
|
||||||
|
"copper_text_size_h": 1.5,
|
||||||
|
"copper_text_size_v": 1.5,
|
||||||
|
"copper_text_thickness": 0.3,
|
||||||
|
"copper_text_upright": false,
|
||||||
|
"courtyard_line_width": 0.05,
|
||||||
|
"dimension_precision": 4,
|
||||||
|
"dimension_units": 3,
|
||||||
|
"dimensions": {
|
||||||
|
"arrow_length": 1270000,
|
||||||
|
"extension_offset": 500000,
|
||||||
|
"keep_text_aligned": true,
|
||||||
|
"suppress_zeroes": false,
|
||||||
|
"text_position": 0,
|
||||||
|
"units_format": 1
|
||||||
|
},
|
||||||
|
"fab_line_width": 0.1,
|
||||||
|
"fab_text_italic": false,
|
||||||
|
"fab_text_size_h": 1.0,
|
||||||
|
"fab_text_size_v": 1.0,
|
||||||
|
"fab_text_thickness": 0.15,
|
||||||
|
"fab_text_upright": false,
|
||||||
|
"other_line_width": 0.1,
|
||||||
|
"other_text_italic": false,
|
||||||
|
"other_text_size_h": 1.0,
|
||||||
|
"other_text_size_v": 1.0,
|
||||||
|
"other_text_thickness": 0.15,
|
||||||
|
"other_text_upright": false,
|
||||||
|
"pads": {
|
||||||
|
"drill": 0.762,
|
||||||
|
"height": 1.524,
|
||||||
|
"width": 1.524
|
||||||
|
},
|
||||||
|
"silk_line_width": 0.1,
|
||||||
|
"silk_text_italic": false,
|
||||||
|
"silk_text_size_h": 1.0,
|
||||||
|
"silk_text_size_v": 1.0,
|
||||||
|
"silk_text_thickness": 0.1,
|
||||||
|
"silk_text_upright": false,
|
||||||
|
"zones": {
|
||||||
|
"min_clearance": 0.5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"diff_pair_dimensions": [
|
||||||
|
{
|
||||||
|
"gap": 0.0,
|
||||||
|
"via_gap": 0.0,
|
||||||
|
"width": 0.0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"drc_exclusions": [],
|
||||||
|
"meta": {
|
||||||
|
"version": 2
|
||||||
|
},
|
||||||
|
"rule_severities": {
|
||||||
|
"annular_width": "error",
|
||||||
|
"clearance": "error",
|
||||||
|
"connection_width": "warning",
|
||||||
|
"copper_edge_clearance": "error",
|
||||||
|
"copper_sliver": "warning",
|
||||||
|
"courtyards_overlap": "error",
|
||||||
|
"diff_pair_gap_out_of_range": "error",
|
||||||
|
"diff_pair_uncoupled_length_too_long": "error",
|
||||||
|
"drill_out_of_range": "error",
|
||||||
|
"duplicate_footprints": "warning",
|
||||||
|
"extra_footprint": "warning",
|
||||||
|
"footprint": "error",
|
||||||
|
"footprint_symbol_mismatch": "warning",
|
||||||
|
"footprint_type_mismatch": "ignore",
|
||||||
|
"hole_clearance": "error",
|
||||||
|
"hole_near_hole": "error",
|
||||||
|
"holes_co_located": "warning",
|
||||||
|
"invalid_outline": "error",
|
||||||
|
"isolated_copper": "warning",
|
||||||
|
"item_on_disabled_layer": "error",
|
||||||
|
"items_not_allowed": "error",
|
||||||
|
"length_out_of_range": "error",
|
||||||
|
"lib_footprint_issues": "warning",
|
||||||
|
"lib_footprint_mismatch": "warning",
|
||||||
|
"malformed_courtyard": "error",
|
||||||
|
"microvia_drill_out_of_range": "error",
|
||||||
|
"missing_courtyard": "ignore",
|
||||||
|
"missing_footprint": "warning",
|
||||||
|
"net_conflict": "warning",
|
||||||
|
"npth_inside_courtyard": "ignore",
|
||||||
|
"padstack": "warning",
|
||||||
|
"pth_inside_courtyard": "ignore",
|
||||||
|
"shorting_items": "error",
|
||||||
|
"silk_edge_clearance": "warning",
|
||||||
|
"silk_over_copper": "warning",
|
||||||
|
"silk_overlap": "warning",
|
||||||
|
"skew_out_of_range": "error",
|
||||||
|
"solder_mask_bridge": "error",
|
||||||
|
"starved_thermal": "error",
|
||||||
|
"text_height": "warning",
|
||||||
|
"text_thickness": "warning",
|
||||||
|
"through_hole_pad_without_hole": "error",
|
||||||
|
"too_many_vias": "error",
|
||||||
|
"track_dangling": "warning",
|
||||||
|
"track_width": "error",
|
||||||
|
"tracks_crossing": "error",
|
||||||
|
"unconnected_items": "error",
|
||||||
|
"unresolved_variable": "error",
|
||||||
|
"via_dangling": "warning",
|
||||||
|
"zones_intersect": "error"
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"max_error": 0.005,
|
||||||
|
"min_clearance": 0.0,
|
||||||
|
"min_connection": 0.0,
|
||||||
|
"min_copper_edge_clearance": 0.5,
|
||||||
|
"min_hole_clearance": 0.25,
|
||||||
|
"min_hole_to_hole": 0.25,
|
||||||
|
"min_microvia_diameter": 0.2,
|
||||||
|
"min_microvia_drill": 0.1,
|
||||||
|
"min_resolved_spokes": 2,
|
||||||
|
"min_silk_clearance": 0.0,
|
||||||
|
"min_text_height": 0.8,
|
||||||
|
"min_text_thickness": 0.08,
|
||||||
|
"min_through_hole_diameter": 0.3,
|
||||||
|
"min_track_width": 0.0,
|
||||||
|
"min_via_annular_width": 0.1,
|
||||||
|
"min_via_diameter": 0.5,
|
||||||
|
"solder_mask_to_copper_clearance": 0.0,
|
||||||
|
"use_height_for_length_calcs": true
|
||||||
|
},
|
||||||
|
"teardrop_options": [
|
||||||
|
{
|
||||||
|
"td_onpadsmd": true,
|
||||||
|
"td_onroundshapesonly": false,
|
||||||
|
"td_ontrackend": false,
|
||||||
|
"td_onviapad": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"teardrop_parameters": [
|
||||||
|
{
|
||||||
|
"td_allow_use_two_tracks": true,
|
||||||
|
"td_curve_segcount": 0,
|
||||||
|
"td_height_ratio": 1.0,
|
||||||
|
"td_length_ratio": 0.5,
|
||||||
|
"td_maxheight": 2.0,
|
||||||
|
"td_maxlen": 1.0,
|
||||||
|
"td_on_pad_in_zone": false,
|
||||||
|
"td_target_name": "td_round_shape",
|
||||||
|
"td_width_to_size_filter_ratio": 0.9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"td_allow_use_two_tracks": true,
|
||||||
|
"td_curve_segcount": 0,
|
||||||
|
"td_height_ratio": 1.0,
|
||||||
|
"td_length_ratio": 0.5,
|
||||||
|
"td_maxheight": 2.0,
|
||||||
|
"td_maxlen": 1.0,
|
||||||
|
"td_on_pad_in_zone": false,
|
||||||
|
"td_target_name": "td_rect_shape",
|
||||||
|
"td_width_to_size_filter_ratio": 0.9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"td_allow_use_two_tracks": true,
|
||||||
|
"td_curve_segcount": 0,
|
||||||
|
"td_height_ratio": 1.0,
|
||||||
|
"td_length_ratio": 0.5,
|
||||||
|
"td_maxheight": 2.0,
|
||||||
|
"td_maxlen": 1.0,
|
||||||
|
"td_on_pad_in_zone": false,
|
||||||
|
"td_target_name": "td_track_end",
|
||||||
|
"td_width_to_size_filter_ratio": 0.9
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"track_widths": [
|
||||||
|
0.0,
|
||||||
|
0.7
|
||||||
|
],
|
||||||
|
"tuning_pattern_settings": {
|
||||||
|
"diff_pair_defaults": {
|
||||||
|
"corner_radius_percentage": 80,
|
||||||
|
"corner_style": 1,
|
||||||
|
"max_amplitude": 1.0,
|
||||||
|
"min_amplitude": 0.2,
|
||||||
|
"single_sided": false,
|
||||||
|
"spacing": 1.0
|
||||||
|
},
|
||||||
|
"diff_pair_skew_defaults": {
|
||||||
|
"corner_radius_percentage": 80,
|
||||||
|
"corner_style": 1,
|
||||||
|
"max_amplitude": 1.0,
|
||||||
|
"min_amplitude": 0.2,
|
||||||
|
"single_sided": false,
|
||||||
|
"spacing": 0.6
|
||||||
|
},
|
||||||
|
"single_track_defaults": {
|
||||||
|
"corner_radius_percentage": 80,
|
||||||
|
"corner_style": 1,
|
||||||
|
"max_amplitude": 1.0,
|
||||||
|
"min_amplitude": 0.2,
|
||||||
|
"single_sided": false,
|
||||||
|
"spacing": 0.6
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"via_dimensions": [
|
||||||
|
{
|
||||||
|
"diameter": 0.0,
|
||||||
|
"drill": 0.0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"diameter": 0.7,
|
||||||
|
"drill": 0.4
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"zones_allow_external_fillets": false
|
||||||
|
},
|
||||||
|
"ipc2581": {
|
||||||
|
"dist": "",
|
||||||
|
"distpn": "",
|
||||||
|
"internal_id": "",
|
||||||
|
"mfg": "",
|
||||||
|
"mpn": ""
|
||||||
|
},
|
||||||
|
"layer_presets": [],
|
||||||
|
"viewports": []
|
||||||
|
},
|
||||||
|
"boards": [],
|
||||||
|
"cvpcb": {
|
||||||
|
"equivalence_files": []
|
||||||
|
},
|
||||||
|
"erc": {
|
||||||
|
"erc_exclusions": [],
|
||||||
|
"meta": {
|
||||||
|
"version": 0
|
||||||
|
},
|
||||||
|
"pin_map": [
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"rule_severities": {
|
||||||
|
"bus_definition_conflict": "error",
|
||||||
|
"bus_entry_needed": "error",
|
||||||
|
"bus_to_bus_conflict": "error",
|
||||||
|
"bus_to_net_conflict": "error",
|
||||||
|
"conflicting_netclasses": "error",
|
||||||
|
"different_unit_footprint": "error",
|
||||||
|
"different_unit_net": "error",
|
||||||
|
"duplicate_reference": "error",
|
||||||
|
"duplicate_sheet_names": "error",
|
||||||
|
"endpoint_off_grid": "warning",
|
||||||
|
"extra_units": "error",
|
||||||
|
"global_label_dangling": "warning",
|
||||||
|
"hier_label_mismatch": "error",
|
||||||
|
"label_dangling": "error",
|
||||||
|
"lib_symbol_issues": "warning",
|
||||||
|
"missing_bidi_pin": "warning",
|
||||||
|
"missing_input_pin": "warning",
|
||||||
|
"missing_power_pin": "error",
|
||||||
|
"missing_unit": "warning",
|
||||||
|
"multiple_net_names": "warning",
|
||||||
|
"net_not_bus_member": "warning",
|
||||||
|
"no_connect_connected": "warning",
|
||||||
|
"no_connect_dangling": "warning",
|
||||||
|
"pin_not_connected": "error",
|
||||||
|
"pin_not_driven": "error",
|
||||||
|
"pin_to_pin": "warning",
|
||||||
|
"power_pin_not_driven": "error",
|
||||||
|
"similar_labels": "warning",
|
||||||
|
"simulation_model_issue": "ignore",
|
||||||
|
"unannotated": "error",
|
||||||
|
"unit_value_mismatch": "error",
|
||||||
|
"unresolved_variable": "error",
|
||||||
|
"wire_dangling": "error"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"pinned_footprint_libs": [],
|
||||||
|
"pinned_symbol_libs": []
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"filename": "AmplifOptoacopladorEnclosure.kicad_pro",
|
||||||
|
"version": 1
|
||||||
|
},
|
||||||
|
"net_settings": {
|
||||||
|
"classes": [
|
||||||
|
{
|
||||||
|
"bus_width": 12,
|
||||||
|
"clearance": 0.2,
|
||||||
|
"diff_pair_gap": 0.25,
|
||||||
|
"diff_pair_via_gap": 0.25,
|
||||||
|
"diff_pair_width": 0.2,
|
||||||
|
"line_style": 0,
|
||||||
|
"microvia_diameter": 0.3,
|
||||||
|
"microvia_drill": 0.1,
|
||||||
|
"name": "Default",
|
||||||
|
"pcb_color": "rgba(0, 0, 0, 0.000)",
|
||||||
|
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
||||||
|
"track_width": 0.2,
|
||||||
|
"via_diameter": 0.6,
|
||||||
|
"via_drill": 0.3,
|
||||||
|
"wire_width": 6
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"version": 3
|
||||||
|
},
|
||||||
|
"net_colors": null,
|
||||||
|
"netclass_assignments": null,
|
||||||
|
"netclass_patterns": []
|
||||||
|
},
|
||||||
|
"pcbnew": {
|
||||||
|
"last_paths": {
|
||||||
|
"gencad": "",
|
||||||
|
"idf": "",
|
||||||
|
"netlist": "",
|
||||||
|
"plot": "GerbersEnclosure/",
|
||||||
|
"pos_files": "",
|
||||||
|
"specctra_dsn": "",
|
||||||
|
"step": "",
|
||||||
|
"svg": "",
|
||||||
|
"vrml": "AmplifOptoacopladorEnclosure.wrl"
|
||||||
|
},
|
||||||
|
"page_layout_descr_file": ""
|
||||||
|
},
|
||||||
|
"schematic": {
|
||||||
|
"annotate_start_num": 0,
|
||||||
|
"bom_export_filename": "",
|
||||||
|
"bom_fmt_presets": [],
|
||||||
|
"bom_fmt_settings": {
|
||||||
|
"field_delimiter": ",",
|
||||||
|
"keep_line_breaks": false,
|
||||||
|
"keep_tabs": false,
|
||||||
|
"name": "CSV",
|
||||||
|
"ref_delimiter": ",",
|
||||||
|
"ref_range_delimiter": "",
|
||||||
|
"string_delimiter": "\""
|
||||||
|
},
|
||||||
|
"bom_presets": [],
|
||||||
|
"bom_settings": {
|
||||||
|
"exclude_dnp": false,
|
||||||
|
"fields_ordered": [
|
||||||
|
{
|
||||||
|
"group_by": false,
|
||||||
|
"label": "Reference",
|
||||||
|
"name": "Reference",
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group_by": true,
|
||||||
|
"label": "Value",
|
||||||
|
"name": "Value",
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group_by": false,
|
||||||
|
"label": "Datasheet",
|
||||||
|
"name": "Datasheet",
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group_by": false,
|
||||||
|
"label": "Footprint",
|
||||||
|
"name": "Footprint",
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group_by": false,
|
||||||
|
"label": "Qty",
|
||||||
|
"name": "${QUANTITY}",
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group_by": true,
|
||||||
|
"label": "DNP",
|
||||||
|
"name": "${DNP}",
|
||||||
|
"show": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filter_string": "",
|
||||||
|
"group_symbols": true,
|
||||||
|
"name": "Grouped By Value",
|
||||||
|
"sort_asc": true,
|
||||||
|
"sort_field": "Referencia"
|
||||||
|
},
|
||||||
|
"connection_grid_size": 50.0,
|
||||||
|
"drawing": {
|
||||||
|
"dashed_lines_dash_length_ratio": 12.0,
|
||||||
|
"dashed_lines_gap_length_ratio": 3.0,
|
||||||
|
"default_line_thickness": 6.0,
|
||||||
|
"default_text_size": 50.0,
|
||||||
|
"field_names": [],
|
||||||
|
"intersheets_ref_own_page": false,
|
||||||
|
"intersheets_ref_prefix": "",
|
||||||
|
"intersheets_ref_short": false,
|
||||||
|
"intersheets_ref_show": false,
|
||||||
|
"intersheets_ref_suffix": "",
|
||||||
|
"junction_size_choice": 3,
|
||||||
|
"label_size_ratio": 0.375,
|
||||||
|
"operating_point_overlay_i_precision": 3,
|
||||||
|
"operating_point_overlay_i_range": "~A",
|
||||||
|
"operating_point_overlay_v_precision": 3,
|
||||||
|
"operating_point_overlay_v_range": "~V",
|
||||||
|
"overbar_offset_ratio": 1.23,
|
||||||
|
"pin_symbol_size": 25.0,
|
||||||
|
"text_offset_ratio": 0.15
|
||||||
|
},
|
||||||
|
"legacy_lib_dir": "",
|
||||||
|
"legacy_lib_list": [],
|
||||||
|
"meta": {
|
||||||
|
"version": 1
|
||||||
|
},
|
||||||
|
"net_format_name": "",
|
||||||
|
"page_layout_descr_file": "",
|
||||||
|
"plot_directory": "",
|
||||||
|
"spice_current_sheet_as_root": false,
|
||||||
|
"spice_external_command": "spice \"%I\"",
|
||||||
|
"spice_model_current_sheet_as_root": true,
|
||||||
|
"spice_save_all_currents": false,
|
||||||
|
"spice_save_all_dissipations": false,
|
||||||
|
"spice_save_all_voltages": false,
|
||||||
|
"subpart_first_id": 65,
|
||||||
|
"subpart_id_separator": 0
|
||||||
|
},
|
||||||
|
"sheets": [
|
||||||
|
[
|
||||||
|
"3aa689c4-9548-4dc0-aef3-a2ecdc054a46",
|
||||||
|
"Raíz"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"text_variables": {}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
96755
Esquemáticos/Sistema de amplificación PWM/fp-info-cache
Normal file
96755
Esquemáticos/Sistema de amplificación PWM/fp-info-cache
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Simulink/FOC Control/FOC.slx
Normal file
BIN
Simulink/FOC Control/FOC.slx
Normal file
Binary file not shown.
BIN
Simulink/PWMGenerator.slx
Normal file
BIN
Simulink/PWMGenerator.slx
Normal file
Binary file not shown.
BIN
Simulink/PWMGenerator.slxc
Normal file
BIN
Simulink/PWMGenerator.slxc
Normal file
Binary file not shown.
BIN
Simulink/VF Control/PWMGenerator.slxc
Normal file
BIN
Simulink/VF Control/PWMGenerator.slxc
Normal file
Binary file not shown.
BIN
Simulink/VF Control/VFControl.mldatx
Normal file
BIN
Simulink/VF Control/VFControl.mldatx
Normal file
Binary file not shown.
BIN
Simulink/VF Control/VFControl.slx
Normal file
BIN
Simulink/VF Control/VFControl.slx
Normal file
Binary file not shown.
BIN
Simulink/VF Control/VFControl.slxc
Normal file
BIN
Simulink/VF Control/VFControl.slxc
Normal file
Binary file not shown.
13
Simulink/VF Control/VFControl_sg_rtw/Options.hpp
Normal file
13
Simulink/VF Control/VFControl_sg_rtw/Options.hpp
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#ifndef __OPTIONS_H___
|
||||||
|
#define __OPTIONS_H___
|
||||||
|
|
||||||
|
#include "simstruc_types.h"
|
||||||
|
#ifndef MT
|
||||||
|
#define MT 0 /* MT may be undefined by simstruc_types.h */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "VFControl.h"
|
||||||
|
|
||||||
|
#define FULLMULTITHREAD 1
|
||||||
|
|
||||||
|
#endif // __OPTIONS_H___
|
BIN
Simulink/VF Control/VFControl_sg_rtw/VFControl
Normal file
BIN
Simulink/VF Control/VFControl_sg_rtw/VFControl
Normal file
Binary file not shown.
3943
Simulink/VF Control/VFControl_sg_rtw/VFControl.cpp
Normal file
3943
Simulink/VF Control/VFControl_sg_rtw/VFControl.cpp
Normal file
File diff suppressed because it is too large
Load Diff
862
Simulink/VF Control/VFControl_sg_rtw/VFControl.h
Normal file
862
Simulink/VF Control/VFControl_sg_rtw/VFControl.h
Normal file
@ -0,0 +1,862 @@
|
|||||||
|
/*
|
||||||
|
* VFControl.h
|
||||||
|
*
|
||||||
|
* Academic License - for use in teaching, academic research, and meeting
|
||||||
|
* course requirements at degree granting institutions only. Not for
|
||||||
|
* government, commercial, or other organizational use.
|
||||||
|
*
|
||||||
|
* Code generation for model "VFControl".
|
||||||
|
*
|
||||||
|
* Model version : 1.1
|
||||||
|
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
||||||
|
* C++ source code generated on : Wed Oct 16 11:33:22 2024
|
||||||
|
*
|
||||||
|
* Target selection: speedgoat.tlc
|
||||||
|
* Note: GRT includes extra infrastructure and instrumentation for prototyping
|
||||||
|
* Embedded hardware selection: Intel->x86-64 (Linux 64)
|
||||||
|
* Code generation objectives: Unspecified
|
||||||
|
* Validation result: Not run
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef VFControl_h_
|
||||||
|
#define VFControl_h_
|
||||||
|
#include "rtwtypes.h"
|
||||||
|
#include "simstruc.h"
|
||||||
|
#include "fixedpoint.h"
|
||||||
|
#include "sg_fpga_io30x_setup_util.h"
|
||||||
|
#include "sg_fpga_io31x_io32x_setup_util.h"
|
||||||
|
#include "sg_fpga_io33x_setup_util.h"
|
||||||
|
#include "sg_fpga_io36x_setup_util.h"
|
||||||
|
#include "sg_fpga_io39x_setup_util.h"
|
||||||
|
#include "sg_fpga_io3xx_scatter_gather_dma.h"
|
||||||
|
#include "sg_common.h"
|
||||||
|
#include "sg_printf.h"
|
||||||
|
#include "VFControl_types.h"
|
||||||
|
#include "PWMGenerator.h"
|
||||||
|
#include <stddef.h>
|
||||||
|
#include "rtGetNaN.h"
|
||||||
|
#include <cstring>
|
||||||
|
#include "VFControl_cal.h"
|
||||||
|
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
|
||||||
|
#include "rt_nonfinite.h"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Macros for accessing real-time model data structure */
|
||||||
|
#ifndef rtmGetContTimeOutputInconsistentWithStateAtMajorStepFlag
|
||||||
|
#define rtmGetContTimeOutputInconsistentWithStateAtMajorStepFlag(rtm) ((rtm)->CTOutputIncnstWithState)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmSetContTimeOutputInconsistentWithStateAtMajorStepFlag
|
||||||
|
#define rtmSetContTimeOutputInconsistentWithStateAtMajorStepFlag(rtm, val) ((rtm)->CTOutputIncnstWithState = (val))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetDerivCacheNeedsReset
|
||||||
|
#define rtmGetDerivCacheNeedsReset(rtm) ((rtm)->derivCacheNeedsReset)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmSetDerivCacheNeedsReset
|
||||||
|
#define rtmSetDerivCacheNeedsReset(rtm, val) ((rtm)->derivCacheNeedsReset = (val))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetFinalTime
|
||||||
|
#define rtmGetFinalTime(rtm) ((rtm)->Timing.tFinal)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetSampleHitArray
|
||||||
|
#define rtmGetSampleHitArray(rtm) ((rtm)->Timing.sampleHitArray)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetStepSize
|
||||||
|
#define rtmGetStepSize(rtm) ((rtm)->Timing.stepSize)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetZCCacheNeedsReset
|
||||||
|
#define rtmGetZCCacheNeedsReset(rtm) ((rtm)->zCCacheNeedsReset)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmSetZCCacheNeedsReset
|
||||||
|
#define rtmSetZCCacheNeedsReset(rtm, val) ((rtm)->zCCacheNeedsReset = (val))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGet_TimeOfLastOutput
|
||||||
|
#define rtmGet_TimeOfLastOutput(rtm) ((rtm)->Timing.timeOfLastOutput)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmCounterLimit
|
||||||
|
#define rtmCounterLimit(rtm, idx) ((rtm)->Timing.TaskCounters.cLimit[(idx)])
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetErrorStatus
|
||||||
|
#define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmSetErrorStatus
|
||||||
|
#define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetErrorStatusPointer
|
||||||
|
#define rtmGetErrorStatusPointer(rtm) ((const char_T **)(&((rtm)->errorStatus)))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmStepTask
|
||||||
|
#define rtmStepTask(rtm, idx) ((rtm)->Timing.TaskCounters.TID[(idx)] == 0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetStopRequested
|
||||||
|
#define rtmGetStopRequested(rtm) ((rtm)->Timing.stopRequestedFlag)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmSetStopRequested
|
||||||
|
#define rtmSetStopRequested(rtm, val) ((rtm)->Timing.stopRequestedFlag = (val))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetStopRequestedPtr
|
||||||
|
#define rtmGetStopRequestedPtr(rtm) (&((rtm)->Timing.stopRequestedFlag))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetT
|
||||||
|
#define rtmGetT(rtm) (rtmGetTPtr((rtm))[0])
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetTFinal
|
||||||
|
#define rtmGetTFinal(rtm) ((rtm)->Timing.tFinal)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetTPtr
|
||||||
|
#define rtmGetTPtr(rtm) ((rtm)->Timing.t)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetTStart
|
||||||
|
#define rtmGetTStart(rtm) ((rtm)->Timing.tStart)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmTaskCounter
|
||||||
|
#define rtmTaskCounter(rtm, idx) ((rtm)->Timing.TaskCounters.TID[(idx)])
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetTimeOfLastOutput
|
||||||
|
#define rtmGetTimeOfLastOutput(rtm) ((rtm)->Timing.timeOfLastOutput)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Block signals (default storage) */
|
||||||
|
struct B_VFControl_T {
|
||||||
|
real_T xk1[4]; /* '<S23>/fluxes' */
|
||||||
|
real_T Gain[4]; /* '<S21>/Gain' */
|
||||||
|
real_T fluxes[4]; /* '<S21>/fluxes' */
|
||||||
|
real_T Sum2[4]; /* '<S21>/Sum2' */
|
||||||
|
real_T Linv[16]; /* '<S16>/Switch' */
|
||||||
|
real_T Product3[4]; /* '<S16>/Product3' */
|
||||||
|
real_T Rotoranglethetam; /* '<S15>/Rotor angle thetam' */
|
||||||
|
real_T wm_delay; /* '<S38>/wm_delay' */
|
||||||
|
real_T F2; /* '<S38>/F2' */
|
||||||
|
real_T wm_predict; /* '<S38>/wm_predict' */
|
||||||
|
real_T Sum1; /* '<S38>/Sum1' */
|
||||||
|
real_T MultiportSwitch[4]; /* '<S19>/Multiport Switch' */
|
||||||
|
real_T MultiportSwitch_p[2]; /* '<S18>/Multiport Switch' */
|
||||||
|
real_T MultiportSwitch1[2]; /* '<S18>/Multiport Switch1' */
|
||||||
|
real_T ib[4]; /* '<S18>/ib' */
|
||||||
|
real_T GainVr_Vs1[2]; /* '<S13>/Gain Vr_Vs1' */
|
||||||
|
real_T StateSpace_o1[14]; /* '<S96>/State-Space' */
|
||||||
|
real_T StateSpace_o2[6]; /* '<S96>/State-Space' */
|
||||||
|
real_T iqsids[2]; /* '<S20>/1-1' */
|
||||||
|
real_T Mult1[2]; /* '<S20>/Mult1' */
|
||||||
|
real_T Sum2_k; /* '<S20>/Sum2' */
|
||||||
|
real_T Switch2; /* '<S16>/Switch2' */
|
||||||
|
real_T GainVr_Vs[2]; /* '<S13>/Gain Vr_Vs' */
|
||||||
|
real_T u_Vb[4]; /* '<S17>/1_Vb' */
|
||||||
|
real_T MultiportSwitch1_f[2]; /* '<S17>/Multiport Switch1' */
|
||||||
|
real_T MultiportSwitch_p2[2]; /* '<S17>/Multiport Switch' */
|
||||||
|
real_T voltages[4]; /* '<S23>/voltages' */
|
||||||
|
real_T DigitalClock; /* '<S23>/Digital Clock' */
|
||||||
|
real_T IC[4]; /* '<S23>/IC' */
|
||||||
|
real_T Sum2_l; /* '<S18>/Sum2' */
|
||||||
|
real_T Sum3; /* '<S18>/Sum3' */
|
||||||
|
real_T unitconversion[19]; /* '<S13>/unit conversion' */
|
||||||
|
real_T up; /* '<S15>/1\p' */
|
||||||
|
real_T wTethr[3]; /* '<S15>/1\p1' */
|
||||||
|
real_T Unitconversion; /* '<S15>/Unit conversion' */
|
||||||
|
real_T F; /* '<S15>/F' */
|
||||||
|
real_T Sum; /* '<S15>/Sum' */
|
||||||
|
real_T u_2H; /* '<S15>/1_2H' */
|
||||||
|
real_T Rotorspeedwm; /* '<S15>/Rotor speed(wm)' */
|
||||||
|
real_T web_psb; /* '<S15>/web_psb' */
|
||||||
|
real_T DigitalClock_k; /* '<S57>/Digital Clock' */
|
||||||
|
real_T LookUpTable; /* '<S57>/Look-Up Table' */
|
||||||
|
real_T Toff; /* '<S56>/Step1' */
|
||||||
|
real_T Ton; /* '<S56>/Step' */
|
||||||
|
real_T DiscreteTimeIntegrator1; /* '<S47>/Discrete-Time Integrator1' */
|
||||||
|
real_T UnitDelay1; /* '<S47>/Unit Delay1' */
|
||||||
|
real_T Switch2_d; /* '<S56>/Switch2' */
|
||||||
|
real_T Switch3; /* '<S56>/Switch3' */
|
||||||
|
real_T Switch2_a; /* '<S41>/Switch2' */
|
||||||
|
real_T Sum3_e; /* '<S41>/Sum3' */
|
||||||
|
real_T Switch1; /* '<S49>/Switch1' */
|
||||||
|
real_T Switch5[3]; /* '<S50>/Switch5' */
|
||||||
|
real_T t; /* '<S42>/t' */
|
||||||
|
real_T Gain_p; /* '<S42>/Gain' */
|
||||||
|
real_T Product; /* '<S42>/Product' */
|
||||||
|
real_T DiscreteTimeIntegrator; /* '<S42>/Discrete-Time Integrator' */
|
||||||
|
real_T Sum_n; /* '<S42>/Sum' */
|
||||||
|
real_T Gain3; /* '<S45>/Gain3' */
|
||||||
|
real_T Switch3_o; /* '<S45>/Switch3' */
|
||||||
|
real_T Sum2_j[3]; /* '<S45>/Sum2' */
|
||||||
|
real_T Switch1_a[3]; /* '<S54>/Switch1' */
|
||||||
|
real_T Switch5_b[3]; /* '<S55>/Switch5' */
|
||||||
|
real_T Sum7[3]; /* '<S40>/Sum7' */
|
||||||
|
real_T TrigonometricFunction1[3]; /* '<S40>/Trigonometric Function1' */
|
||||||
|
real_T Product2[3]; /* '<S40>/Product2' */
|
||||||
|
real_T Ton_e; /* '<S51>/Step' */
|
||||||
|
real_T Toff_e; /* '<S51>/Step1' */
|
||||||
|
real_T Sum4; /* '<S51>/Sum4' */
|
||||||
|
real_T DataTypeConversion; /* '<S51>/Data Type Conversion' */
|
||||||
|
real_T Gain1; /* '<S52>/Gain1' */
|
||||||
|
real_T Gain3_f; /* '<S52>/Gain3' */
|
||||||
|
real_T Sum1_m; /* '<S52>/Sum1' */
|
||||||
|
real_T MultiportSwitch_h[3]; /* '<S52>/Multiport Switch' */
|
||||||
|
real_T Sum_j[3]; /* '<S52>/Sum' */
|
||||||
|
real_T TrigonometricFunction1_d[3]; /* '<S52>/Trigonometric Function1' */
|
||||||
|
real_T Product1[3]; /* '<S52>/Product1' */
|
||||||
|
real_T Gain1_m; /* '<S53>/Gain1' */
|
||||||
|
real_T Gain3_a; /* '<S53>/Gain3' */
|
||||||
|
real_T Sum1_m3; /* '<S53>/Sum1' */
|
||||||
|
real_T MultiportSwitch_n[3]; /* '<S53>/Multiport Switch' */
|
||||||
|
real_T Sum_i[3]; /* '<S53>/Sum' */
|
||||||
|
real_T TrigonometricFunction1_c[3]; /* '<S53>/Trigonometric Function1' */
|
||||||
|
real_T Product1_i[3]; /* '<S53>/Product1' */
|
||||||
|
real_T Sum4_o[3]; /* '<S43>/Sum4' */
|
||||||
|
real_T Sum8[3]; /* '<S40>/Sum8' */
|
||||||
|
real_T Clock; /* '<S73>/Clock' */
|
||||||
|
real_T Add1; /* '<S73>/Add1' */
|
||||||
|
real_T MathFunction; /* '<S73>/Math Function' */
|
||||||
|
real_T uib1; /* '<S73>/1\ib1' */
|
||||||
|
real_T uDLookupTable; /* '<S73>/1-D Lookup Table' */
|
||||||
|
real_T Add3; /* '<S73>/Add3' */
|
||||||
|
real_T Model_o1; /* '<Root>/Model' */
|
||||||
|
real_T Model_o2; /* '<Root>/Model' */
|
||||||
|
real_T Model_o3; /* '<Root>/Model' */
|
||||||
|
real_T DigitalClock_m; /* '<S74>/Digital Clock' */
|
||||||
|
real_T Add1_e; /* '<S74>/Add1' */
|
||||||
|
real_T MathFunction_l; /* '<S74>/Math Function' */
|
||||||
|
real_T uib1_h; /* '<S74>/1\ib1' */
|
||||||
|
real_T uDLookupTable_b; /* '<S74>/1-D Lookup Table' */
|
||||||
|
real_T Add3_h; /* '<S74>/Add3' */
|
||||||
|
real_T Model1_o1; /* '<Root>/Model1' */
|
||||||
|
real_T Model1_o2; /* '<Root>/Model1' */
|
||||||
|
real_T Model1_o3; /* '<Root>/Model1' */
|
||||||
|
real_T DigitalClock_ms; /* '<S75>/Digital Clock' */
|
||||||
|
real_T Add1_l; /* '<S75>/Add1' */
|
||||||
|
real_T MathFunction_o; /* '<S75>/Math Function' */
|
||||||
|
real_T uib1_e; /* '<S75>/1\ib1' */
|
||||||
|
real_T uDLookupTable_bk; /* '<S75>/1-D Lookup Table' */
|
||||||
|
real_T Add3_n; /* '<S75>/Add3' */
|
||||||
|
real_T Model2_o1; /* '<Root>/Model2' */
|
||||||
|
real_T Model2_o2; /* '<Root>/Model2' */
|
||||||
|
real_T Model2_o3; /* '<Root>/Model2' */
|
||||||
|
real_T TransportDelay; /* '<S3>/Transport Delay' */
|
||||||
|
real_T TransportDelay_i; /* '<S4>/Transport Delay' */
|
||||||
|
real_T TransportDelay_n; /* '<S5>/Transport Delay' */
|
||||||
|
real_T Switch; /* '<S84>/Switch' */
|
||||||
|
real_T Saturation[6]; /* '<S76>/Saturation' */
|
||||||
|
real_T DataTypeConversion_p[6]; /* '<S76>/Data Type Conversion' */
|
||||||
|
real_T DataTypeConversion1; /* '<S76>/Data Type Conversion1' */
|
||||||
|
real_T Product4[6]; /* '<S76>/Product4' */
|
||||||
|
real_T DataTypeConversion_f; /* '<S84>/Data Type Conversion' */
|
||||||
|
real_T Switch_e; /* '<S86>/Switch' */
|
||||||
|
real_T DataTypeConversion_l; /* '<S86>/Data Type Conversion' */
|
||||||
|
real_T Switch_k; /* '<S88>/Switch' */
|
||||||
|
real_T DataTypeConversion_h; /* '<S88>/Data Type Conversion' */
|
||||||
|
real_T Switch_i; /* '<S90>/Switch' */
|
||||||
|
real_T DataTypeConversion_k; /* '<S90>/Data Type Conversion' */
|
||||||
|
real_T Switch_a; /* '<S92>/Switch' */
|
||||||
|
real_T DataTypeConversion_i; /* '<S92>/Data Type Conversion' */
|
||||||
|
real_T Switch_a4; /* '<S94>/Switch' */
|
||||||
|
real_T DataTypeConversion_c; /* '<S94>/Data Type Conversion' */
|
||||||
|
real_T Product_n; /* '<S3>/Product' */
|
||||||
|
real_T Product_b; /* '<S4>/Product' */
|
||||||
|
real_T Product_l; /* '<S5>/Product' */
|
||||||
|
real_T Switch4; /* '<S42>/Switch4' */
|
||||||
|
real_T Gain2; /* '<S42>/Gain2' */
|
||||||
|
real_T Sum1_o; /* '<S42>/Sum1' */
|
||||||
|
real_T Gain3_m[3]; /* '<S40>/Gain3' */
|
||||||
|
real_T wtrad; /* '<S44>/Math Function' */
|
||||||
|
real_T Switch_c; /* '<S56>/Switch' */
|
||||||
|
real_T donotdeletethisgain; /* '<S64>/do not delete this gain' */
|
||||||
|
real_T donotdeletethisgain_k; /* '<S65>/do not delete this gain' */
|
||||||
|
real_T donotdeletethisgain_o; /* '<S66>/do not delete this gain' */
|
||||||
|
real_T Kv1[3]; /* '<S7>/Kv1' */
|
||||||
|
real_T donotdeletethisgain_kv; /* '<S61>/do not delete this gain' */
|
||||||
|
real_T donotdeletethisgain_b; /* '<S62>/do not delete this gain' */
|
||||||
|
real_T donotdeletethisgain_h; /* '<S63>/do not delete this gain' */
|
||||||
|
real_T Kv[3]; /* '<S7>/Kv' */
|
||||||
|
real_T UnitDelay; /* '<S73>/Unit Delay' */
|
||||||
|
real_T uRsw; /* '<S94>/1//Rsw' */
|
||||||
|
real_T uRsw_n; /* '<S92>/1//Rsw' */
|
||||||
|
real_T uRsw_i; /* '<S90>/1//Rsw' */
|
||||||
|
real_T uRsw_g; /* '<S88>/1//Rsw' */
|
||||||
|
real_T uRsw_c; /* '<S86>/1//Rsw' */
|
||||||
|
real_T uRsw_k; /* '<S84>/1//Rsw' */
|
||||||
|
real_T Switch1_j; /* '<S56>/Switch1' */
|
||||||
|
real_T MultiportSwitch1_b; /* '<S56>/Multiport Switch1' */
|
||||||
|
real_T Gain1_f; /* '<S56>/Gain1' */
|
||||||
|
real_T Product1_f; /* '<S56>/Product1' */
|
||||||
|
real_T TrigonometricFunction1_l; /* '<S56>/Trigonometric Function1' */
|
||||||
|
real_T Mod; /* '<S56>/Product' */
|
||||||
|
real_T Step; /* '<S56>/Product2' */
|
||||||
|
real_T Gain4; /* '<S45>/Gain4' */
|
||||||
|
real_T Gain3_n; /* '<S54>/Gain3' */
|
||||||
|
real_T Sum2_lw[3]; /* '<S54>/Sum2' */
|
||||||
|
real_T Constant[2]; /* '<S37>/Constant' */
|
||||||
|
real_T Gain3_e; /* '<S37>/Gain3' */
|
||||||
|
real_T TrigonometricFunction_o1; /* '<S37>/Trigonometric Function' */
|
||||||
|
real_T TrigonometricFunction_o2; /* '<S37>/Trigonometric Function' */
|
||||||
|
real_T W34wr[16]; /* '<S37>/W(3,4)=-wr' */
|
||||||
|
real_T W43wr[16]; /* '<S37>/W(4,3)=wr' */
|
||||||
|
real_T Constant_e[2]; /* '<S36>/Constant' */
|
||||||
|
real_T Gain1_e; /* '<S36>/Gain1' */
|
||||||
|
real_T TrigonometricFunction_o1_d; /* '<S36>/Trigonometric Function' */
|
||||||
|
real_T TrigonometricFunction_o2_j; /* '<S36>/Trigonometric Function' */
|
||||||
|
real_T W12wr[16]; /* '<S36>/W(1,2)=wr' */
|
||||||
|
real_T W21wr[16]; /* '<S36>/W(2,1)=-wr' */
|
||||||
|
real_T DigitalClock_kx; /* '<S35>/Digital Clock' */
|
||||||
|
real_T wewr; /* '<S35>/Sum' */
|
||||||
|
real_T Gain2_k; /* '<S35>/Gain2' */
|
||||||
|
real_T th; /* '<S35>/web_psb' */
|
||||||
|
real_T beta; /* '<S35>/Sum1' */
|
||||||
|
real_T TrigonometricFunction_o1_dn; /* '<S35>/Trigonometric Function' */
|
||||||
|
real_T TrigonometricFunction_o2_k; /* '<S35>/Trigonometric Function' */
|
||||||
|
real_T TrigonometricFunction1_o1; /* '<S35>/Trigonometric Function1' */
|
||||||
|
real_T TrigonometricFunction1_o2; /* '<S35>/Trigonometric Function1' */
|
||||||
|
real_T W341wr[16]; /* '<S35>/W(3,4)=1-wr' */
|
||||||
|
real_T W43wr1[16]; /* '<S35>/W(4,3)=wr-1' */
|
||||||
|
real_T ira; /* '<S34>/ira' */
|
||||||
|
real_T irb; /* '<S34>/irb' */
|
||||||
|
real_T isa; /* '<S34>/isa' */
|
||||||
|
real_T isb; /* '<S34>/isb' */
|
||||||
|
real_T ira_g; /* '<S33>/ira' */
|
||||||
|
real_T irb_g; /* '<S33>/irb' */
|
||||||
|
real_T isa_a; /* '<S33>/isa' */
|
||||||
|
real_T isb_f; /* '<S33>/isb' */
|
||||||
|
real_T ira_p; /* '<S32>/ira' */
|
||||||
|
real_T irb_n; /* '<S32>/irb' */
|
||||||
|
real_T isa_m; /* '<S32>/isa' */
|
||||||
|
real_T isb_p; /* '<S32>/isb' */
|
||||||
|
real_T vdr; /* '<S30>/vdr' */
|
||||||
|
real_T vds; /* '<S30>/vds' */
|
||||||
|
real_T vqr; /* '<S30>/vqr' */
|
||||||
|
real_T vqs; /* '<S30>/vqs' */
|
||||||
|
real_T vdr_p; /* '<S29>/vdr' */
|
||||||
|
real_T vds_i; /* '<S29>/vds' */
|
||||||
|
real_T vqr_l; /* '<S29>/vqr' */
|
||||||
|
real_T vqs_i; /* '<S29>/vqs' */
|
||||||
|
real_T vdr_l; /* '<S28>/vdr' */
|
||||||
|
real_T vds_f; /* '<S28>/vds' */
|
||||||
|
real_T vqr_j; /* '<S28>/vqr' */
|
||||||
|
real_T vqs_l; /* '<S28>/vqs' */
|
||||||
|
real_T ukuk1[4]; /* '<S23>/sum' */
|
||||||
|
real_T RLinv[16]; /* '<S16>/Switch1' */
|
||||||
|
real_T MultiportSwitch1_l[16]; /* '<S19>/Multiport Switch1' */
|
||||||
|
real_T A[16]; /* '<S16>/Sum1' */
|
||||||
|
real_T wbaseTs2[16]; /* '<S27>/wbase*Ts//2' */
|
||||||
|
real_T Sum1_k[16]; /* '<S27>/Sum1' */
|
||||||
|
real_T inversion[16]; /* '<S27>/inversion' */
|
||||||
|
real_T wbaseTs2_c[16]; /* '<S27>/wbase*Ts//2 ' */
|
||||||
|
real_T Product1_d[4]; /* '<S23>/Product1' */
|
||||||
|
real_T Sum5[16]; /* '<S27>/Sum5' */
|
||||||
|
real_T Product4_k[16]; /* '<S27>/Product4' */
|
||||||
|
real_T Product2_o[4]; /* '<S23>/Product2' */
|
||||||
|
real_T xk[4]; /* '<S23>/Ad*x(k-1) + Bd*( u(k-1) + u(k))' */
|
||||||
|
real_T Delay; /* '<S22>/Delay' */
|
||||||
|
real_T TmpSignalConversionAtMathFuncti[3];
|
||||||
|
real_T MathFunction_p[3]; /* '<S24>/Math Function' */
|
||||||
|
real_T Sum2_i; /* '<S24>/Sum2' */
|
||||||
|
real_T MathFunction1; /* '<S24>/Math Function1' */
|
||||||
|
real_T Product2_m[2]; /* '<S26>/Product2' */
|
||||||
|
real_T Product_c[2]; /* '<S26>/Product' */
|
||||||
|
real_T phimq; /* '<S26>/Sum2' */
|
||||||
|
real_T Product1_j[2]; /* '<S26>/Product1' */
|
||||||
|
real_T phimd; /* '<S26>/Sum1' */
|
||||||
|
real_T Phisat; /* '<S22>/Math Function' */
|
||||||
|
real_T Isat; /* '<S22>/1-D Lookup Table' */
|
||||||
|
real_T Switch_g; /* '<S22>/Switch' */
|
||||||
|
real_T Lminrows13col13[16]; /* '<S25>/Lm in rows[1,3] & col[1,3]' */
|
||||||
|
real_T Lminrows24col24[16]; /* '<S25>/Lm in rows[2,4] & col[2,4]' */
|
||||||
|
real_T Sum2_e[16]; /* '<S25>/Sum2' */
|
||||||
|
real_T Linv_h[16]; /* '<S22>/inversion' */
|
||||||
|
real_T RLinv_m[16]; /* '<S22>/Product1' */
|
||||||
|
real_T Lm; /* '<S22>/Product' */
|
||||||
|
boolean_T RelationalOperator3; /* '<S49>/Relational Operator3' */
|
||||||
|
boolean_T Amplitude; /* '<S46>/Relational Operator' */
|
||||||
|
boolean_T LogicalOperator1; /* '<S49>/Logical Operator1' */
|
||||||
|
boolean_T DataTypeConversion2; /* '<S56>/Data Type Conversion2' */
|
||||||
|
boolean_T LogicalOperator1_l; /* '<S56>/Logical Operator1' */
|
||||||
|
boolean_T RelationalOperator1; /* '<S56>/Relational Operator1' */
|
||||||
|
boolean_T DataTypeConversion1_f; /* '<S56>/Data Type Conversion1' */
|
||||||
|
boolean_T LogicalOperator; /* '<S56>/Logical Operator' */
|
||||||
|
boolean_T RelationalOperator3_f; /* '<S54>/Relational Operator3' */
|
||||||
|
boolean_T Phase; /* '<S46>/Relational Operator1' */
|
||||||
|
boolean_T LogicalOperator1_b; /* '<S54>/Logical Operator1' */
|
||||||
|
boolean_T DataTypeConversion1_j; /* '<S51>/Data Type Conversion1' */
|
||||||
|
boolean_T DataTypeConversion2_m; /* '<S51>/Data Type Conversion2' */
|
||||||
|
boolean_T LogicalOperator_l; /* '<S51>/Logical Operator' */
|
||||||
|
boolean_T Compare; /* '<S77>/Compare' */
|
||||||
|
boolean_T Frequency; /* '<S46>/Relational Operator2' */
|
||||||
|
boolean_T RelationalOperator; /* '<S56>/Relational Operator' */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Block states (default storage) for system '<Root>' */
|
||||||
|
struct DW_VFControl_T {
|
||||||
|
real_T fluxes_DSTATE[4]; /* '<S23>/fluxes' */
|
||||||
|
real_T fluxes_DSTATE_l[4]; /* '<S21>/fluxes' */
|
||||||
|
real_T Rotoranglethetam_DSTATE; /* '<S15>/Rotor angle thetam' */
|
||||||
|
real_T wm_delay_DSTATE; /* '<S38>/wm_delay' */
|
||||||
|
real_T wm_predict_DSTATE; /* '<S38>/wm_predict' */
|
||||||
|
real_T voltages_DSTATE[4]; /* '<S23>/voltages' */
|
||||||
|
real_T Rotorspeedwm_DSTATE; /* '<S15>/Rotor speed(wm)' */
|
||||||
|
real_T DiscreteTimeIntegrator1_DSTATE;/* '<S47>/Discrete-Time Integrator1' */
|
||||||
|
real_T UnitDelay1_DSTATE; /* '<S47>/Unit Delay1' */
|
||||||
|
real_T DiscreteTimeIntegrator_DSTATE;/* '<S42>/Discrete-Time Integrator' */
|
||||||
|
real_T UnitDelay_DSTATE; /* '<S73>/Unit Delay' */
|
||||||
|
real_T Delay_DSTATE; /* '<S22>/Delay' */
|
||||||
|
real_T inversion_DWORK1[16]; /* '<S27>/inversion' */
|
||||||
|
real_T inversion_DWORK3[16]; /* '<S27>/inversion' */
|
||||||
|
real_T inversion_DWORK4[16]; /* '<S27>/inversion' */
|
||||||
|
real_T inversion_DWORK4_k[16]; /* '<S22>/inversion' */
|
||||||
|
struct {
|
||||||
|
real_T modelTStart;
|
||||||
|
real_T TUbufferArea[2048];
|
||||||
|
} TransportDelay_RWORK; /* '<S3>/Transport Delay' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
real_T modelTStart;
|
||||||
|
real_T TUbufferArea[2048];
|
||||||
|
} TransportDelay_RWORK_d; /* '<S4>/Transport Delay' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
real_T modelTStart;
|
||||||
|
real_T TUbufferArea[2048];
|
||||||
|
} TransportDelay_RWORK_m; /* '<S5>/Transport Delay' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
void *AS;
|
||||||
|
void *BS;
|
||||||
|
void *CS;
|
||||||
|
void *DS;
|
||||||
|
void *DX_COL;
|
||||||
|
void *BD_COL;
|
||||||
|
void *TMP1;
|
||||||
|
void *TMP2;
|
||||||
|
void *XTMP;
|
||||||
|
void *SWITCH_STATUS;
|
||||||
|
void *SWITCH_STATUS_INIT;
|
||||||
|
void *SW_CHG;
|
||||||
|
void *G_STATE;
|
||||||
|
void *USWLAST;
|
||||||
|
void *XKM12;
|
||||||
|
void *XKP12;
|
||||||
|
void *XLAST;
|
||||||
|
void *ULAST;
|
||||||
|
void *IDX_SW_CHG;
|
||||||
|
void *Y_SWITCH;
|
||||||
|
void *SWITCH_TYPES;
|
||||||
|
void *IDX_OUT_SW;
|
||||||
|
void *SWITCH_TOPO_SAVED_IDX;
|
||||||
|
void *SWITCH_MAP;
|
||||||
|
} StateSpace_PWORK; /* '<S96>/State-Space' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
void *LoggedData[3];
|
||||||
|
} DebugPWM_PWORK; /* '<Root>/Debug PWM' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
void *LoggedData[4];
|
||||||
|
} DebugfaseA_PWORK; /* '<Root>/Debug fase A' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
void *LoggedData[4];
|
||||||
|
} DebugfaseB_PWORK; /* '<Root>/Debug fase B' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
void *LoggedData[4];
|
||||||
|
} DebugfaseC_PWORK; /* '<Root>/Debug fase C' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
void *TUbufferPtrs[2];
|
||||||
|
} TransportDelay_PWORK; /* '<S3>/Transport Delay' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
void *TUbufferPtrs[2];
|
||||||
|
} TransportDelay_PWORK_m; /* '<S4>/Transport Delay' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
void *TUbufferPtrs[2];
|
||||||
|
} TransportDelay_PWORK_f; /* '<S5>/Transport Delay' */
|
||||||
|
|
||||||
|
void *Digitaloutput1_PWORK[2]; /* '<Root>/Digital output1' */
|
||||||
|
void *Digitaloutput2_PWORK[2]; /* '<Root>/Digital output2' */
|
||||||
|
struct {
|
||||||
|
void *LoggedData[2];
|
||||||
|
} Corrientetensinmotorideal_PWORK;
|
||||||
|
/* '<Root>/Corriente//tensión motor ideal' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
void *USERIO_P_IND;
|
||||||
|
void *PROG_SPACE_P_IND;
|
||||||
|
void *CONFIG_REGISTER_P_IND;
|
||||||
|
void *CONDITIONING_MODULE_IO3xx_2x_P_IND;
|
||||||
|
void *DEVICENAME_P_IND;
|
||||||
|
void *DMA_CONTROLLER_P_IND;
|
||||||
|
} Setup_PWORK; /* '<Root>/Setup' */
|
||||||
|
|
||||||
|
int32_T inversion_DWORK2[4]; /* '<S27>/inversion' */
|
||||||
|
uint32_T m_bpIndex; /* '<S73>/1-D Lookup Table' */
|
||||||
|
uint32_T m_bpIndex_e; /* '<S74>/1-D Lookup Table' */
|
||||||
|
uint32_T m_bpIndex_p; /* '<S75>/1-D Lookup Table' */
|
||||||
|
uint32_T m_bpIndex_b; /* '<S22>/1-D Lookup Table' */
|
||||||
|
int_T StateSpace_IWORK[11]; /* '<S96>/State-Space' */
|
||||||
|
struct {
|
||||||
|
int_T Tail;
|
||||||
|
int_T Head;
|
||||||
|
int_T Last;
|
||||||
|
int_T CircularBufSize;
|
||||||
|
} TransportDelay_IWORK; /* '<S3>/Transport Delay' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
int_T Tail;
|
||||||
|
int_T Head;
|
||||||
|
int_T Last;
|
||||||
|
int_T CircularBufSize;
|
||||||
|
} TransportDelay_IWORK_g; /* '<S4>/Transport Delay' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
int_T Tail;
|
||||||
|
int_T Head;
|
||||||
|
int_T Last;
|
||||||
|
int_T CircularBufSize;
|
||||||
|
} TransportDelay_IWORK_m; /* '<S5>/Transport Delay' */
|
||||||
|
|
||||||
|
struct {
|
||||||
|
int_T MODULEARCHITECTURE_I_IND;
|
||||||
|
} Setup_IWORK; /* '<Root>/Setup' */
|
||||||
|
|
||||||
|
int8_T sinthrcosthr1_SubsysRanBC; /* '<S19>/sin(thr),cos(thr)1' */
|
||||||
|
int8_T sinthrcosthr_SubsysRanBC; /* '<S19>/sin(thr),cos(thr)' */
|
||||||
|
int8_T sinbetacosbetasinthcosth_Subsys;
|
||||||
|
/* '<S19>/sin(beta),cos(beta),sin(th),cos(th)' */
|
||||||
|
int8_T Synchronousreferenceframe_Subsy;/* '<S18>/Synchronous reference frame' */
|
||||||
|
int8_T Stationaryreferenceframe_Subsys;/* '<S18>/Stationary reference frame' */
|
||||||
|
int8_T Rotorreferenceframe_SubsysRanBC;/* '<S18>/Rotor reference frame' */
|
||||||
|
int8_T Synchronousreferenceframe_Sub_k;/* '<S17>/Synchronous reference frame' */
|
||||||
|
int8_T Stationaryreferenceframe_Subs_n;/* '<S17>/Stationary reference frame' */
|
||||||
|
int8_T Rotorreferenceframe_SubsysRan_i;/* '<S17>/Rotor reference frame' */
|
||||||
|
int8_T Saturation_SubsysRanBC; /* '<S16>/Saturation' */
|
||||||
|
uint8_T Rotorspeedwm_SYSTEM_ENABLE; /* '<S15>/Rotor speed(wm)' */
|
||||||
|
boolean_T sinthrcosthr1_MODE; /* '<S19>/sin(thr),cos(thr)1' */
|
||||||
|
boolean_T sinthrcosthr_MODE; /* '<S19>/sin(thr),cos(thr)' */
|
||||||
|
boolean_T Synchronousreferenceframe_MODE;/* '<S18>/Synchronous reference frame' */
|
||||||
|
boolean_T Stationaryreferenceframe_MODE;/* '<S18>/Stationary reference frame' */
|
||||||
|
boolean_T Rotorreferenceframe_MODE; /* '<S18>/Rotor reference frame' */
|
||||||
|
boolean_T Synchronousreferenceframe_MOD_l;/* '<S17>/Synchronous reference frame' */
|
||||||
|
boolean_T Stationaryreferenceframe_MODE_p;/* '<S17>/Stationary reference frame' */
|
||||||
|
boolean_T Rotorreferenceframe_MODE_m;/* '<S17>/Rotor reference frame' */
|
||||||
|
MdlrefDW_PWMGenerator_T Model_InstanceData;/* '<Root>/Model' */
|
||||||
|
MdlrefDW_PWMGenerator_T Model1_InstanceData;/* '<Root>/Model1' */
|
||||||
|
MdlrefDW_PWMGenerator_T Model2_InstanceData;/* '<Root>/Model2' */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Real-time Model Data Structure */
|
||||||
|
struct tag_RTM_VFControl_T {
|
||||||
|
struct SimStruct_tag * *childSfunctions;
|
||||||
|
const char_T *errorStatus;
|
||||||
|
SS_SimMode simMode;
|
||||||
|
RTWSolverInfo solverInfo;
|
||||||
|
RTWSolverInfo *solverInfoPtr;
|
||||||
|
void *sfcnInfo;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* NonInlinedSFcns:
|
||||||
|
* The following substructure contains information regarding
|
||||||
|
* non-inlined s-functions used in the model.
|
||||||
|
*/
|
||||||
|
struct {
|
||||||
|
RTWSfcnInfo sfcnInfo;
|
||||||
|
time_T *taskTimePtrs[3];
|
||||||
|
SimStruct childSFunctions[2];
|
||||||
|
SimStruct *childSFunctionPtrs[2];
|
||||||
|
struct _ssBlkInfo2 blkInfo2[2];
|
||||||
|
struct _ssSFcnModelMethods2 methods2[2];
|
||||||
|
struct _ssSFcnModelMethods3 methods3[2];
|
||||||
|
struct _ssSFcnModelMethods4 methods4[2];
|
||||||
|
struct _ssStatesInfo2 statesInfo2[2];
|
||||||
|
ssPeriodicStatesInfo periodicStatesInfo[2];
|
||||||
|
struct _ssPortInfo2 inputOutputPortInfo2[2];
|
||||||
|
struct {
|
||||||
|
time_T sfcnPeriod[1];
|
||||||
|
time_T sfcnOffset[1];
|
||||||
|
int_T sfcnTsMap[1];
|
||||||
|
struct _ssPortInputs inputPortInfo[3];
|
||||||
|
struct _ssInPortUnit inputPortUnits[3];
|
||||||
|
struct _ssInPortCoSimAttribute inputPortCoSimAttribute[3];
|
||||||
|
uint_T attribs[6];
|
||||||
|
mxArray *params[6];
|
||||||
|
struct _ssDWorkRecord dWork[1];
|
||||||
|
struct _ssDWorkAuxRecord dWorkAux[1];
|
||||||
|
} Sfcn0;
|
||||||
|
|
||||||
|
struct {
|
||||||
|
time_T sfcnPeriod[1];
|
||||||
|
time_T sfcnOffset[1];
|
||||||
|
int_T sfcnTsMap[1];
|
||||||
|
struct _ssPortInputs inputPortInfo[3];
|
||||||
|
struct _ssInPortUnit inputPortUnits[3];
|
||||||
|
struct _ssInPortCoSimAttribute inputPortCoSimAttribute[3];
|
||||||
|
uint_T attribs[6];
|
||||||
|
mxArray *params[6];
|
||||||
|
struct _ssDWorkRecord dWork[1];
|
||||||
|
struct _ssDWorkAuxRecord dWorkAux[1];
|
||||||
|
} Sfcn1;
|
||||||
|
} NonInlinedSFcns;
|
||||||
|
|
||||||
|
boolean_T zCCacheNeedsReset;
|
||||||
|
boolean_T derivCacheNeedsReset;
|
||||||
|
boolean_T CTOutputIncnstWithState;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Sizes:
|
||||||
|
* The following substructure contains sizes information
|
||||||
|
* for many of the model attributes such as inputs, outputs,
|
||||||
|
* dwork, sample times, etc.
|
||||||
|
*/
|
||||||
|
struct {
|
||||||
|
uint32_T options;
|
||||||
|
int_T numContStates;
|
||||||
|
int_T numU;
|
||||||
|
int_T numY;
|
||||||
|
int_T numSampTimes;
|
||||||
|
int_T numBlocks;
|
||||||
|
int_T numBlockIO;
|
||||||
|
int_T numBlockPrms;
|
||||||
|
int_T numDwork;
|
||||||
|
int_T numSFcnPrms;
|
||||||
|
int_T numSFcns;
|
||||||
|
int_T numIports;
|
||||||
|
int_T numOports;
|
||||||
|
int_T numNonSampZCs;
|
||||||
|
int_T sysDirFeedThru;
|
||||||
|
int_T rtwGenSfcn;
|
||||||
|
} Sizes;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Timing:
|
||||||
|
* The following substructure contains information regarding
|
||||||
|
* the timing information for the model.
|
||||||
|
*/
|
||||||
|
struct {
|
||||||
|
time_T stepSize;
|
||||||
|
uint32_T clockTick0;
|
||||||
|
uint32_T clockTickH0;
|
||||||
|
time_T stepSize0;
|
||||||
|
uint32_T clockTick1;
|
||||||
|
uint32_T clockTickH1;
|
||||||
|
time_T stepSize1;
|
||||||
|
uint32_T clockTick2;
|
||||||
|
uint32_T clockTickH2;
|
||||||
|
struct {
|
||||||
|
uint32_T TID[3];
|
||||||
|
uint32_T cLimit[3];
|
||||||
|
} TaskCounters;
|
||||||
|
|
||||||
|
time_T tStart;
|
||||||
|
time_T tFinal;
|
||||||
|
time_T timeOfLastOutput;
|
||||||
|
SimTimeStep simTimeStep;
|
||||||
|
boolean_T stopRequestedFlag;
|
||||||
|
time_T *sampleTimes;
|
||||||
|
time_T *offsetTimes;
|
||||||
|
int_T *sampleTimeTaskIDPtr;
|
||||||
|
int_T *sampleHits;
|
||||||
|
int_T *perTaskSampleHits;
|
||||||
|
time_T *t;
|
||||||
|
time_T sampleTimesArray[3];
|
||||||
|
time_T offsetTimesArray[3];
|
||||||
|
int_T sampleTimeTaskIDArray[3];
|
||||||
|
int_T sampleHitArray[3];
|
||||||
|
int_T perTaskSampleHitsArray[9];
|
||||||
|
time_T tArray[3];
|
||||||
|
} Timing;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Block signals (default storage) */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern struct B_VFControl_T VFControl_B;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Block states (default storage) */
|
||||||
|
extern struct DW_VFControl_T VFControl_DW;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Model entry point functions */
|
||||||
|
extern void VFControl_initialize(void);
|
||||||
|
extern void VFControl_step0(void);
|
||||||
|
extern void VFControl_step2(void);
|
||||||
|
extern void VFControl_terminate(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Real-time Model object */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern RT_MODEL_VFControl_T *const VFControl_M;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*-
|
||||||
|
* The generated code includes comments that allow you to trace directly
|
||||||
|
* back to the appropriate location in the model. The basic format
|
||||||
|
* is <system>/block_name, where system is the system number (uniquely
|
||||||
|
* assigned by Simulink) and block_name is the name of the block.
|
||||||
|
*
|
||||||
|
* Use the MATLAB hilite_system command to trace the generated code back
|
||||||
|
* to the model. For example,
|
||||||
|
*
|
||||||
|
* hilite_system('<S3>') - opens system 3
|
||||||
|
* hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
|
||||||
|
*
|
||||||
|
* Here is the system hierarchy for this model
|
||||||
|
*
|
||||||
|
* '<Root>' : 'VFControl'
|
||||||
|
* '<S1>' : 'VFControl/Asynchronous Machine SI Units'
|
||||||
|
* '<S2>' : 'VFControl/DC Voltage Source'
|
||||||
|
* '<S3>' : 'VFControl/Inversión A'
|
||||||
|
* '<S4>' : 'VFControl/Inversión B'
|
||||||
|
* '<S5>' : 'VFControl/Inversión C'
|
||||||
|
* '<S6>' : 'VFControl/Three-Phase Programmable Generator'
|
||||||
|
* '<S7>' : 'VFControl/Three-Phase V-I Measurement'
|
||||||
|
* '<S8>' : 'VFControl/Triangle Generator'
|
||||||
|
* '<S9>' : 'VFControl/Triangle Generator1'
|
||||||
|
* '<S10>' : 'VFControl/Triangle Generator2'
|
||||||
|
* '<S11>' : 'VFControl/Two-Level Converter1'
|
||||||
|
* '<S12>' : 'VFControl/powergui'
|
||||||
|
* '<S13>' : 'VFControl/Asynchronous Machine SI Units/Electrical model'
|
||||||
|
* '<S14>' : 'VFControl/Asynchronous Machine SI Units/Measurements'
|
||||||
|
* '<S15>' : 'VFControl/Asynchronous Machine SI Units/Mechanical model'
|
||||||
|
* '<S16>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/Asynchronous Machine State-space model'
|
||||||
|
* '<S17>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/abc to dq transformation'
|
||||||
|
* '<S18>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/dq to abc transformation'
|
||||||
|
* '<S19>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/sin,cos'
|
||||||
|
* '<S20>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/Asynchronous Machine State-space model/Electromagnetic Torque'
|
||||||
|
* '<S21>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/Asynchronous Machine State-space model/Flux Prediction'
|
||||||
|
* '<S22>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/Asynchronous Machine State-space model/Saturation'
|
||||||
|
* '<S23>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/Asynchronous Machine State-space model/phiqd_SR'
|
||||||
|
* '<S24>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/Asynchronous Machine State-space model/Saturation/Laq=Lad'
|
||||||
|
* '<S25>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/Asynchronous Machine State-space model/Saturation/Matrix L'
|
||||||
|
* '<S26>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/Asynchronous Machine State-space model/Saturation/phimqd'
|
||||||
|
* '<S27>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/Asynchronous Machine State-space model/phiqd_SR/Subsystem'
|
||||||
|
* '<S28>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/abc to dq transformation/Rotor reference frame'
|
||||||
|
* '<S29>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/abc to dq transformation/Stationary reference frame'
|
||||||
|
* '<S30>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/abc to dq transformation/Synchronous reference frame'
|
||||||
|
* '<S31>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/abc to dq transformation/transit'
|
||||||
|
* '<S32>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/dq to abc transformation/Rotor reference frame'
|
||||||
|
* '<S33>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/dq to abc transformation/Stationary reference frame'
|
||||||
|
* '<S34>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/dq to abc transformation/Synchronous reference frame'
|
||||||
|
* '<S35>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/sin,cos/sin(beta),cos(beta),sin(th),cos(th)'
|
||||||
|
* '<S36>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/sin,cos/sin(thr),cos(thr)'
|
||||||
|
* '<S37>' : 'VFControl/Asynchronous Machine SI Units/Electrical model/sin,cos/sin(thr),cos(thr)1'
|
||||||
|
* '<S38>' : 'VFControl/Asynchronous Machine SI Units/Mechanical model/Delay Prediction'
|
||||||
|
* '<S39>' : 'VFControl/DC Voltage Source/Model'
|
||||||
|
* '<S40>' : 'VFControl/Three-Phase Programmable Generator/Model'
|
||||||
|
* '<S41>' : 'VFControl/Three-Phase Programmable Generator/Model/Amplitude'
|
||||||
|
* '<S42>' : 'VFControl/Three-Phase Programmable Generator/Model/Frequency'
|
||||||
|
* '<S43>' : 'VFControl/Three-Phase Programmable Generator/Model/Harmonic Generation'
|
||||||
|
* '<S44>' : 'VFControl/Three-Phase Programmable Generator/Model/Measurements'
|
||||||
|
* '<S45>' : 'VFControl/Three-Phase Programmable Generator/Model/Phase'
|
||||||
|
* '<S46>' : 'VFControl/Three-Phase Programmable Generator/Model/Type of Variation selector'
|
||||||
|
* '<S47>' : 'VFControl/Three-Phase Programmable Generator/Model/Variation value (step ramp mod)'
|
||||||
|
* '<S48>' : 'VFControl/Three-Phase Programmable Generator/Model/Variation value (time table)'
|
||||||
|
* '<S49>' : 'VFControl/Three-Phase Programmable Generator/Model/Amplitude/Time-Amplitude pairs'
|
||||||
|
* '<S50>' : 'VFControl/Three-Phase Programmable Generator/Model/Amplitude/Variation on phase A only'
|
||||||
|
* '<S51>' : 'VFControl/Three-Phase Programmable Generator/Model/Harmonic Generation/Enable Harmonics'
|
||||||
|
* '<S52>' : 'VFControl/Three-Phase Programmable Generator/Model/Harmonic Generation/Harmonic A generation'
|
||||||
|
* '<S53>' : 'VFControl/Three-Phase Programmable Generator/Model/Harmonic Generation/Harmonic B generation'
|
||||||
|
* '<S54>' : 'VFControl/Three-Phase Programmable Generator/Model/Phase/Time-Phase pairs'
|
||||||
|
* '<S55>' : 'VFControl/Three-Phase Programmable Generator/Model/Phase/Variation on phase A only'
|
||||||
|
* '<S56>' : 'VFControl/Three-Phase Programmable Generator/Model/Variation value (step ramp mod)/Subsystem1'
|
||||||
|
* '<S57>' : 'VFControl/Three-Phase Programmable Generator/Model/Variation value (time table)/Model'
|
||||||
|
* '<S58>' : 'VFControl/Three-Phase V-I Measurement/Mode I'
|
||||||
|
* '<S59>' : 'VFControl/Three-Phase V-I Measurement/Mode V'
|
||||||
|
* '<S60>' : 'VFControl/Three-Phase V-I Measurement/Model'
|
||||||
|
* '<S61>' : 'VFControl/Three-Phase V-I Measurement/Model/I A:'
|
||||||
|
* '<S62>' : 'VFControl/Three-Phase V-I Measurement/Model/I B:'
|
||||||
|
* '<S63>' : 'VFControl/Three-Phase V-I Measurement/Model/I C:'
|
||||||
|
* '<S64>' : 'VFControl/Three-Phase V-I Measurement/Model/U AB:'
|
||||||
|
* '<S65>' : 'VFControl/Three-Phase V-I Measurement/Model/U BC:'
|
||||||
|
* '<S66>' : 'VFControl/Three-Phase V-I Measurement/Model/U CA:'
|
||||||
|
* '<S67>' : 'VFControl/Three-Phase V-I Measurement/Model/I A:/Model'
|
||||||
|
* '<S68>' : 'VFControl/Three-Phase V-I Measurement/Model/I B:/Model'
|
||||||
|
* '<S69>' : 'VFControl/Three-Phase V-I Measurement/Model/I C:/Model'
|
||||||
|
* '<S70>' : 'VFControl/Three-Phase V-I Measurement/Model/U AB:/Model'
|
||||||
|
* '<S71>' : 'VFControl/Three-Phase V-I Measurement/Model/U BC:/Model'
|
||||||
|
* '<S72>' : 'VFControl/Three-Phase V-I Measurement/Model/U CA:/Model'
|
||||||
|
* '<S73>' : 'VFControl/Triangle Generator/Model'
|
||||||
|
* '<S74>' : 'VFControl/Triangle Generator1/Model'
|
||||||
|
* '<S75>' : 'VFControl/Triangle Generator2/Model'
|
||||||
|
* '<S76>' : 'VFControl/Two-Level Converter1/Model'
|
||||||
|
* '<S77>' : 'VFControl/Two-Level Converter1/Model/Compare To Constant'
|
||||||
|
* '<S78>' : 'VFControl/Two-Level Converter1/Model/Sw1'
|
||||||
|
* '<S79>' : 'VFControl/Two-Level Converter1/Model/Sw2'
|
||||||
|
* '<S80>' : 'VFControl/Two-Level Converter1/Model/Sw3'
|
||||||
|
* '<S81>' : 'VFControl/Two-Level Converter1/Model/Sw4'
|
||||||
|
* '<S82>' : 'VFControl/Two-Level Converter1/Model/Sw5'
|
||||||
|
* '<S83>' : 'VFControl/Two-Level Converter1/Model/Sw6'
|
||||||
|
* '<S84>' : 'VFControl/Two-Level Converter1/Model/Sw1/Model'
|
||||||
|
* '<S85>' : 'VFControl/Two-Level Converter1/Model/Sw1/Model/Measurement list'
|
||||||
|
* '<S86>' : 'VFControl/Two-Level Converter1/Model/Sw2/Model'
|
||||||
|
* '<S87>' : 'VFControl/Two-Level Converter1/Model/Sw2/Model/Measurement list'
|
||||||
|
* '<S88>' : 'VFControl/Two-Level Converter1/Model/Sw3/Model'
|
||||||
|
* '<S89>' : 'VFControl/Two-Level Converter1/Model/Sw3/Model/Measurement list'
|
||||||
|
* '<S90>' : 'VFControl/Two-Level Converter1/Model/Sw4/Model'
|
||||||
|
* '<S91>' : 'VFControl/Two-Level Converter1/Model/Sw4/Model/Measurement list'
|
||||||
|
* '<S92>' : 'VFControl/Two-Level Converter1/Model/Sw5/Model'
|
||||||
|
* '<S93>' : 'VFControl/Two-Level Converter1/Model/Sw5/Model/Measurement list'
|
||||||
|
* '<S94>' : 'VFControl/Two-Level Converter1/Model/Sw6/Model'
|
||||||
|
* '<S95>' : 'VFControl/Two-Level Converter1/Model/Sw6/Model/Measurement list'
|
||||||
|
* '<S96>' : 'VFControl/powergui/EquivalentModel1'
|
||||||
|
* '<S97>' : 'VFControl/powergui/EquivalentModel1/Gates'
|
||||||
|
* '<S98>' : 'VFControl/powergui/EquivalentModel1/Sources'
|
||||||
|
* '<S99>' : 'VFControl/powergui/EquivalentModel1/Status'
|
||||||
|
* '<S100>' : 'VFControl/powergui/EquivalentModel1/Yout'
|
||||||
|
*/
|
||||||
|
#endif /* VFControl_h_ */
|
1336
Simulink/VF Control/VFControl_sg_rtw/VFControl_cal.cpp
Normal file
1336
Simulink/VF Control/VFControl_sg_rtw/VFControl_cal.cpp
Normal file
File diff suppressed because it is too large
Load Diff
813
Simulink/VF Control/VFControl_sg_rtw/VFControl_cal.h
Normal file
813
Simulink/VF Control/VFControl_sg_rtw/VFControl_cal.h
Normal file
@ -0,0 +1,813 @@
|
|||||||
|
#ifndef VFControl_cal_h_
|
||||||
|
#define VFControl_cal_h_
|
||||||
|
#include "rtwtypes.h"
|
||||||
|
|
||||||
|
/* Storage class 'PageSwitching', for system '<Root>' */
|
||||||
|
struct VFControl_cal_type {
|
||||||
|
real_T DCVoltageSource_Amplitude; /* Mask Parameter: DCVoltageSource_Amplitude
|
||||||
|
* Referenced by: '<S39>/DC'
|
||||||
|
*/
|
||||||
|
real_T HarmonicAgeneration_Mag_Harmo;
|
||||||
|
/* Mask Parameter: HarmonicAgeneration_Mag_Harmo
|
||||||
|
* Referenced by: '<S52>/Phase_Harmo1'
|
||||||
|
*/
|
||||||
|
real_T HarmonicBgeneration_Mag_Harmo;
|
||||||
|
/* Mask Parameter: HarmonicBgeneration_Mag_Harmo
|
||||||
|
* Referenced by: '<S53>/Phase_Harmo1'
|
||||||
|
*/
|
||||||
|
real_T HarmonicAgeneration_Phase_Harmo;
|
||||||
|
/* Mask Parameter: HarmonicAgeneration_Phase_Harmo
|
||||||
|
* Referenced by: '<S52>/Phase_Harmo'
|
||||||
|
*/
|
||||||
|
real_T HarmonicBgeneration_Phase_Harmo;
|
||||||
|
/* Mask Parameter: HarmonicBgeneration_Phase_Harmo
|
||||||
|
* Referenced by: '<S53>/Phase_Harmo'
|
||||||
|
*/
|
||||||
|
real_T HarmonicAgeneration_Seq_Harmo;
|
||||||
|
/* Mask Parameter: HarmonicAgeneration_Seq_Harmo
|
||||||
|
* Referenced by: '<S52>/Phase_Harmo2'
|
||||||
|
*/
|
||||||
|
real_T HarmonicBgeneration_Seq_Harmo;
|
||||||
|
/* Mask Parameter: HarmonicBgeneration_Seq_Harmo
|
||||||
|
* Referenced by: '<S53>/Phase_Harmo2'
|
||||||
|
*/
|
||||||
|
real_T Variationvaluesteprampmod_Toff_;
|
||||||
|
/* Mask Parameter: Variationvaluesteprampmod_Toff_
|
||||||
|
* Referenced by: '<S56>/Step1'
|
||||||
|
*/
|
||||||
|
real_T Variationvaluesteprampmod_Ton_V;
|
||||||
|
/* Mask Parameter: Variationvaluesteprampmod_Ton_V
|
||||||
|
* Referenced by: '<S56>/Step'
|
||||||
|
*/
|
||||||
|
real_T Variationvaluesteprampmod_Varia;
|
||||||
|
/* Mask Parameter: Variationvaluesteprampmod_Varia
|
||||||
|
* Referenced by: '<S56>/valp_nom9'
|
||||||
|
*/
|
||||||
|
real_T Variationvaluesteprampmod_Var_l;
|
||||||
|
/* Mask Parameter: Variationvaluesteprampmod_Var_l
|
||||||
|
* Referenced by: '<S56>/valp_nom8'
|
||||||
|
*/
|
||||||
|
real_T Variationvaluesteprampmod_Var_p;
|
||||||
|
/* Mask Parameter: Variationvaluesteprampmod_Var_p
|
||||||
|
* Referenced by: '<S56>/valp_nom7'
|
||||||
|
*/
|
||||||
|
real_T Variationvaluesteprampmod_Var_n;
|
||||||
|
/* Mask Parameter: Variationvaluesteprampmod_Var_n
|
||||||
|
* Referenced by: '<S56>/valp_nom6'
|
||||||
|
*/
|
||||||
|
real_T CompareToConstant_const; /* Mask Parameter: CompareToConstant_const
|
||||||
|
* Referenced by: '<S77>/Constant'
|
||||||
|
*/
|
||||||
|
real_T HarmonicAgeneration_n_Harmo;
|
||||||
|
/* Mask Parameter: HarmonicAgeneration_n_Harmo
|
||||||
|
* Referenced by: '<S52>/Gain1'
|
||||||
|
*/
|
||||||
|
real_T HarmonicBgeneration_n_Harmo;
|
||||||
|
/* Mask Parameter: HarmonicBgeneration_n_Harmo
|
||||||
|
* Referenced by: '<S53>/Gain1'
|
||||||
|
*/
|
||||||
|
real_T Constant1_Value; /* Expression: SM.Lsat(1)
|
||||||
|
* Referenced by: '<S22>/Constant1'
|
||||||
|
*/
|
||||||
|
real_T Linv_Y0; /* Computed Parameter: Linv_Y0
|
||||||
|
* Referenced by: '<S22>/Linv'
|
||||||
|
*/
|
||||||
|
real_T RLinv_Y0; /* Computed Parameter: RLinv_Y0
|
||||||
|
* Referenced by: '<S22>/R*Linv'
|
||||||
|
*/
|
||||||
|
real_T Lm_Y0; /* Computed Parameter: Lm_Y0
|
||||||
|
* Referenced by: '<S22>/Lm'
|
||||||
|
*/
|
||||||
|
real_T u1_Value[2]; /* Expression: [1/SM.Lls 1/SM.Llr]
|
||||||
|
* Referenced by: '<S26>/u1'
|
||||||
|
*/
|
||||||
|
real_T u2_Value[2]; /* Expression: [ SM.Lls SM.Llr ]
|
||||||
|
* Referenced by: '<S24>/u2'
|
||||||
|
*/
|
||||||
|
real_T Delay_InitialCondition; /* Expression: SM.Lsat(1)
|
||||||
|
* Referenced by: '<S22>/Delay'
|
||||||
|
*/
|
||||||
|
real_T uDLookupTable_tableData[2];
|
||||||
|
/* Expression: [ 0 SM.Phisat(2:end)./SM.Lsat(2:end) ]
|
||||||
|
* Referenced by: '<S22>/1-D Lookup Table'
|
||||||
|
*/
|
||||||
|
real_T uDLookupTable_bp01Data[2]; /* Expression: SM.Phisat
|
||||||
|
* Referenced by: '<S22>/1-D Lookup Table'
|
||||||
|
*/
|
||||||
|
real_T u1_Value_d[16]; /* Expression: zeros(4,4)
|
||||||
|
* Referenced by: '<S25>/u1'
|
||||||
|
*/
|
||||||
|
real_T u5_Value[16]; /* Expression: SM.Ll
|
||||||
|
* Referenced by: '<S25>/u5'
|
||||||
|
*/
|
||||||
|
real_T u1_Value_e[16]; /* Expression: SM.R
|
||||||
|
* Referenced by: '<S22>/u1'
|
||||||
|
*/
|
||||||
|
real_T Lm_nosat_Value; /* Expression: SM.Lm
|
||||||
|
* Referenced by: '<S16>/Lm_nosat'
|
||||||
|
*/
|
||||||
|
real_T Constant2_Value[16]; /* Expression: SM.Linv
|
||||||
|
* Referenced by: '<S16>/Constant2'
|
||||||
|
*/
|
||||||
|
real_T Constant4_Value[16]; /* Expression: SM.RLinv
|
||||||
|
* Referenced by: '<S16>/Constant4'
|
||||||
|
*/
|
||||||
|
real_T Constant3_Value; /* Expression: SM.ensat
|
||||||
|
* Referenced by: '<S16>/Constant3'
|
||||||
|
*/
|
||||||
|
real_T Switch1_Threshold; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S16>/Switch1'
|
||||||
|
*/
|
||||||
|
real_T Constant4_Value_e; /* Expression: SM.ctrl
|
||||||
|
* Referenced by: '<S19>/Constant4'
|
||||||
|
*/
|
||||||
|
real_T wbaseTs2_Gain; /* Expression: SM.web*Ts/2
|
||||||
|
* Referenced by: '<S27>/wbase*Ts//2'
|
||||||
|
*/
|
||||||
|
real_T u5_Value_l[16]; /* Expression: eye(4,4)
|
||||||
|
* Referenced by: '<S27>/u5'
|
||||||
|
*/
|
||||||
|
real_T wbaseTs2_Gain_c; /* Expression: SM.web*Ts/2
|
||||||
|
* Referenced by: '<S27>/wbase*Ts//2 '
|
||||||
|
*/
|
||||||
|
real_T vqrvdr_Y0; /* Expression: 0
|
||||||
|
* Referenced by: '<S28>/vqr,vdr'
|
||||||
|
*/
|
||||||
|
real_T vqsvds_Y0; /* Expression: 0
|
||||||
|
* Referenced by: '<S28>/vqs,vds'
|
||||||
|
*/
|
||||||
|
real_T vqrvdr_Y0_a; /* Expression: 0
|
||||||
|
* Referenced by: '<S29>/vqr,vdr'
|
||||||
|
*/
|
||||||
|
real_T vqsvds_Y0_m; /* Expression: 0
|
||||||
|
* Referenced by: '<S29>/vqs,vds'
|
||||||
|
*/
|
||||||
|
real_T vqrvdr_Y0_am; /* Expression: 0
|
||||||
|
* Referenced by: '<S30>/vqr,vdr'
|
||||||
|
*/
|
||||||
|
real_T vqsvds_Y0_p; /* Expression: 0
|
||||||
|
* Referenced by: '<S30>/vqs,vds'
|
||||||
|
*/
|
||||||
|
real_T irairb_Y0; /* Expression: 0
|
||||||
|
* Referenced by: '<S32>/ira,irb'
|
||||||
|
*/
|
||||||
|
real_T isaisb_Y0; /* Expression: 0
|
||||||
|
* Referenced by: '<S32>/isa,isb'
|
||||||
|
*/
|
||||||
|
real_T irairb_Y0_d; /* Expression: 0
|
||||||
|
* Referenced by: '<S33>/ira,irb'
|
||||||
|
*/
|
||||||
|
real_T isaisb_Y0_k; /* Expression: 0
|
||||||
|
* Referenced by: '<S33>/isa,isb'
|
||||||
|
*/
|
||||||
|
real_T irairb_Y0_h; /* Expression: 0
|
||||||
|
* Referenced by: '<S34>/ira,irb'
|
||||||
|
*/
|
||||||
|
real_T isaisb_Y0_m; /* Expression: 0
|
||||||
|
* Referenced by: '<S34>/isa,isb'
|
||||||
|
*/
|
||||||
|
real_T sinbetacosbetasinthcosth_Y0; /* Expression: 0
|
||||||
|
* Referenced by: '<S35>/sin(beta),cos(beta), sin(th),cos(th)'
|
||||||
|
*/
|
||||||
|
real_T W_Y0; /* Expression: 0
|
||||||
|
* Referenced by: '<S35>/W'
|
||||||
|
*/
|
||||||
|
real_T we_Value; /* Expression: 1
|
||||||
|
* Referenced by: '<S35>/we'
|
||||||
|
*/
|
||||||
|
real_T Gain2_Gain; /* Expression: -1
|
||||||
|
* Referenced by: '<S35>/Gain2'
|
||||||
|
*/
|
||||||
|
real_T web_psb_Gain; /* Expression: SM.web
|
||||||
|
* Referenced by: '<S35>/web_psb'
|
||||||
|
*/
|
||||||
|
real_T u3_Value[16];
|
||||||
|
/* Expression: [ 0 1 0 0; -1 0 0 0; 0 0 0 0; 0 0 0 0]
|
||||||
|
* Referenced by: '<S35>/u3'
|
||||||
|
*/
|
||||||
|
real_T sinthrcosthr_Y0; /* Expression: 0
|
||||||
|
* Referenced by: '<S36>/sin(thr),cos(thr)'
|
||||||
|
*/
|
||||||
|
real_T W_Y0_m; /* Expression: 0
|
||||||
|
* Referenced by: '<S36>/W'
|
||||||
|
*/
|
||||||
|
real_T Constant_Value[2]; /* Expression: [0; 0]
|
||||||
|
* Referenced by: '<S36>/Constant'
|
||||||
|
*/
|
||||||
|
real_T Gain1_Gain; /* Expression: -1
|
||||||
|
* Referenced by: '<S36>/Gain1'
|
||||||
|
*/
|
||||||
|
real_T u1_Value_j[16]; /* Expression: zeros(4,4)
|
||||||
|
* Referenced by: '<S36>/u1'
|
||||||
|
*/
|
||||||
|
real_T sinthrcosthr_Y0_h; /* Expression: 0
|
||||||
|
* Referenced by: '<S37>/sin(thr),cos(thr)'
|
||||||
|
*/
|
||||||
|
real_T W_Y0_o; /* Computed Parameter: W_Y0_o
|
||||||
|
* Referenced by: '<S37>/W'
|
||||||
|
*/
|
||||||
|
real_T Constant_Value_n[2]; /* Expression: [0; 0]
|
||||||
|
* Referenced by: '<S37>/Constant'
|
||||||
|
*/
|
||||||
|
real_T Gain3_Gain; /* Expression: -1
|
||||||
|
* Referenced by: '<S37>/Gain3'
|
||||||
|
*/
|
||||||
|
real_T u4_Value[16]; /* Expression: zeros(4,4)
|
||||||
|
* Referenced by: '<S37>/u4'
|
||||||
|
*/
|
||||||
|
real_T Zerosequence_Value[3]; /* Expression: [0 0 0]
|
||||||
|
* Referenced by: '<S52>/Zero-sequence'
|
||||||
|
*/
|
||||||
|
real_T Positivesequence_Value[3]; /* Expression: [0 -2*pi/3 2*pi/3]
|
||||||
|
* Referenced by: '<S52>/Positive-sequence'
|
||||||
|
*/
|
||||||
|
real_T Negativesequence_Value[3]; /* Expression: [0 2*pi/3 -2*pi/3]
|
||||||
|
* Referenced by: '<S52>/Negative-sequence'
|
||||||
|
*/
|
||||||
|
real_T Zerosequence_Value_h[3]; /* Expression: [0 0 0]
|
||||||
|
* Referenced by: '<S53>/Zero-sequence'
|
||||||
|
*/
|
||||||
|
real_T Positivesequence_Value_o[3]; /* Expression: [0 -2*pi/3 2*pi/3]
|
||||||
|
* Referenced by: '<S53>/Positive-sequence'
|
||||||
|
*/
|
||||||
|
real_T Negativesequence_Value_k[3]; /* Expression: [0 2*pi/3 -2*pi/3]
|
||||||
|
* Referenced by: '<S53>/Negative-sequence'
|
||||||
|
*/
|
||||||
|
real_T Gain3_Gain_c; /* Expression: pi/180
|
||||||
|
* Referenced by: '<S54>/Gain3'
|
||||||
|
*/
|
||||||
|
real_T Gain4_Gain; /* Expression: pi/180
|
||||||
|
* Referenced by: '<S45>/Gain4'
|
||||||
|
*/
|
||||||
|
real_T Gain1_Gain_n; /* Expression: 2*pi
|
||||||
|
* Referenced by: '<S56>/Gain1'
|
||||||
|
*/
|
||||||
|
real_T Constant4_Value_f; /* Expression: 0
|
||||||
|
* Referenced by: '<S56>/Constant4'
|
||||||
|
*/
|
||||||
|
real_T uRsw_Gain; /* Expression: 1./Ron
|
||||||
|
* Referenced by: '<S84>/1//Rsw'
|
||||||
|
*/
|
||||||
|
real_T u4_Value_l; /* Expression: 0
|
||||||
|
* Referenced by: '<S84>/0 4'
|
||||||
|
*/
|
||||||
|
real_T uRsw_Gain_e; /* Expression: 1./Ron
|
||||||
|
* Referenced by: '<S86>/1//Rsw'
|
||||||
|
*/
|
||||||
|
real_T u4_Value_j; /* Expression: 0
|
||||||
|
* Referenced by: '<S86>/0 4'
|
||||||
|
*/
|
||||||
|
real_T uRsw_Gain_l; /* Expression: 1./Ron
|
||||||
|
* Referenced by: '<S88>/1//Rsw'
|
||||||
|
*/
|
||||||
|
real_T u4_Value_c; /* Expression: 0
|
||||||
|
* Referenced by: '<S88>/0 4'
|
||||||
|
*/
|
||||||
|
real_T uRsw_Gain_k; /* Expression: 1./Ron
|
||||||
|
* Referenced by: '<S90>/1//Rsw'
|
||||||
|
*/
|
||||||
|
real_T u4_Value_m; /* Expression: 0
|
||||||
|
* Referenced by: '<S90>/0 4'
|
||||||
|
*/
|
||||||
|
real_T uRsw_Gain_m; /* Expression: 1./Ron
|
||||||
|
* Referenced by: '<S92>/1//Rsw'
|
||||||
|
*/
|
||||||
|
real_T u4_Value_lk; /* Expression: 0
|
||||||
|
* Referenced by: '<S92>/0 4'
|
||||||
|
*/
|
||||||
|
real_T uRsw_Gain_k4; /* Expression: 1./Ron
|
||||||
|
* Referenced by: '<S94>/1//Rsw'
|
||||||
|
*/
|
||||||
|
real_T u4_Value_o; /* Expression: 0
|
||||||
|
* Referenced by: '<S94>/0 4'
|
||||||
|
*/
|
||||||
|
real_T SwitchCurrents_Value[6]; /* Expression: zeros(6,1)
|
||||||
|
* Referenced by: '<S98>/SwitchCurrents'
|
||||||
|
*/
|
||||||
|
real_T Constant3_Value_e; /* Expression: SM.ctrl
|
||||||
|
* Referenced by: '<S18>/Constant3'
|
||||||
|
*/
|
||||||
|
real_T fluxes_InitialCondition[4]; /* Expression: SM.phiqd0
|
||||||
|
* Referenced by: '<S23>/fluxes'
|
||||||
|
*/
|
||||||
|
real_T Gain_Gain; /* Expression: 2
|
||||||
|
* Referenced by: '<S21>/Gain'
|
||||||
|
*/
|
||||||
|
real_T fluxes_InitialCondition_a[4]; /* Expression: SM.phiqd0
|
||||||
|
* Referenced by: '<S21>/fluxes'
|
||||||
|
*/
|
||||||
|
real_T Constant_Value_e; /* Expression: SM.ensat
|
||||||
|
* Referenced by: '<S16>/Constant'
|
||||||
|
*/
|
||||||
|
real_T Constant1_Value_k; /* Expression: SM.ensat
|
||||||
|
* Referenced by: '<S16>/Constant1'
|
||||||
|
*/
|
||||||
|
real_T Switch_Threshold; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S16>/Switch'
|
||||||
|
*/
|
||||||
|
real_T Constant2_Value_n; /* Expression: SM.ctrl
|
||||||
|
* Referenced by: '<S19>/Constant2'
|
||||||
|
*/
|
||||||
|
real_T Rotoranglethetam_gainval;
|
||||||
|
/* Computed Parameter: Rotoranglethetam_gainval
|
||||||
|
* Referenced by: '<S15>/Rotor angle thetam'
|
||||||
|
*/
|
||||||
|
real_T Rotoranglethetam_IC; /* Expression: SM.tho
|
||||||
|
* Referenced by: '<S15>/Rotor angle thetam'
|
||||||
|
*/
|
||||||
|
real_T wm_delay_InitialCondition; /* Expression: SM.wmo
|
||||||
|
* Referenced by: '<S38>/wm_delay'
|
||||||
|
*/
|
||||||
|
real_T F2_Gain; /* Expression: 2
|
||||||
|
* Referenced by: '<S38>/F2'
|
||||||
|
*/
|
||||||
|
real_T wm_predict_InitialCondition; /* Expression: SM.wmo
|
||||||
|
* Referenced by: '<S38>/wm_predict'
|
||||||
|
*/
|
||||||
|
real_T Constant4_Value_c; /* Expression: SM.ctrl
|
||||||
|
* Referenced by: '<S18>/Constant4'
|
||||||
|
*/
|
||||||
|
real_T ib_Gain; /* Expression: SM.ib
|
||||||
|
* Referenced by: '<S18>/ib'
|
||||||
|
*/
|
||||||
|
real_T GainVr_Vs1_Gain[2]; /* Expression: SM.Gain_Vr_Vs
|
||||||
|
* Referenced by: '<S13>/Gain Vr_Vs1'
|
||||||
|
*/
|
||||||
|
real_T StateSpace_DS_param[126]; /* Expression: S.D
|
||||||
|
* Referenced by: '<S96>/State-Space'
|
||||||
|
*/
|
||||||
|
real_T Constant5_Value; /* Expression: SM.ensat
|
||||||
|
* Referenced by: '<S16>/Constant5'
|
||||||
|
*/
|
||||||
|
real_T u1_Gain[2]; /* Expression: [1 -1]
|
||||||
|
* Referenced by: '<S20>/1-1'
|
||||||
|
*/
|
||||||
|
real_T Switch2_Threshold; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S16>/Switch2'
|
||||||
|
*/
|
||||||
|
real_T Constant4_Value_i; /* Expression: SM.ctrl
|
||||||
|
* Referenced by: '<S17>/Constant4'
|
||||||
|
*/
|
||||||
|
real_T Constant6_Value[2]; /* Expression: [0;0]
|
||||||
|
* Referenced by: '<S31>/Constant6'
|
||||||
|
*/
|
||||||
|
real_T GainVr_Vs_Gain[2]; /* Expression: SM.Gain_Vr_Vs
|
||||||
|
* Referenced by: '<S13>/Gain Vr_Vs'
|
||||||
|
*/
|
||||||
|
real_T u_Vb_Gain; /* Expression: 1/SM.Vb
|
||||||
|
* Referenced by: '<S17>/1_Vb'
|
||||||
|
*/
|
||||||
|
real_T Constant3_Value_g; /* Expression: SM.ctrl
|
||||||
|
* Referenced by: '<S17>/Constant3'
|
||||||
|
*/
|
||||||
|
real_T voltages_InitialCondition; /* Expression: 0
|
||||||
|
* Referenced by: '<S23>/voltages'
|
||||||
|
*/
|
||||||
|
real_T IC_Threshold; /* Expression: Ts
|
||||||
|
* Referenced by: '<S23>/IC'
|
||||||
|
*/
|
||||||
|
real_T unitconversion_Gain[19];
|
||||||
|
/* Expression: [SM.ib2*SM.kIr*ones(5,1); SM.phib2*SM.kVr; SM.phib2*SM.kVr; SM.Vb2*SM.kVr; SM.Vb2*SM.kVr ; SM.ib2*ones(5,1); SM.phib2; SM.phib2; SM.Vb2; SM.Vb2; SM.phib2/SM.ib2]
|
||||||
|
* Referenced by: '<S13>/unit conversion'
|
||||||
|
*/
|
||||||
|
real_T up_Gain; /* Expression: 1/SM.p
|
||||||
|
* Referenced by: '<S15>/1\p'
|
||||||
|
*/
|
||||||
|
real_T up1_Gain[3]; /* Expression: [SM.Nb2;SM.Tb2;1]
|
||||||
|
* Referenced by: '<S15>/1\p1'
|
||||||
|
*/
|
||||||
|
real_T Unitconversion_Gain; /* Expression: 1/SM.Tb2
|
||||||
|
* Referenced by: '<S15>/Unit conversion'
|
||||||
|
*/
|
||||||
|
real_T F_Gain; /* Expression: SM.F
|
||||||
|
* Referenced by: '<S15>/F'
|
||||||
|
*/
|
||||||
|
real_T u_2H_Gain; /* Expression: 1/(2*SM.H)
|
||||||
|
* Referenced by: '<S15>/1_2H'
|
||||||
|
*/
|
||||||
|
real_T Rotorspeedwm_gainval; /* Computed Parameter: Rotorspeedwm_gainval
|
||||||
|
* Referenced by: '<S15>/Rotor speed(wm)'
|
||||||
|
*/
|
||||||
|
real_T Rotorspeedwm_IC; /* Expression: SM.wmo
|
||||||
|
* Referenced by: '<S15>/Rotor speed(wm)'
|
||||||
|
*/
|
||||||
|
real_T web_psb_Gain_n; /* Expression: SM.web
|
||||||
|
* Referenced by: '<S15>/web_psb'
|
||||||
|
*/
|
||||||
|
real_T LookUpTable_XData[8]; /* Expression: sps.tv
|
||||||
|
* Referenced by: '<S57>/Look-Up Table'
|
||||||
|
*/
|
||||||
|
real_T LookUpTable_YData[8]; /* Expression: sps.opv
|
||||||
|
* Referenced by: '<S57>/Look-Up Table'
|
||||||
|
*/
|
||||||
|
real_T valp_nom1_Value; /* Expression: sps.VariationType
|
||||||
|
* Referenced by: '<S49>/valp_nom1'
|
||||||
|
*/
|
||||||
|
real_T Constant6_Value_k; /* Expression: 4
|
||||||
|
* Referenced by: '<S49>/Constant6'
|
||||||
|
*/
|
||||||
|
real_T valp_nom3_Value; /* Expression: sps.VariationEntity
|
||||||
|
* Referenced by: '<S46>/valp_nom3'
|
||||||
|
*/
|
||||||
|
real_T Constant_Value_nw; /* Expression: 2
|
||||||
|
* Referenced by: '<S46>/Constant'
|
||||||
|
*/
|
||||||
|
real_T Constant1_Value_a; /* Expression: 0
|
||||||
|
* Referenced by: '<S56>/Constant1'
|
||||||
|
*/
|
||||||
|
real_T Step1_Y0; /* Expression: 1
|
||||||
|
* Referenced by: '<S56>/Step1'
|
||||||
|
*/
|
||||||
|
real_T Step1_YFinal; /* Expression: 0
|
||||||
|
* Referenced by: '<S56>/Step1'
|
||||||
|
*/
|
||||||
|
real_T valp_nom5_Value; /* Expression: sps.VariationType
|
||||||
|
* Referenced by: '<S47>/valp_nom5'
|
||||||
|
*/
|
||||||
|
real_T Constant3_Value_ey; /* Expression: 1
|
||||||
|
* Referenced by: '<S56>/Constant3'
|
||||||
|
*/
|
||||||
|
real_T Step_Y0; /* Expression: 0
|
||||||
|
* Referenced by: '<S56>/Step'
|
||||||
|
*/
|
||||||
|
real_T Step_YFinal; /* Expression: 1
|
||||||
|
* Referenced by: '<S56>/Step'
|
||||||
|
*/
|
||||||
|
real_T DiscreteTimeIntegrator1_gainval;
|
||||||
|
/* Computed Parameter: DiscreteTimeIntegrator1_gainval
|
||||||
|
* Referenced by: '<S47>/Discrete-Time Integrator1'
|
||||||
|
*/
|
||||||
|
real_T DiscreteTimeIntegrator1_IC; /* Expression: 0
|
||||||
|
* Referenced by: '<S47>/Discrete-Time Integrator1'
|
||||||
|
*/
|
||||||
|
real_T Constant5_Value_c; /* Expression: 0
|
||||||
|
* Referenced by: '<S56>/Constant5'
|
||||||
|
*/
|
||||||
|
real_T UnitDelay1_InitialCondition; /* Expression: 0
|
||||||
|
* Referenced by: '<S47>/Unit Delay1'
|
||||||
|
*/
|
||||||
|
real_T Switch2_Threshold_a; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S56>/Switch2'
|
||||||
|
*/
|
||||||
|
real_T Constant1_Value_j; /* Expression: 0
|
||||||
|
* Referenced by: '<S41>/Constant1'
|
||||||
|
*/
|
||||||
|
real_T valp_nom2_Value; /* Expression: sps.Mag_Vps
|
||||||
|
* Referenced by: '<S41>/valp_nom2'
|
||||||
|
*/
|
||||||
|
real_T SinglePhase_Value; /* Expression: sps.SinglePhase
|
||||||
|
* Referenced by: '<S50>/SinglePhase'
|
||||||
|
*/
|
||||||
|
real_T Switch5_Threshold; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S50>/Switch5'
|
||||||
|
*/
|
||||||
|
real_T valp_nom1_Value_g; /* Expression: sps.Freq_Vps
|
||||||
|
* Referenced by: '<S42>/valp_nom1'
|
||||||
|
*/
|
||||||
|
real_T Gain_Gain_k; /* Expression: 2*pi
|
||||||
|
* Referenced by: '<S42>/Gain'
|
||||||
|
*/
|
||||||
|
real_T DiscreteTimeIntegrator_gainval;
|
||||||
|
/* Computed Parameter: DiscreteTimeIntegrator_gainval
|
||||||
|
* Referenced by: '<S42>/Discrete-Time Integrator'
|
||||||
|
*/
|
||||||
|
real_T DiscreteTimeIntegrator_IC; /* Expression: 0
|
||||||
|
* Referenced by: '<S42>/Discrete-Time Integrator'
|
||||||
|
*/
|
||||||
|
real_T P1_Value[3]; /* Expression: [0 -2*pi/3 2*pi/3]
|
||||||
|
* Referenced by: '<S54>/P1'
|
||||||
|
*/
|
||||||
|
real_T valp_nom1_Value_c; /* Expression: sps.VariationType
|
||||||
|
* Referenced by: '<S54>/valp_nom1'
|
||||||
|
*/
|
||||||
|
real_T Constant6_Value_h; /* Expression: 4
|
||||||
|
* Referenced by: '<S54>/Constant6'
|
||||||
|
*/
|
||||||
|
real_T Constant2_Value_b; /* Expression: 3
|
||||||
|
* Referenced by: '<S46>/Constant2'
|
||||||
|
*/
|
||||||
|
real_T valp_nom_Value; /* Expression: sps.Phase_Vps
|
||||||
|
* Referenced by: '<S45>/valp_nom'
|
||||||
|
*/
|
||||||
|
real_T Gain3_Gain_e; /* Expression: pi/180
|
||||||
|
* Referenced by: '<S45>/Gain3'
|
||||||
|
*/
|
||||||
|
real_T P1_Value_e[3]; /* Expression: [0 -2*pi/3 2*pi/3]
|
||||||
|
* Referenced by: '<S45>/P1'
|
||||||
|
*/
|
||||||
|
real_T Constant4_Value_l; /* Expression: 0
|
||||||
|
* Referenced by: '<S45>/Constant4'
|
||||||
|
*/
|
||||||
|
real_T SinglePhase_Value_i; /* Expression: sps.SinglePhase
|
||||||
|
* Referenced by: '<S55>/SinglePhase'
|
||||||
|
*/
|
||||||
|
real_T Switch5_Threshold_m; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S55>/Switch5'
|
||||||
|
*/
|
||||||
|
real_T Step_Time; /* Expression: sps.Ton_Harmo
|
||||||
|
* Referenced by: '<S51>/Step'
|
||||||
|
*/
|
||||||
|
real_T Step_Y0_k; /* Expression: 0
|
||||||
|
* Referenced by: '<S51>/Step'
|
||||||
|
*/
|
||||||
|
real_T Step_YFinal_d; /* Expression: 1
|
||||||
|
* Referenced by: '<S51>/Step'
|
||||||
|
*/
|
||||||
|
real_T Step1_Time; /* Expression: sps.Toff_Harmo
|
||||||
|
* Referenced by: '<S51>/Step1'
|
||||||
|
*/
|
||||||
|
real_T Step1_Y0_i; /* Expression: 0
|
||||||
|
* Referenced by: '<S51>/Step1'
|
||||||
|
*/
|
||||||
|
real_T Step1_YFinal_k; /* Expression: -1
|
||||||
|
* Referenced by: '<S51>/Step1'
|
||||||
|
*/
|
||||||
|
real_T valp_nom7_Value; /* Expression: sps.HarmonicGeneration
|
||||||
|
* Referenced by: '<S51>/valp_nom7'
|
||||||
|
*/
|
||||||
|
real_T Gain3_Gain_l; /* Expression: pi/180
|
||||||
|
* Referenced by: '<S52>/Gain3'
|
||||||
|
*/
|
||||||
|
real_T valp_nom2_Value_i; /* Expression: 1
|
||||||
|
* Referenced by: '<S52>/valp_nom2'
|
||||||
|
*/
|
||||||
|
real_T Gain3_Gain_j; /* Expression: pi/180
|
||||||
|
* Referenced by: '<S53>/Gain3'
|
||||||
|
*/
|
||||||
|
real_T valp_nom2_Value_c; /* Expression: 1
|
||||||
|
* Referenced by: '<S53>/valp_nom2'
|
||||||
|
*/
|
||||||
|
real_T Constant3_Value_m; /* Expression: sps.Delay
|
||||||
|
* Referenced by: '<S73>/Constant3'
|
||||||
|
*/
|
||||||
|
real_T Constant4_Value_p; /* Expression: sps.Period
|
||||||
|
* Referenced by: '<S73>/Constant4'
|
||||||
|
*/
|
||||||
|
real_T uib1_Gain; /* Expression: sps.Freq
|
||||||
|
* Referenced by: '<S73>/1\ib1'
|
||||||
|
*/
|
||||||
|
real_T uDLookupTable_tableData_d[3]; /* Expression: [0 2 0]
|
||||||
|
* Referenced by: '<S73>/1-D Lookup Table'
|
||||||
|
*/
|
||||||
|
real_T uDLookupTable_bp01Data_k[3]; /* Expression: [0 .5 1]
|
||||||
|
* Referenced by: '<S73>/1-D Lookup Table'
|
||||||
|
*/
|
||||||
|
real_T Constant2_Value_a; /* Expression: 1
|
||||||
|
* Referenced by: '<S73>/Constant2'
|
||||||
|
*/
|
||||||
|
real_T Constant_Value_c; /* Expression: 230
|
||||||
|
* Referenced by: '<Root>/Constant'
|
||||||
|
*/
|
||||||
|
real_T Constant3_Value_ej; /* Expression: sps.Delay
|
||||||
|
* Referenced by: '<S74>/Constant3'
|
||||||
|
*/
|
||||||
|
real_T Constant1_Value_o; /* Expression: sps.Period
|
||||||
|
* Referenced by: '<S74>/Constant1'
|
||||||
|
*/
|
||||||
|
real_T uib1_Gain_i; /* Expression: sps.Freq
|
||||||
|
* Referenced by: '<S74>/1\ib1'
|
||||||
|
*/
|
||||||
|
real_T uDLookupTable_tableData_f[3]; /* Expression: [0 2 0]
|
||||||
|
* Referenced by: '<S74>/1-D Lookup Table'
|
||||||
|
*/
|
||||||
|
real_T uDLookupTable_bp01Data_i[3]; /* Expression: [0 .5 1]
|
||||||
|
* Referenced by: '<S74>/1-D Lookup Table'
|
||||||
|
*/
|
||||||
|
real_T Constant2_Value_at; /* Expression: 1
|
||||||
|
* Referenced by: '<S74>/Constant2'
|
||||||
|
*/
|
||||||
|
real_T Constant1_Value_ah; /* Expression: 230
|
||||||
|
* Referenced by: '<Root>/Constant1'
|
||||||
|
*/
|
||||||
|
real_T Constant3_Value_mm; /* Expression: sps.Delay
|
||||||
|
* Referenced by: '<S75>/Constant3'
|
||||||
|
*/
|
||||||
|
real_T Constant1_Value_p; /* Expression: sps.Period
|
||||||
|
* Referenced by: '<S75>/Constant1'
|
||||||
|
*/
|
||||||
|
real_T uib1_Gain_c; /* Expression: sps.Freq
|
||||||
|
* Referenced by: '<S75>/1\ib1'
|
||||||
|
*/
|
||||||
|
real_T uDLookupTable_tableData_h[3]; /* Expression: [0 2 0]
|
||||||
|
* Referenced by: '<S75>/1-D Lookup Table'
|
||||||
|
*/
|
||||||
|
real_T uDLookupTable_bp01Data_m[3]; /* Expression: [0 .5 1]
|
||||||
|
* Referenced by: '<S75>/1-D Lookup Table'
|
||||||
|
*/
|
||||||
|
real_T Constant2_Value_k; /* Expression: 1
|
||||||
|
* Referenced by: '<S75>/Constant2'
|
||||||
|
*/
|
||||||
|
real_T Constant2_Value_a1; /* Expression: 230
|
||||||
|
* Referenced by: '<Root>/Constant2'
|
||||||
|
*/
|
||||||
|
real_T TransportDelay_Delay; /* Expression: 1e-6
|
||||||
|
* Referenced by: '<S3>/Transport Delay'
|
||||||
|
*/
|
||||||
|
real_T TransportDelay_InitOutput; /* Expression: 0
|
||||||
|
* Referenced by: '<S3>/Transport Delay'
|
||||||
|
*/
|
||||||
|
real_T TransportDelay_Delay_l; /* Expression: 1e-6
|
||||||
|
* Referenced by: '<S4>/Transport Delay'
|
||||||
|
*/
|
||||||
|
real_T TransportDelay_InitOutput_l; /* Expression: 0
|
||||||
|
* Referenced by: '<S4>/Transport Delay'
|
||||||
|
*/
|
||||||
|
real_T TransportDelay_Delay_c; /* Expression: 1e-6
|
||||||
|
* Referenced by: '<S5>/Transport Delay'
|
||||||
|
*/
|
||||||
|
real_T TransportDelay_InitOutput_le; /* Expression: 0
|
||||||
|
* Referenced by: '<S5>/Transport Delay'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput1_P1_Size[2];/* Computed Parameter: Digitaloutput1_P1_Size
|
||||||
|
* Referenced by: '<Root>/Digital output1'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput1_P1; /* Expression: id
|
||||||
|
* Referenced by: '<Root>/Digital output1'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput1_P2_Size[2];/* Computed Parameter: Digitaloutput1_P2_Size
|
||||||
|
* Referenced by: '<Root>/Digital output1'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput1_P2[3]; /* Expression: chan
|
||||||
|
* Referenced by: '<Root>/Digital output1'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput1_P3_Size[2];/* Computed Parameter: Digitaloutput1_P3_Size
|
||||||
|
* Referenced by: '<Root>/Digital output1'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput1_P3; /* Expression: vectorizeInput
|
||||||
|
* Referenced by: '<Root>/Digital output1'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput1_P4_Size[2];/* Computed Parameter: Digitaloutput1_P4_Size
|
||||||
|
* Referenced by: '<Root>/Digital output1'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput1_P4[3]; /* Expression: reset
|
||||||
|
* Referenced by: '<Root>/Digital output1'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput1_P5_Size[2];/* Computed Parameter: Digitaloutput1_P5_Size
|
||||||
|
* Referenced by: '<Root>/Digital output1'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput1_P5[3]; /* Expression: init
|
||||||
|
* Referenced by: '<Root>/Digital output1'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput1_P6_Size[2];/* Computed Parameter: Digitaloutput1_P6_Size
|
||||||
|
* Referenced by: '<Root>/Digital output1'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput1_P6; /* Expression: ts
|
||||||
|
* Referenced by: '<Root>/Digital output1'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput2_P1_Size[2];/* Computed Parameter: Digitaloutput2_P1_Size
|
||||||
|
* Referenced by: '<Root>/Digital output2'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput2_P1; /* Expression: id
|
||||||
|
* Referenced by: '<Root>/Digital output2'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput2_P2_Size[2];/* Computed Parameter: Digitaloutput2_P2_Size
|
||||||
|
* Referenced by: '<Root>/Digital output2'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput2_P2[3]; /* Expression: chan
|
||||||
|
* Referenced by: '<Root>/Digital output2'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput2_P3_Size[2];/* Computed Parameter: Digitaloutput2_P3_Size
|
||||||
|
* Referenced by: '<Root>/Digital output2'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput2_P3; /* Expression: vectorizeInput
|
||||||
|
* Referenced by: '<Root>/Digital output2'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput2_P4_Size[2];/* Computed Parameter: Digitaloutput2_P4_Size
|
||||||
|
* Referenced by: '<Root>/Digital output2'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput2_P4[3]; /* Expression: reset
|
||||||
|
* Referenced by: '<Root>/Digital output2'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput2_P5_Size[2];/* Computed Parameter: Digitaloutput2_P5_Size
|
||||||
|
* Referenced by: '<Root>/Digital output2'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput2_P5[3]; /* Expression: init
|
||||||
|
* Referenced by: '<Root>/Digital output2'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput2_P6_Size[2];/* Computed Parameter: Digitaloutput2_P6_Size
|
||||||
|
* Referenced by: '<Root>/Digital output2'
|
||||||
|
*/
|
||||||
|
real_T Digitaloutput2_P6; /* Expression: ts
|
||||||
|
* Referenced by: '<Root>/Digital output2'
|
||||||
|
*/
|
||||||
|
real_T Switch_Threshold_e; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S84>/Switch'
|
||||||
|
*/
|
||||||
|
real_T Saturation_UpperSat; /* Expression: 1
|
||||||
|
* Referenced by: '<S76>/Saturation'
|
||||||
|
*/
|
||||||
|
real_T Saturation_LowerSat; /* Expression: 0
|
||||||
|
* Referenced by: '<S76>/Saturation'
|
||||||
|
*/
|
||||||
|
real_T Constant6_Value_e; /* Expression: 0
|
||||||
|
* Referenced by: '<Root>/Constant6'
|
||||||
|
*/
|
||||||
|
real_T Switch_Threshold_p; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S86>/Switch'
|
||||||
|
*/
|
||||||
|
real_T Switch_Threshold_i; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S88>/Switch'
|
||||||
|
*/
|
||||||
|
real_T Switch_Threshold_o; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S90>/Switch'
|
||||||
|
*/
|
||||||
|
real_T Switch_Threshold_a; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S92>/Switch'
|
||||||
|
*/
|
||||||
|
real_T Switch_Threshold_n; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S94>/Switch'
|
||||||
|
*/
|
||||||
|
real_T Constant_Value_a; /* Expression: -1
|
||||||
|
* Referenced by: '<S3>/Constant'
|
||||||
|
*/
|
||||||
|
real_T Constant_Value_g; /* Expression: -1
|
||||||
|
* Referenced by: '<S4>/Constant'
|
||||||
|
*/
|
||||||
|
real_T Constant_Value_n5; /* Expression: -1
|
||||||
|
* Referenced by: '<S5>/Constant'
|
||||||
|
*/
|
||||||
|
real_T Constant5_Value_ct; /* Expression: 0
|
||||||
|
* Referenced by: '<S42>/Constant5'
|
||||||
|
*/
|
||||||
|
real_T Constant3_Value_n; /* Expression: 4
|
||||||
|
* Referenced by: '<S46>/Constant3'
|
||||||
|
*/
|
||||||
|
real_T Gain2_Gain_h; /* Expression: 2*pi
|
||||||
|
* Referenced by: '<S42>/Gain2'
|
||||||
|
*/
|
||||||
|
real_T Gain3_Gain_i; /* Expression: 180/pi
|
||||||
|
* Referenced by: '<S40>/Gain3'
|
||||||
|
*/
|
||||||
|
real_T Constant7_Value; /* Expression: 2*pi
|
||||||
|
* Referenced by: '<S44>/Constant7'
|
||||||
|
*/
|
||||||
|
real_T Constant_Value_p; /* Expression: 2
|
||||||
|
* Referenced by: '<S56>/Constant'
|
||||||
|
*/
|
||||||
|
real_T Constant2_Value_i; /* Expression: 1
|
||||||
|
* Referenced by: '<S56>/Constant2'
|
||||||
|
*/
|
||||||
|
real_T Switch_Threshold_d; /* Expression: 0.5
|
||||||
|
* Referenced by: '<S56>/Switch'
|
||||||
|
*/
|
||||||
|
real_T donotdeletethisgain_Gain; /* Expression: 1
|
||||||
|
* Referenced by: '<S64>/do not delete this gain'
|
||||||
|
*/
|
||||||
|
real_T donotdeletethisgain_Gain_d; /* Expression: 1
|
||||||
|
* Referenced by: '<S65>/do not delete this gain'
|
||||||
|
*/
|
||||||
|
real_T donotdeletethisgain_Gain_h; /* Expression: 1
|
||||||
|
* Referenced by: '<S66>/do not delete this gain'
|
||||||
|
*/
|
||||||
|
real_T Kv1_Gain; /* Expression: Kv
|
||||||
|
* Referenced by: '<S7>/Kv1'
|
||||||
|
*/
|
||||||
|
real_T donotdeletethisgain_Gain_j; /* Expression: 1
|
||||||
|
* Referenced by: '<S61>/do not delete this gain'
|
||||||
|
*/
|
||||||
|
real_T donotdeletethisgain_Gain_n; /* Expression: 1
|
||||||
|
* Referenced by: '<S62>/do not delete this gain'
|
||||||
|
*/
|
||||||
|
real_T donotdeletethisgain_Gain_p; /* Expression: 1
|
||||||
|
* Referenced by: '<S63>/do not delete this gain'
|
||||||
|
*/
|
||||||
|
real_T Kv_Gain; /* Expression: Ki
|
||||||
|
* Referenced by: '<S7>/Kv'
|
||||||
|
*/
|
||||||
|
real_T UnitDelay_InitialCondition; /* Expression: 0
|
||||||
|
* Referenced by: '<S73>/Unit Delay'
|
||||||
|
*/
|
||||||
|
boolean_T Constant_Value_b; /* Expression: SM.ctrl==1
|
||||||
|
* Referenced by: '<S19>/Constant'
|
||||||
|
*/
|
||||||
|
boolean_T Constant1_Value_kj; /* Expression: SM.ctrl==2
|
||||||
|
* Referenced by: '<S19>/Constant1'
|
||||||
|
*/
|
||||||
|
boolean_T Constant3_Value_h; /* Expression: SM.ctrl==3
|
||||||
|
* Referenced by: '<S19>/Constant3'
|
||||||
|
*/
|
||||||
|
boolean_T Constant_Value_px; /* Expression: SM.ctrl==1
|
||||||
|
* Referenced by: '<S18>/Constant'
|
||||||
|
*/
|
||||||
|
boolean_T Constant1_Value_b; /* Expression: SM.ctrl==2
|
||||||
|
* Referenced by: '<S18>/Constant1'
|
||||||
|
*/
|
||||||
|
boolean_T Constant2_Value_d; /* Expression: SM.ctrl==3
|
||||||
|
* Referenced by: '<S18>/Constant2'
|
||||||
|
*/
|
||||||
|
boolean_T Constant_Value_j; /* Expression: SM.ctrl==1
|
||||||
|
* Referenced by: '<S17>/Constant'
|
||||||
|
*/
|
||||||
|
boolean_T Constant1_Value_f; /* Expression: SM.ctrl==2
|
||||||
|
* Referenced by: '<S17>/Constant1'
|
||||||
|
*/
|
||||||
|
boolean_T Constant2_Value_kn; /* Expression: SM.ctrl==3
|
||||||
|
* Referenced by: '<S17>/Constant2'
|
||||||
|
*/
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Storage class 'PageSwitching' */
|
||||||
|
extern VFControl_cal_type VFControl_cal_impl;
|
||||||
|
extern VFControl_cal_type *VFControl_cal;
|
||||||
|
|
||||||
|
#endif /* VFControl_cal_h_ */
|
89
Simulink/VF Control/VFControl_sg_rtw/VFControl_private.h
Normal file
89
Simulink/VF Control/VFControl_sg_rtw/VFControl_private.h
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
/*
|
||||||
|
* VFControl_private.h
|
||||||
|
*
|
||||||
|
* Academic License - for use in teaching, academic research, and meeting
|
||||||
|
* course requirements at degree granting institutions only. Not for
|
||||||
|
* government, commercial, or other organizational use.
|
||||||
|
*
|
||||||
|
* Code generation for model "VFControl".
|
||||||
|
*
|
||||||
|
* Model version : 1.1
|
||||||
|
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
||||||
|
* C++ source code generated on : Wed Oct 16 11:33:22 2024
|
||||||
|
*
|
||||||
|
* Target selection: speedgoat.tlc
|
||||||
|
* Note: GRT includes extra infrastructure and instrumentation for prototyping
|
||||||
|
* Embedded hardware selection: Intel->x86-64 (Linux 64)
|
||||||
|
* Code generation objectives: Unspecified
|
||||||
|
* Validation result: Not run
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef VFControl_private_h_
|
||||||
|
#define VFControl_private_h_
|
||||||
|
#include "rtwtypes.h"
|
||||||
|
#include "multiword_types.h"
|
||||||
|
#include "VFControl_types.h"
|
||||||
|
#include "VFControl.h"
|
||||||
|
#include <math.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
/* Private macros used by the generated code to access rtModel */
|
||||||
|
#ifndef rtmIsMajorTimeStep
|
||||||
|
#define rtmIsMajorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MAJOR_TIME_STEP)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmIsMinorTimeStep
|
||||||
|
#define rtmIsMinorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MINOR_TIME_STEP)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmSetTFinal
|
||||||
|
#define rtmSetTFinal(rtm, val) ((rtm)->Timing.tFinal = (val))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmSetTPtr
|
||||||
|
#define rtmSetTPtr(rtm, val) ((rtm)->Timing.t = (val))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CodeFormat
|
||||||
|
#define CodeFormat S-Function
|
||||||
|
#else
|
||||||
|
#undef CodeFormat
|
||||||
|
#define CodeFormat S-Function
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef S_FUNCTION_NAME
|
||||||
|
#define S_FUNCTION_NAME simulink_only_sfcn
|
||||||
|
#else
|
||||||
|
#undef S_FUNCTION_NAME
|
||||||
|
#define S_FUNCTION_NAME simulink_only_sfcn
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef S_FUNCTION_LEVEL
|
||||||
|
#define S_FUNCTION_LEVEL 2
|
||||||
|
#else
|
||||||
|
#undef S_FUNCTION_LEVEL
|
||||||
|
#define S_FUNCTION_LEVEL 2
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef RTW_GENERATED_S_FUNCTION
|
||||||
|
#define RTW_GENERATED_S_FUNCTION
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmGetDataMapInfo
|
||||||
|
# define rtmGetDataMapInfo(rtm) NULL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef rtmSetDataMapInfo
|
||||||
|
# define rtmSetDataMapInfo(rtm, val)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(RTW_SFUNCTION_DEFINES)
|
||||||
|
#define RTW_SFUNCTION_DEFINES
|
||||||
|
#ifndef _RTW_COMMON_DEFINES_
|
||||||
|
#define _RTW_COMMON_DEFINES_
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern "C" void sg_fpga_do_sf_a2(SimStruct *rts);
|
||||||
|
|
||||||
|
#endif /* VFControl_private_h_ */
|
27
Simulink/VF Control/VFControl_sg_rtw/VFControl_types.h
Normal file
27
Simulink/VF Control/VFControl_sg_rtw/VFControl_types.h
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* VFControl_types.h
|
||||||
|
*
|
||||||
|
* Academic License - for use in teaching, academic research, and meeting
|
||||||
|
* course requirements at degree granting institutions only. Not for
|
||||||
|
* government, commercial, or other organizational use.
|
||||||
|
*
|
||||||
|
* Code generation for model "VFControl".
|
||||||
|
*
|
||||||
|
* Model version : 1.1
|
||||||
|
* Simulink Coder version : 24.1 (R2024a) 19-Nov-2023
|
||||||
|
* C++ source code generated on : Wed Oct 16 11:33:22 2024
|
||||||
|
*
|
||||||
|
* Target selection: speedgoat.tlc
|
||||||
|
* Note: GRT includes extra infrastructure and instrumentation for prototyping
|
||||||
|
* Embedded hardware selection: Intel->x86-64 (Linux 64)
|
||||||
|
* Code generation objectives: Unspecified
|
||||||
|
* Validation result: Not run
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef VFControl_types_h_
|
||||||
|
#define VFControl_types_h_
|
||||||
|
|
||||||
|
/* Forward declaration for rtModel */
|
||||||
|
typedef struct tag_RTM_VFControl_T RT_MODEL_VFControl_T;
|
||||||
|
|
||||||
|
#endif /* VFControl_types_h_ */
|
BIN
Simulink/VF Control/VFControl_sg_rtw/VFControlcal.mat
Normal file
BIN
Simulink/VF Control/VFControl_sg_rtw/VFControlcal.mat
Normal file
Binary file not shown.
BIN
Simulink/VF Control/VFControl_sg_rtw/buildInfo.mat
Normal file
BIN
Simulink/VF Control/VFControl_sg_rtw/buildInfo.mat
Normal file
Binary file not shown.
BIN
Simulink/VF Control/VFControl_sg_rtw/codeInfo.mat
Normal file
BIN
Simulink/VF Control/VFControl_sg_rtw/codeInfo.mat
Normal file
Binary file not shown.
BIN
Simulink/VF Control/VFControl_sg_rtw/codedescriptor.dmr
Normal file
BIN
Simulink/VF Control/VFControl_sg_rtw/codedescriptor.dmr
Normal file
Binary file not shown.
@ -0,0 +1,15 @@
|
|||||||
|
|
||||||
|
call "%SLREALTIME_QNX_SP_ROOT%\%SLREALTIME_QNX_VERSION%\qnxsdp-env.bat"
|
||||||
|
|
||||||
|
cd .
|
||||||
|
|
||||||
|
chcp 1252
|
||||||
|
|
||||||
|
if "%1"=="" (make -f VFControl.mk all) else (make -f VFControl.mk %1)
|
||||||
|
@if errorlevel 1 goto error_exit
|
||||||
|
|
||||||
|
exit /B 0
|
||||||
|
|
||||||
|
:error_exit
|
||||||
|
echo The make command returned an error of %errorlevel%
|
||||||
|
exit /B 1
|
505
Simulink/VF Control/VFControl_sg_rtw/instrumented/VFControl.mk
Normal file
505
Simulink/VF Control/VFControl_sg_rtw/instrumented/VFControl.mk
Normal file
@ -0,0 +1,505 @@
|
|||||||
|
###########################################################################
|
||||||
|
## Makefile generated for component 'VFControl'.
|
||||||
|
##
|
||||||
|
## Makefile : VFControl.mk
|
||||||
|
## Generated on : Wed Oct 16 11:33:28 2024
|
||||||
|
## Final product: $(START_DIR)/VFControl_sg_rtw/VFControl
|
||||||
|
## Product type : executable
|
||||||
|
##
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## MACROS
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
# Macro Descriptions:
|
||||||
|
# PRODUCT_NAME Name of the system to build
|
||||||
|
# MAKEFILE Name of this makefile
|
||||||
|
|
||||||
|
PRODUCT_NAME = VFControl
|
||||||
|
MAKEFILE = VFControl.mk
|
||||||
|
MATLAB_ROOT = C:/PROGRA~1/MATLAB/R2024a
|
||||||
|
MATLAB_BIN = C:/PROGRA~1/MATLAB/R2024a/bin
|
||||||
|
MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64
|
||||||
|
START_DIR = C:/Users/PROMER~1/Desktop/SPARK-~1/Spark/UNAV/BANCOD~1/Simulink/VFCONT~1
|
||||||
|
SOLVER =
|
||||||
|
SOLVER_OBJ =
|
||||||
|
CLASSIC_INTERFACE = 0
|
||||||
|
TGT_FCN_LIB = ISO_C++
|
||||||
|
MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0
|
||||||
|
RELATIVE_PATH_TO_ANCHOR = ../..
|
||||||
|
C_STANDARD_OPTS =
|
||||||
|
CPP_STANDARD_OPTS =
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## TOOLCHAIN SPECIFICATIONS
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
# Toolchain Name: Simulink Real-Time Toolchain
|
||||||
|
# Supported Version(s):
|
||||||
|
# ToolchainInfo Version: 2024a
|
||||||
|
# Specification Revision: 1.0
|
||||||
|
#
|
||||||
|
#-------------------------------------------
|
||||||
|
# Macros assumed to be defined elsewhere
|
||||||
|
#-------------------------------------------
|
||||||
|
|
||||||
|
# SLREALTIME_QNX_SP_ROOT
|
||||||
|
# SLREALTIME_QNX_VERSION
|
||||||
|
|
||||||
|
#-----------
|
||||||
|
# MACROS
|
||||||
|
#-----------
|
||||||
|
|
||||||
|
QCC_TARGET = gcc_ntox86_64
|
||||||
|
|
||||||
|
TOOLCHAIN_SRCS =
|
||||||
|
TOOLCHAIN_INCS =
|
||||||
|
TOOLCHAIN_LIBS = -L$(MATLAB_ROOT)/toolbox/slrealtime/target/win64/target/lib -ltraceparser -lpps -lslrealtime_kernel -lslrealtime_platform -lslrealtime_rtps -lsocket -lboost_system -lboost_log -lpci -lopenblas -lpcap
|
||||||
|
|
||||||
|
#------------------------
|
||||||
|
# BUILD TOOL COMMANDS
|
||||||
|
#------------------------
|
||||||
|
|
||||||
|
# C Compiler: QNX C Compiler
|
||||||
|
CC = qcc
|
||||||
|
|
||||||
|
# Linker: QCC Linker
|
||||||
|
LD = q++
|
||||||
|
|
||||||
|
# C++ Compiler: QNX C++ Compiler
|
||||||
|
CPP = q++
|
||||||
|
|
||||||
|
# C++ Linker: QCC C++ Linker
|
||||||
|
CPP_LD = q++
|
||||||
|
|
||||||
|
# Archiver: QNX Archiver
|
||||||
|
AR = ntox86_64-gcc-ar
|
||||||
|
|
||||||
|
# Builder: GMAKE Utility
|
||||||
|
MAKE = make
|
||||||
|
|
||||||
|
|
||||||
|
#-------------------------
|
||||||
|
# Directives/Utilities
|
||||||
|
#-------------------------
|
||||||
|
|
||||||
|
CDEBUG = -g -O0 -finstrument-functions
|
||||||
|
C_OUTPUT_FLAG = -o
|
||||||
|
LDDEBUG = -g
|
||||||
|
OUTPUT_FLAG = -o
|
||||||
|
CPPDEBUG = -g -O0 -finstrument-functions
|
||||||
|
CPP_OUTPUT_FLAG = -o
|
||||||
|
CPPLDDEBUG = -g
|
||||||
|
OUTPUT_FLAG = -o
|
||||||
|
ARDEBUG =
|
||||||
|
STATICLIB_OUTPUT_FLAG =
|
||||||
|
RM = @del /F
|
||||||
|
ECHO = @echo
|
||||||
|
MV = @move
|
||||||
|
RUN =
|
||||||
|
|
||||||
|
#--------------------------------------
|
||||||
|
# "Faster Runs" Build Configuration
|
||||||
|
#--------------------------------------
|
||||||
|
|
||||||
|
ARFLAGS = ruvs
|
||||||
|
CFLAGS = -c -V$(QCC_TARGET) -g \
|
||||||
|
-O2 -fwrapv
|
||||||
|
CPPFLAGS = -c -V$(QCC_TARGET) -g -std=gnu++14 -stdlib=libstdc++ \
|
||||||
|
-O2 -fwrapv
|
||||||
|
CPP_LDFLAGS = -V$(QCC_TARGET) -g -std=gnu++14 -stdlib=libstdc++
|
||||||
|
CPP_SHAREDLIB_LDFLAGS = -V$(QCC_TARGET) -shared -Wl,--no-undefined -g
|
||||||
|
LDFLAGS = -V$(QCC_TARGET) -g -std=gnu++14 -stdlib=libstdc++
|
||||||
|
MAKE_FLAGS = -f $(MAKEFILE)
|
||||||
|
SHAREDLIB_LDFLAGS = -V$(QCC_TARGET) -shared -Wl,--no-undefined -g
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## OUTPUT INFO
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
PRODUCT = $(START_DIR)/VFControl_sg_rtw/VFControl
|
||||||
|
PRODUCT_TYPE = "executable"
|
||||||
|
BUILD_TYPE = "Top-Level Standalone Executable"
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## INCLUDE PATHS
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
INCLUDES_BUILDINFO = -I$(START_DIR)/slprj/speedgoat/PWMGenerator -I$(START_DIR) -I$(START_DIR)/VFControl_sg_rtw -I$(MATLAB_ROOT)/toolbox/slrealtime/simulink/blocks/dist/include -I$(MATLAB_ROOT)/toolbox/slrealtime/target/kernel/dist/include -I$(MATLAB_ROOT)/extern/include -I$(MATLAB_ROOT)/simulink/include -I$(MATLAB_ROOT)/rtw/c/src -I$(MATLAB_ROOT)/rtw/c/src/ext_mode/common -IC:/PROGRA~3/SPEEDG~1/SPEEDG~1/R2024a/990DE8~1.0/SG_BLO~1/common/libsg -I$(MATLAB_ROOT)/toolbox/physmod/powersys/facts/facts -I$(MATLAB_ROOT)/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~3/SPEEDG~1/SPEEDG~1/R2024a/990DE8~1.0 -IC:/PROGRA~3/SPEEDG~1/SPEEDG~1/R2024a/990DE8~1.0/SG_BLO~1/fpga/setup/include -I$(START_DIR)/slprj/speedgoat/_sharedutils -I$(START_DIR)/VFControl_sg_rtw/instrumented
|
||||||
|
|
||||||
|
INCLUDES = $(INCLUDES_BUILDINFO)
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## DEFINES
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
DEFINES_ = -DSIMULINK_REAL_TIME -D_QNX_SOURCE
|
||||||
|
DEFINES_BUILD_ARGS = -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEXT_MODE=1 -DMAT_FILE=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1
|
||||||
|
DEFINES_CUSTOM =
|
||||||
|
DEFINES_OPTS = -DTID01EQ=1
|
||||||
|
DEFINES_STANDARD = -DMODEL=VFControl -DNUMST=3 -DNCSTATES=0 -DHAVESTDIO -DRT -DUSE_RTMODEL
|
||||||
|
|
||||||
|
DEFINES = $(DEFINES_) $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) $(DEFINES_STANDARD)
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## SOURCE FILES
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
SRCS = $(MATLAB_ROOT)/rtw/c/src/rt_matrx.c $(MATLAB_ROOT)/rtw/c/src/rt_printf.c $(START_DIR)/VFControl_sg_rtw/VFControl.cpp $(START_DIR)/VFControl_sg_rtw/VFControl_cal.cpp $(START_DIR)/VFControl_sg_rtw/rtmodel.cpp $(START_DIR)/VFControl_sg_rtw/slrealtime_datatype_ground.cpp $(START_DIR)/VFControl_sg_rtw/rte_VFControl_parameters.cpp $(START_DIR)/VFControl_sg_rtw/main.cpp C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/dio/sg_fpga_do_sf_a2.c C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io30x_setup_util.c C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io3xx_scatter_gather_dma.c C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io39x_setup_util.c C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io31x_io32x_setup_util.c C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io33x_setup_util.c C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_setup_util.c C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io36x_setup_util.c C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io3xx_util.c $(START_DIR)/VFControl_sg_rtw/sg_early_init.cpp host_timer_x86.c slrealtime_code_profiling_utility_functions.cpp
|
||||||
|
|
||||||
|
ALL_SRCS = $(SRCS)
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## OBJECTS
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
OBJS = rt_matrx.o rt_printf.o VFControl.o VFControl_cal.o rtmodel.o slrealtime_datatype_ground.o rte_VFControl_parameters.o main.o sg_fpga_do_sf_a2.o sg_fpga_io30x_setup_util.o sg_fpga_io3xx_scatter_gather_dma.o sg_fpga_io39x_setup_util.o sg_fpga_io31x_io32x_setup_util.o sg_fpga_io33x_setup_util.o sg_fpga_setup_util.o sg_fpga_io36x_setup_util.o sg_fpga_io3xx_util.o sg_early_init.o host_timer_x86.o slrealtime_code_profiling_utility_functions.o
|
||||||
|
|
||||||
|
ALL_OBJS = $(OBJS)
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## PREBUILT OBJECT FILES
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
PREBUILT_OBJS =
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## LIBRARIES
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
MODELREF_LIBS = ../../slprj/speedgoat/PWMGenerator/instrumented/PWMGenerator_rtwlib.a
|
||||||
|
|
||||||
|
LIBS = $(START_DIR)/slprj/speedgoat/_sharedutils/rtwshared.a
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## SYSTEM LIBRARIES
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
SYSTEM_LIBS =
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## ADDITIONAL TOOLCHAIN FLAGS
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
#---------------
|
||||||
|
# C Compiler
|
||||||
|
#---------------
|
||||||
|
|
||||||
|
CFLAGS_BASIC = $(DEFINES) $(INCLUDES)
|
||||||
|
|
||||||
|
CFLAGS += $(CFLAGS_BASIC)
|
||||||
|
|
||||||
|
#-----------------
|
||||||
|
# C++ Compiler
|
||||||
|
#-----------------
|
||||||
|
|
||||||
|
CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES)
|
||||||
|
|
||||||
|
CPPFLAGS += $(CPPFLAGS_BASIC)
|
||||||
|
|
||||||
|
#---------------
|
||||||
|
# C++ Linker
|
||||||
|
#---------------
|
||||||
|
|
||||||
|
CPP_LDFLAGS_ = -lsg_qnx710_x86_64 -LC:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/common/libsg
|
||||||
|
|
||||||
|
CPP_LDFLAGS += $(CPP_LDFLAGS_)
|
||||||
|
|
||||||
|
#------------------------------
|
||||||
|
# C++ Shared Library Linker
|
||||||
|
#------------------------------
|
||||||
|
|
||||||
|
CPP_SHAREDLIB_LDFLAGS_ = -lsg_qnx710_x86_64 -LC:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/common/libsg
|
||||||
|
|
||||||
|
CPP_SHAREDLIB_LDFLAGS += $(CPP_SHAREDLIB_LDFLAGS_)
|
||||||
|
|
||||||
|
#-----------
|
||||||
|
# Linker
|
||||||
|
#-----------
|
||||||
|
|
||||||
|
LDFLAGS_ = -lsg_qnx710_x86_64 -LC:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/common/libsg
|
||||||
|
|
||||||
|
LDFLAGS += $(LDFLAGS_)
|
||||||
|
|
||||||
|
#--------------------------
|
||||||
|
# Shared Library Linker
|
||||||
|
#--------------------------
|
||||||
|
|
||||||
|
SHAREDLIB_LDFLAGS_ = -lsg_qnx710_x86_64 -LC:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/common/libsg
|
||||||
|
|
||||||
|
SHAREDLIB_LDFLAGS += $(SHAREDLIB_LDFLAGS_)
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## INLINED COMMANDS
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## PHONY TARGETS
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
.PHONY : all build buildobj clean info prebuild
|
||||||
|
|
||||||
|
|
||||||
|
all : build
|
||||||
|
@echo "### Successfully generated all binary outputs."
|
||||||
|
|
||||||
|
|
||||||
|
build : prebuild $(PRODUCT)
|
||||||
|
|
||||||
|
|
||||||
|
buildobj : prebuild $(OBJS) $(PREBUILT_OBJS) $(LIBS)
|
||||||
|
@echo "### Successfully generated all binary outputs."
|
||||||
|
|
||||||
|
|
||||||
|
prebuild :
|
||||||
|
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## FINAL TARGET
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
#-------------------------------------------
|
||||||
|
# Create a standalone executable
|
||||||
|
#-------------------------------------------
|
||||||
|
|
||||||
|
$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) $(MODELREF_LIBS) $(LIBS)
|
||||||
|
@echo "### Creating standalone executable "$(PRODUCT)" ..."
|
||||||
|
$(CPP_LD) $(CPP_LDFLAGS) -o $(PRODUCT) $(OBJS) -Wl,--start-group ../../slprj/speedgoat/PWMGenerator/instrumented/PWMGenerator_rtwlib.a $(LIBS) -Wl,--end-group $(SYSTEM_LIBS) $(TOOLCHAIN_LIBS)
|
||||||
|
@echo "### Created: $(PRODUCT)"
|
||||||
|
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## INTERMEDIATE TARGETS
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
#---------------------
|
||||||
|
# SOURCE-TO-OBJECT
|
||||||
|
#---------------------
|
||||||
|
|
||||||
|
%.o : $(RELATIVE_PATH_TO_ANCHOR)/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(MATLAB_ROOT)/toolbox/physmod/powersys/powersys/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(MATLAB_ROOT)/toolbox/physmod/powersys/powersys/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/dio/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/dio/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(START_DIR)/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(START_DIR)/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(START_DIR)/VFControl_sg_rtw/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(START_DIR)/VFControl_sg_rtw/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(MATLAB_ROOT)/rtw/c/src/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(MATLAB_ROOT)/rtw/c/src/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(MATLAB_ROOT)/simulink/src/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(MATLAB_ROOT)/simulink/src/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(MATLAB_ROOT)/toolbox/simulink/blocks/src/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(MATLAB_ROOT)/toolbox/simulink/blocks/src/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : ../%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : ../%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(MATLAB_ROOT)/toolbox/coder/profile/src/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(MATLAB_ROOT)/toolbox/coder/profile/src/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(START_DIR)/VFControl_sg_rtw/instrumented/%.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
%.o : $(START_DIR)/VFControl_sg_rtw/instrumented/%.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
rt_matrx.o : $(MATLAB_ROOT)/rtw/c/src/rt_matrx.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
rt_printf.o : $(MATLAB_ROOT)/rtw/c/src/rt_printf.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
VFControl.o : $(START_DIR)/VFControl_sg_rtw/VFControl.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
VFControl_cal.o : $(START_DIR)/VFControl_sg_rtw/VFControl_cal.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
rtmodel.o : $(START_DIR)/VFControl_sg_rtw/rtmodel.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
slrealtime_datatype_ground.o : $(START_DIR)/VFControl_sg_rtw/slrealtime_datatype_ground.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
rte_VFControl_parameters.o : $(START_DIR)/VFControl_sg_rtw/rte_VFControl_parameters.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
main.o : $(START_DIR)/VFControl_sg_rtw/main.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
sg_fpga_do_sf_a2.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/dio/sg_fpga_do_sf_a2.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
sg_fpga_io30x_setup_util.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io30x_setup_util.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
sg_fpga_io3xx_scatter_gather_dma.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io3xx_scatter_gather_dma.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
sg_fpga_io39x_setup_util.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io39x_setup_util.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
sg_fpga_io31x_io32x_setup_util.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io31x_io32x_setup_util.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
sg_fpga_io33x_setup_util.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io33x_setup_util.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
sg_fpga_setup_util.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_setup_util.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
sg_fpga_io36x_setup_util.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io36x_setup_util.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
sg_fpga_io3xx_util.o : C:/ProgramData/Speedgoat/speedgoatlib/R2024a/9.9.0/sg_blocks/fpga/setup/src/sg_fpga_io3xx_util.c
|
||||||
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
sg_early_init.o : $(START_DIR)/VFControl_sg_rtw/sg_early_init.cpp
|
||||||
|
$(CPP) $(CPPFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## DEPENDENCIES
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
$(ALL_OBJS) : rtw_proj.tmw $(MAKEFILE)
|
||||||
|
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
## MISCELLANEOUS TARGETS
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
info :
|
||||||
|
@echo "### PRODUCT = $(PRODUCT)"
|
||||||
|
@echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)"
|
||||||
|
@echo "### BUILD_TYPE = $(BUILD_TYPE)"
|
||||||
|
@echo "### INCLUDES = $(INCLUDES)"
|
||||||
|
@echo "### DEFINES = $(DEFINES)"
|
||||||
|
@echo "### ALL_SRCS = $(ALL_SRCS)"
|
||||||
|
@echo "### ALL_OBJS = $(ALL_OBJS)"
|
||||||
|
@echo "### LIBS = $(LIBS)"
|
||||||
|
@echo "### MODELREF_LIBS = $(MODELREF_LIBS)"
|
||||||
|
@echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)"
|
||||||
|
@echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)"
|
||||||
|
@echo "### CFLAGS = $(CFLAGS)"
|
||||||
|
@echo "### LDFLAGS = $(LDFLAGS)"
|
||||||
|
@echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)"
|
||||||
|
@echo "### CPPFLAGS = $(CPPFLAGS)"
|
||||||
|
@echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)"
|
||||||
|
@echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)"
|
||||||
|
@echo "### ARFLAGS = $(ARFLAGS)"
|
||||||
|
@echo "### MAKE_FLAGS = $(MAKE_FLAGS)"
|
||||||
|
|
||||||
|
|
||||||
|
clean :
|
||||||
|
$(ECHO) "### Deleting all derived files ..."
|
||||||
|
$(RM) $(subst /,\,$(PRODUCT))
|
||||||
|
$(RM) $(subst /,\,$(ALL_OBJS))
|
||||||
|
$(ECHO) "### Deleted all derived files."
|
||||||
|
|
||||||
|
|
BIN
Simulink/VF Control/VFControl_sg_rtw/instrumented/VFControl.o
Normal file
BIN
Simulink/VF Control/VFControl_sg_rtw/instrumented/VFControl.o
Normal file
Binary file not shown.
Binary file not shown.
BIN
Simulink/VF Control/VFControl_sg_rtw/instrumented/buildInfo.mat
Normal file
BIN
Simulink/VF Control/VFControl_sg_rtw/instrumented/buildInfo.mat
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Simulink/VF Control/VFControl_sg_rtw/instrumented/main.o
Normal file
BIN
Simulink/VF Control/VFControl_sg_rtw/instrumented/main.o
Normal file
Binary file not shown.
Binary file not shown.
BIN
Simulink/VF Control/VFControl_sg_rtw/instrumented/rt_matrx.o
Normal file
BIN
Simulink/VF Control/VFControl_sg_rtw/instrumented/rt_matrx.o
Normal file
Binary file not shown.
BIN
Simulink/VF Control/VFControl_sg_rtw/instrumented/rt_printf.o
Normal file
BIN
Simulink/VF Control/VFControl_sg_rtw/instrumented/rt_printf.o
Normal file
Binary file not shown.
Binary file not shown.
BIN
Simulink/VF Control/VFControl_sg_rtw/instrumented/rtmodel.o
Normal file
BIN
Simulink/VF Control/VFControl_sg_rtw/instrumented/rtmodel.o
Normal file
Binary file not shown.
@ -0,0 +1,4 @@
|
|||||||
|
Simulink Coder project for VFControl using . MATLAB root = C:\Program Files\MATLAB\R2024a. SimStruct date: 12-ene.-2024 11:16:21
|
||||||
|
This file is generated by Simulink Coder for use by the make utility
|
||||||
|
to determine when to rebuild objects when the name of the current Simulink Coder project changes.
|
||||||
|
The rtwinfomat located at:
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user