我想从仪器控制软件生成的 XMLSchemaWaveFile 中绘制波形。我的目标是从 XML Schema 实时绘制波形数据。我想在我的 LabVIEW GUI 中绘制这个波形。任何有关如何使用任何语言 Python、C# 和 LabVIEW 获取和绘制此数据的指南都会有很大帮助。
这是从 Instrumentation Control Software 生成的 XMLSchemaWaveFile 之一的示例。
<XMLSchemaWaveFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/WavefileData.xsd">
<Sequence>
<ID>0</ID>
<Name>OEM LV124 (2013-02) - [E-02] Transient overvoltage - Test Case 2</Name>
<SampleRate>100</SampleRate>
<Channel>0</Channel>
<IsMaster>1</IsMaster>
<Trigger>3</Trigger>
<Type>0</Type>
<Events>3</Events>
<ActualLevel>0</ActualLevel>
<SequenceIsEnabled>true</SequenceIsEnabled>
<Source>0</Source>
<Phenomen>Voltageprofile</Phenomen>
<ParameterSettings>Individual</ParameterSettings>
<ViewType>Single</ViewType>
<PlayMainLine>false</PlayMainLine>
<ModifyState>1</ModifyState>
<Segment>
<Owner>0</Owner>
<ID>0</ID>
<Name>DC</Name>
<Enabled>true</Enabled>
<Order>0</Order>
<Type>DC</Type>
<ActiveTrigger>false</ActiveTrigger>
<Parameter>
<Owner>0</Owner>
<ID>0</ID>
<ParameterName>t1</ParameterName>
<Relation>0</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>0</Owner>
<ID>1</ID>
<ParameterName>V1</ParameterName>
<Relation>1</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
</Segment>
<Segment>
<Owner>0</Owner>
<ID>1</ID>
<Name>Ramp</Name>
<Enabled>true</Enabled>
<Order>1</Order>
<Type>Ramp</Type>
<ActiveTrigger>false</ActiveTrigger>
<Parameter>
<Owner>1</Owner>
<ID>2</ID>
<ParameterName>t1</ParameterName>
<Relation>2</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>1</Owner>
<ID>3</ID>
<ParameterName>Type</ParameterName>
<Relation>3</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>1</Owner>
<ID>4</ID>
<ParameterName>V1</ParameterName>
<Relation>4</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>1</Owner>
<ID>5</ID>
<ParameterName>V2</ParameterName>
<Relation>5</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
</Segment>
<Segment>
<Owner>0</Owner>
<ID>2</ID>
<Name>DC</Name>
<Enabled>true</Enabled>
<Order>2</Order>
<Type>DC</Type>
<ActiveTrigger>false</ActiveTrigger>
<Parameter>
<Owner>2</Owner>
<ID>6</ID>
<ParameterName>t1</ParameterName>
<Relation>6</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>2</Owner>
<ID>7</ID>
<ParameterName>V1</ParameterName>
<Relation>7</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
</Segment>
<Segment>
<Owner>0</Owner>
<ID>3</ID>
<Name>Ramp</Name>
<Enabled>true</Enabled>
<Order>3</Order>
<Type>Ramp</Type>
<ActiveTrigger>false</ActiveTrigger>
<Parameter>
<Owner>3</Owner>
<ID>8</ID>
<ParameterName>t1</ParameterName>
<Relation>8</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>3</Owner>
<ID>9</ID>
<ParameterName>Type</ParameterName>
<Relation>9</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>3</Owner>
<ID>10</ID>
<ParameterName>V1</ParameterName>
<Relation>10</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>3</Owner>
<ID>11</ID>
<ParameterName>V2</ParameterName>
<Relation>11</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
</Segment>
<Segment>
<Owner>0</Owner>
<ID>4</ID>
<Name>DC</Name>
<Enabled>true</Enabled>
<Order>4</Order>
<Type>DC</Type>
<ActiveTrigger>false</ActiveTrigger>
<Parameter>
<Owner>4</Owner>
<ID>12</ID>
<ParameterName>t1</ParameterName>
<Relation>12</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>4</Owner>
<ID>13</ID>
<ParameterName>V1</ParameterName>
<Relation>13</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
</Segment>
<Segment>
<Owner>0</Owner>
<ID>5</ID>
<Name>Ramp</Name>
<Enabled>true</Enabled>
<Order>5</Order>
<Type>Ramp</Type>
<ActiveTrigger>false</ActiveTrigger>
<Parameter>
<Owner>5</Owner>
<ID>14</ID>
<ParameterName>t1</ParameterName>
<Relation>14</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>5</Owner>
<ID>15</ID>
<ParameterName>Type</ParameterName>
<Relation>15</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>5</Owner>
<ID>16</ID>
<ParameterName>V1</ParameterName>
<Relation>16</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>5</Owner>
<ID>17</ID>
<ParameterName>V2</ParameterName>
<Relation>17</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
</Segment>
<Segment>
<Owner>0</Owner>
<ID>6</ID>
<Name>DC</Name>
<Enabled>true</Enabled>
<Order>6</Order>
<Type>DC</Type>
<ActiveTrigger>false</ActiveTrigger>
<Parameter>
<Owner>6</Owner>
<ID>18</ID>
<ParameterName>t1</ParameterName>
<Relation>18</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
<Parameter>
<Owner>6</Owner>
<ID>19</ID>
<ParameterName>V1</ParameterName>
<Relation>19</Relation>
<AllowInterlink>true</AllowInterlink>
</Parameter>
</Segment>
<PowerSetup>
<Owner>0</Owner>
<ID>0</ID>
<PowerMode>Dc</PowerMode>
<PowerSetupAtLoading>false</PowerSetupAtLoading>
<PowerVoltageValue>13.5</PowerVoltageValue>
<PowerFrequencyValue>0</PowerFrequencyValue>
<PowerSetupActiv>false</PowerSetupActiv>
<PowerSetupPhase>0</PowerSetupPhase>
</PowerSetup>
<StopVoltage>
<Owner>0</Owner>
<ID>0</ID>
<StopVoltageValue>0</StopVoltageValue>
<StopVoltageAtEnd>false</StopVoltageAtEnd>
</StopVoltage>
<Levels>
<Owner>0</Owner>
<ID>0</ID>
<Number>0</Number>
<Duration>3.003</Duration>
<Iteration>
<Owner>0</Owner>
<ID>0</ID>
<Name>ti1</Name>
<Type>TimeIntervall</Type>
<BaseUnit>s</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>11368</RandomSeed>
<ParameterRelation>0</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>0</Owner>
<ID>0</ID>
<Unit>s</Unit>
<Default>1</Default>
</Display>
<Values>
<Owner>0</Owner>
<ID>0</ID>
<Value>1</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>1</ID>
<Name>V1</Name>
<Type>Voltage</Type>
<BaseUnit>V</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>107</RandomSeed>
<ParameterRelation>1</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>1</Owner>
<ID>1</ID>
<Unit>V</Unit>
<Default>16</Default>
</Display>
<Values>
<Owner>1</Owner>
<ID>1</ID>
<Value>16</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>2</ID>
<Name>ti2</Name>
<Type>TimeIntervall</Type>
<BaseUnit>s</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>22736</RandomSeed>
<ParameterRelation>2</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>2</Owner>
<ID>2</ID>
<Unit>ms</Unit>
<Default>0.001</Default>
</Display>
<Values>
<Owner>2</Owner>
<ID>2</ID>
<Value>0.001</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>3</ID>
<Name>Ramp1</Name>
<Type>RampType</Type>
<BaseUnit>RampType</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>-1535563262</RandomSeed>
<ParameterRelation>3</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>3</Owner>
<ID>3</ID>
<Unit>RampType</Unit>
<Default>0</Default>
</Display>
<Values>
<Owner>3</Owner>
<ID>3</ID>
<Value>0</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>4</ID>
<Name>V2</Name>
<Type>Voltage</Type>
<BaseUnit>V</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>107</RandomSeed>
<ParameterRelation>4</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>4</Owner>
<ID>4</ID>
<Unit>V</Unit>
<Default>16</Default>
</Display>
<Values>
<Owner>4</Owner>
<ID>4</ID>
<Value>16</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>5</ID>
<Name>V3</Name>
<Type>Voltage</Type>
<BaseUnit>V</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>135</RandomSeed>
<ParameterRelation>5</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>5</Owner>
<ID>5</ID>
<Unit>V</Unit>
<Default>18</Default>
</Display>
<Values>
<Owner>5</Owner>
<ID>5</ID>
<Value>18</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>6</ID>
<Name>ti3</Name>
<Type>TimeIntervall</Type>
<BaseUnit>s</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>34104</RandomSeed>
<ParameterRelation>6</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>6</Owner>
<ID>6</ID>
<Unit>ms</Unit>
<Default>0.4</Default>
</Display>
<Values>
<Owner>6</Owner>
<ID>6</ID>
<Value>0.4</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>7</ID>
<Name>V4</Name>
<Type>Voltage</Type>
<BaseUnit>V</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>135</RandomSeed>
<ParameterRelation>7</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>7</Owner>
<ID>7</ID>
<Unit>V</Unit>
<Default>18</Default>
</Display>
<Values>
<Owner>7</Owner>
<ID>7</ID>
<Value>18</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>8</ID>
<Name>ti4</Name>
<Type>TimeIntervall</Type>
<BaseUnit>s</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>45472</RandomSeed>
<ParameterRelation>8</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>8</Owner>
<ID>8</ID>
<Unit>ms</Unit>
<Default>0.001</Default>
</Display>
<Values>
<Owner>8</Owner>
<ID>8</ID>
<Value>0.001</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>9</ID>
<Name>Ramp2</Name>
<Type>RampType</Type>
<BaseUnit>RampType</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>1223840772</RandomSeed>
<ParameterRelation>9</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>9</Owner>
<ID>9</ID>
<Unit>RampType</Unit>
<Default>0</Default>
</Display>
<Values>
<Owner>9</Owner>
<ID>9</ID>
<Value>0</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>10</ID>
<Name>V5</Name>
<Type>Voltage</Type>
<BaseUnit>V</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>135</RandomSeed>
<ParameterRelation>10</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>10</Owner>
<ID>10</ID>
<Unit>V</Unit>
<Default>18</Default>
</Display>
<Values>
<Owner>10</Owner>
<ID>10</ID>
<Value>18</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>11</ID>
<Name>V6</Name>
<Type>Voltage</Type>
<BaseUnit>V</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>120</RandomSeed>
<ParameterRelation>11</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>11</Owner>
<ID>11</ID>
<Unit>V</Unit>
<Default>17</Default>
</Display>
<Values>
<Owner>11</Owner>
<ID>11</ID>
<Value>17</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>12</ID>
<Name>ti5</Name>
<Type>TimeIntervall</Type>
<BaseUnit>s</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>56840</RandomSeed>
<ParameterRelation>12</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>12</Owner>
<ID>12</ID>
<Unit>ms</Unit>
<Default>0.6</Default>
</Display>
<Values>
<Owner>12</Owner>
<ID>12</ID>
<Value>0.6</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>13</ID>
<Name>V7</Name>
<Type>Voltage</Type>
<BaseUnit>V</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>120</RandomSeed>
<ParameterRelation>13</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>13</Owner>
<ID>13</ID>
<Unit>V</Unit>
<Default>17</Default>
</Display>
<Values>
<Owner>13</Owner>
<ID>13</ID>
<Value>17</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>14</ID>
<Name>ti6</Name>
<Type>TimeIntervall</Type>
<BaseUnit>s</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>68208</RandomSeed>
<ParameterRelation>14</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>14</Owner>
<ID>14</ID>
<Unit>ms</Unit>
<Default>0.001</Default>
</Display>
<Values>
<Owner>14</Owner>
<ID>14</ID>
<Value>0.001</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>15</ID>
<Name>Ramp3</Name>
<Type>RampType</Type>
<BaseUnit>RampType</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>-311722490</RandomSeed>
<ParameterRelation>15</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>15</Owner>
<ID>15</ID>
<Unit>RampType</Unit>
<Default>0</Default>
</Display>
<Values>
<Owner>15</Owner>
<ID>15</ID>
<Value>0</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>16</ID>
<Name>V8</Name>
<Type>Voltage</Type>
<BaseUnit>V</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>120</RandomSeed>
<ParameterRelation>16</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>16</Owner>
<ID>16</ID>
<Unit>V</Unit>
<Default>17</Default>
</Display>
<Values>
<Owner>16</Owner>
<ID>16</ID>
<Value>17</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>17</ID>
<Name>V9</Name>
<Type>Voltage</Type>
<BaseUnit>V</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>107</RandomSeed>
<ParameterRelation>17</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>17</Owner>
<ID>17</ID>
<Unit>V</Unit>
<Default>16</Default>
</Display>
<Values>
<Owner>17</Owner>
<ID>17</ID>
<Value>16</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>18</ID>
<Name>ti7</Name>
<Type>TimeIntervall</Type>
<BaseUnit>s</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>79576</RandomSeed>
<ParameterRelation>18</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>18</Owner>
<ID>18</ID>
<Unit>s</Unit>
<Default>1</Default>
</Display>
<Values>
<Owner>18</Owner>
<ID>18</ID>
<Value>1</Value>
</Values>
</Iteration>
<Iteration>
<Owner>0</Owner>
<ID>19</ID>
<Name>V10</Name>
<Type>Voltage</Type>
<BaseUnit>V</BaseUnit>
<IterationMode>Defined</IterationMode>
<IterationType>0</IterationType>
<IterationOrder>0</IterationOrder>
<RandomSeed>107</RandomSeed>
<ParameterRelation>19</ParameterRelation>
<IsTable>false</IsTable>
<ValueType>Default</ValueType>
<Display>
<Owner>19</Owner>
<ID>19</ID>
<Unit>V</Unit>
<Default>16</Default>
</Display>
<Values>
<Owner>19</Owner>
<ID>19</ID>
<Value>16</Value>
</Values>
</Iteration>
</Levels>
<OutputSettings>
<Owner>0</Owner>
<ID>0</ID>
<MainDeviceChannel>0</MainDeviceChannel>
<ModulDeviceID />
<ModulDeviceOutputName />
<ModulDeviceOutputId>0</ModulDeviceOutputId>
<ModulDeviceInputName>IN1</ModulDeviceInputName>
<ModulDeviceInputId>0</ModulDeviceInputId>
</OutputSettings>
<CouplingDevice>
<Owner>0</Owner>
<ID>0</ID>
<Name />
<Description />
<Type>None</Type>
</CouplingDevice>
<IterationSettings>
<ID>-1</ID>
<Owner>0</Owner>
<IterationMode>Defined</IterationMode>
<RandomSeed>1</RandomSeed>
<IsRandomSeedGlobal>false</IsRandomSeedGlobal>
<RandomDuration>10</RandomDuration>
<RandomDurationDisplayUnitId>s</RandomDurationDisplayUnitId>
</IterationSettings>
</Sequence>
<FileInfo>
<ID>0</ID>
<Version>6</Version>
<TotalDuration>9.009</TotalDuration>
<Name>OEM LV124 (2013-02) - [E-02] Transient overvoltage - Test Case 2</Name>
<Author />
<Company />
<KeyWords />
<Comment />
<AutoVersion>2021-03-12T10:35:12.6004637+01:00</AutoVersion>
</FileInfo>
<TriggerSettings>
<ID>0</ID>
<TrigStart>3</TrigStart>
<TrigStop>0</TrigStop>
<TrigOut1>0</TrigOut1>
<TrigOut2>0</TrigOut2>
<DutMonitor1>0</DutMonitor1>
<DutMonitor2>0</DutMonitor2>
</TriggerSettings>
<TrigOutEventList>
<ID>-1</ID>
</TrigOutEventList>
<MaxVoltage>
<ID>-1</ID>
<MaxVoltageEnabled>false</MaxVoltageEnabled>
<MaxVoltageValue>0</MaxVoltageValue>
</MaxVoltage>
<SwitchSettings>
<ID>0</ID>
<SupplyVoltage>0</SupplyVoltage>
<SwitchType>1</SwitchType>
<SwitchingState>1</SwitchingState>
<SwitchFast>false</SwitchFast>
<VerificationVoltage>0</VerificationVoltage>
<VerificationBox>0</VerificationBox>
<DeviceUsed>6</DeviceUsed>
</SwitchSettings>
</XMLSchemaWaveFile>
这是上述代码在软件中可用的波形示例: 波形