LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading VEE data files into LabVIEW

Hello,

 

I need to read data from files that are written by a VEE application into LabVIEW. Does anybody recognise the data structure or should I start writing my own parser?

 

Reagards, Bogomir

 

(schema
 (numFields 18)
 (fieldName "Tip"
  (type Text)
 )
 (fieldName "In"
  (type Real32)
 )
 (fieldName "Del_In"
  (type Real32)
 )
 (fieldName "I1"
  (type Real32)
 )
 (fieldName "Del_I1"
  (type Real32)
 )
 (fieldName "Vn"
  (type Enum)
  (values
   ( "20 V" 0)
   ( "1000 V" 1)
  )
 )
 (fieldName "Ileak"
  (type Enum)
  (values
   ( "100 uA" 0)
   ( "1 mA" 1)
   ( "10 mA" 2)
  )
 )
 (fieldName "Del_leak"
  (type Real32)
 )
 (fieldName "Speed"
  (type Enum)
  (values
   ( "Fast" 0)
   ( "Medium" 1)
   ( "Normal" 2)
  )
 )
 (fieldName "Set_sort"
  (type Coord)
  (numDims 1)
  (size 20)
  (numCoordDims 7)
 )
 (fieldName "k"
  (type Real32)
 )
 (fieldName "R_2"
  (type Real32)
 )
 (fieldName "R_3"
  (type Real32)
 )
 (fieldName "R_4"
  (type Real32)
 )
 (fieldName "Text"
  (type Text)
  (numDims 1)
  (size 20)
 )
 (fieldName "Test_leak"
  (type Text)
 )
 (fieldName "T_3"
  (type Text)
 )
 (fieldName "T_4"
  (type Text)
 )
)

(record
 ( "Tip" "AMK V420R20U1 (+/-10%)")
 ( "In" 1)
 ( "Del_In" 100)
 ( "I1" 10)
 ( "Del_I1" 50)
 ( "Vn" "1000 V")
 ( "Ileak" "1 mA")
 ( "Del_leak" 100)
 ( "Speed" "Medium")
 ( "Set_sort"
   [ (612, 748, 560, 2, 80, 661, 668.3) (612, 748, 560, 2, 80, 668.3, 675.7000000000001) (612, 748, 560, 2, 80, 675.7000000000001, 683) (612, 748, 560, 2, 80, 683, 690.4) (612, 748, 560, 2, 80, 690.4, 697.7000000000001) (612, 748, 560, 2, 80, 697.7000000000001, 705) (612, 748, 560, 2, 80, 705, 712.4) (612, 748, 560, 2, 80, 712.4, 719.7000000000001) (612, 748, 560, 2, 80, 719.7000000000001, 727.1) (612, 748, 560, 2, 80, 727.1, 734.4) (612, 748, 560, 2, 80, 734.4, 741.7000000000001) (612, 748, 560, 2, 80, 741.7000000000001, 749.1) (612, 748, 560, 2, 80, 749.1, 756.4) (612, 748, 560, 2, 80, 756.4, 763.8) (612, 748, 560, 2, 80, 763.8, 771.1) (612, 748, 560, 2, 80, 771.1, 778.4) (612, 748, 560, 2, 80, 778.4, 785.8) (612, 748, 560, 2, 80, 785.8, 793.1) (612, 748, 560, 2, 80, 793.1, 800.5) (612, 748, 560, 2, 80, 800.5, 807.8) ]
 )
 ( "k" 0.75)
 ( "R_2" 20)
 ( "R_3" 80)
 ( "R_4" 4)
 ( "Text"
   [ "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" "16" "17" "18" "19" "20" ]
 )
 ( "Test_leak" "Table")
 ( "T_3" "c")
 ( "T_4" "d")
)

 

0 Kudos
Message 1 of 4
(257 Views)

ChatGPT couldn't find any format that resembles this, do you have more information or context from the VEE application side?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 4
(215 Views)

Yes, I asked ChatGPT also. The context is known. I know what the data is. The shema doesn't change. I just need to read and write the data. I will have to use the same format, because it it used on other VEE testers. I'll just use some string manipulation to read and write desired data.

0 Kudos
Message 3 of 4
(179 Views)

The VEE schema looks kind of like the labview flatten to XML schema. Enough so that you could probably parse the VEE schema to labview XML schema then use the unflatten from XML to import the converted VEE schema into labview. Might be more work than it is worth if the data field is the only thing that changes. Check out the labivew XML schema: 

Screenshot 2024-10-08 at 9.23.08 PM.png

snip.png

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 4 of 4
(138 Views)