LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

use XML to decode ARINC data

Hello,

 

i receive ARINC Data with different labels and different encode. i want to use XML to specify for each label how to  decode data

 

for example:

if label =XX  then bit star=11   bit stop=20  and with these informations i decode the data

if label=YY unit=Pa (pressure)  lsb=0.01 then i decode the value

 

My problem is how to struture the XML file and how my application will use this XML to decode Data of each label

 

I'm waiting for your answer

 

thanks

0 Kudos
Message 1 of 8
(3,826 Views)

What is your LabVIEW question?

 

You seem to be asking about the right format for an XML document, specific to your application.

0 Kudos
Message 2 of 8
(3,822 Views)

My question is how to decode data from XML using labview.

 

for example i have a sample of xml document

<Label_id>
XX
<Label_Type>
NUMERIC
<Label_Description>LABEL_XX</Label_Description>
<Label_Name>PC</Label_Name>
<Label_Code>BNR</Label_Code>
<Unite>mbar</Unite>
<Rate_ms>200</Rate_ms>
<Range_min>150</Range_min>
<Range_max>1200</Range_max>
<Sig.bits>18</Sig.bits>
<Resolution>0.0625</Resolution>
<Bus_speed>Low speed</Bus_speed>

 

<Label_id>
YY
<Label_Type>

..............

information different from label XX

..............

 

i must use all nodes informations to decode the data so i don't know who to extact value of each node

and when i receive label, how i can find the  decode to use if i have many label id in my xml file

 

 

0 Kudos
Message 3 of 8
(3,817 Views)

Have you tried a search, or looking at the user manual, or at the examples that ship with LabVIEW? LabVIEW ships with XML Parser functions for reading XML files created using a custom schema (as opposed to the LabVIEW schema). Please look at the manual and the examples that ship with LabVIEW. Once you do that, if you have a more specific question, then post back.

0 Kudos
Message 4 of 8
(3,813 Views)

Yes of course i have tried to look at the user manual and examples

 

I'm searching for an example to how retrieve data of each node but i didn't find it 


0 Kudos
Message 5 of 8
(3,810 Views)

You're not going to find an example that's specific to your XML file. The examples are there to show you how to use the XML Parser VIs. Did you look at the "Load Test Configuration" example? I would start by creating a cluster to represent your data so you can easily work with the data.

 

Post what you have done so far.

0 Kudos
Message 6 of 8
(3,806 Views)

i have started only with functionnal diagrams and i want to know how can i retreive data of each node

 

Because in the example of labview, there is only how to retreive data from XML labview schema and there is not how to retreive data of the nodes

0 Kudos
Message 7 of 8
(3,803 Views)

LabVIEW has two sets of XML VIs/functions. The XML palette clearly has two categories. One set of VIs to be used for the LabVIEW schema. One set of VIs to be used for generic XML functions. I refer you, again, to the example I noted, which is an example that uses the XML Parser VIs to read a generic XML file to extract the data into a cluster.

 

I don't know how I can say it clearer than that.

0 Kudos
Message 8 of 8
(3,798 Views)