Commit 68470d00 authored by Zhukov, Alexander P's avatar Zhukov, Alexander P
Browse files

Implemented I32 and i32[]

parent f7f02fe7
......@@ -45,6 +45,24 @@
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082401280</Property>
</Item>
<Item Name="WriteLongString.vi" Type="VI" URL="../WriteLongString.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%H!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!""!-0````]'5X2S;7ZH!!!M1(!!(A!!&amp;"*#;7Z4&gt;'^S97&gt;F,GRW9WRB=X-!!!V#;7Z4&gt;'^S97&gt;F)'FO!&amp;1!]!!-!!-!"!!%!!5!"!!%!!1!"!!'!!1!"Q!)!A!!?!!!$1A!!!!!!!!!!!!!D1M!!!!!!!!!!!!!!!!!!!!!!!!)!!!!!!!!!1I!!!#3!!!!!!%!#1!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">false</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082143232</Property>
</Item>
<Item Name="WriteShortString.vi" Type="VI" URL="../WriteShortString.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%H!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!""!-0````]'5X2S;7ZH!!!M1(!!(A!!&amp;"*#;7Z4&gt;'^S97&gt;F,GRW9WRB=X-!!!V#;7Z4&gt;'^S97&gt;F)'FO!&amp;1!]!!-!!-!"!!%!!5!"!!%!!1!"!!'!!1!"Q!)!A!!?!!!$1A!!!!!!!!!!!!!D1M!!!!!!!!!!!!!!!!!!!!!!!!)!!!!!!!!!AA!!!#3!!!!!!%!#1!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">3</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">false</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1074541056</Property>
</Item>
</Item>
<Item Name="Polymorphic" Type="Folder">
<Item Name="WriteDescr.vi" Type="VI" URL="../WriteDescr.vi">
......@@ -56,6 +74,33 @@
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1342710288</Property>
</Item>
<Item Name="WriteI32.vi" Type="VI" URL="../WriteI32.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!&amp;"!!!!#Q!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!31$$`````#6"B=G&amp;N:82F=A!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!!N!!Q!&amp;6G&amp;M&gt;75!,%"Q!"Y!!"131GFO5X2P=G&amp;H:3ZM&gt;G.M98.T!!!.1GFO5X2P=G&amp;H:3"J&lt;A"B!0!!$!!$!!1!"!!&amp;!!1!"!!%!!9!"Q!%!!A!#1-!!(A!!!U)!!!!!!!!!!!!!!U,!!!!!!!!!!!!!!!!!!%+!!!!#!!!!!!!!!!+!!!!%A!!$1!!!!Q!!!!!!!!!!!!!!1!+!!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1107821072</Property>
</Item>
<Item Name="WriteI32Arr.vi" Type="VI" URL="../WriteI32Arr.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!&amp;4!!!!$!!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!31$$`````#6"B=G&amp;N:82F=A!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!!N!!Q!&amp;6G&amp;M&gt;75!%E"!!!(`````!!A&amp;6G&amp;M&gt;75!,%"Q!"Y!!"131GFO5X2P=G&amp;H:3ZM&gt;G.M98.T!!!.1GFO5X2P=G&amp;H:3"J&lt;A"B!0!!$!!$!!1!"!!&amp;!!1!"!!%!!9!"Q!%!!E!#A-!!(A!!!U)!!!!!!!!!!!!!!U,!!!!!!!!!!!!!!!!!!%+!!!!#!!!!!!!!!%+!!!!%A!!$1!!!!Q!!!!!!!!!!!!!!1!,!!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082143248</Property>
</Item>
<Item Name="WriteName.vi" Type="VI" URL="../WriteName.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%S!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!!Z!-0````]%4G&amp;N:1!!,%"Q!"Y!!"131GFO5X2P=G&amp;H:3ZM&gt;G.M98.T!!!.1GFO5X2P=G&amp;H:3"J&lt;A"B!0!!$!!$!!1!"!!&amp;!!1!"!!%!!1!"A!%!!=!#!-!!(A!!!U)!!!!!!!!!!!!!!U,!!!!!!!!!!!!!!!!!!!!!!!!#A!!!!!!!!%+!!!!%A!!$1!!!!Q!!!!!!!!!!!!!!1!*!!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082143250</Property>
</Item>
<Item Name="WriteTag.vi" Type="VI" URL="../WriteTag.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%Q!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!!R!-0````]$6'&amp;H!#R!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$5*J&lt;F.U&lt;X*B:W5A;7Y!91$Q!!Q!!Q!%!!1!"1!%!!1!"!!%!!9!"!!(!!A$!!"Y!!!.#!!!!!!!!!!!!!!.#Q!!!!!!!!!!!!!!!!!!!!!!!!I!!!!!!!!"#A!!!")!!!U!!!!-!!!!!!!!!!!!!!%!#1!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
......@@ -65,6 +110,15 @@
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1342710288</Property>
</Item>
<Item Name="WriteTimestamp.vi" Type="VI" URL="../WriteTimestamp.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%U!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!""!6!!'#62J&lt;76T&gt;'&amp;N=!!M1(!!(A!!&amp;"*#;7Z4&gt;'^S97&gt;F,GRW9WRB=X-!!!V#;7Z4&gt;'^S97&gt;F)'FO!'%!]!!-!!-!"!!%!!5!"!!%!!1!"!!'!!1!"Q!)!A!!?!!!$1A!!!!!!!!!!!!!$1M!!!!!!!!!!!!!!!!!!!!!!!!)!!!!!!!!!!I!!!!3!!!.!!!!$!!!!!!!!!!!!!!"!!E!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">true</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082143234</Property>
</Item>
</Item>
<Item Name="Close.vi" Type="VI" URL="../Close.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%;!!!!#Q!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!!V!#!!'9X6S=W^S!!!71%!!!@````]!"1BD&lt;WZU:7ZU=Q!!$E!S`````Q2Q982I!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!#R!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$5*J&lt;F.U&lt;X*B:W5A;7Y!6!$Q!!Q!!Q!%!!9!"Q!%!!1!"!!%!!A!"!!%!!E$!!"Y!!!*!!!!!!!!!!E!!!!*!!!!!!!!!!!!!!!!!!!!!!!!!!I!!!!!!!!!!!!!!*)!!!!!!1!+!!!!!!</Property>
......@@ -120,15 +174,6 @@
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082143248</Property>
</Item>
<Item Name="WriteLongString.vi" Type="VI" URL="../WriteLongString.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%H!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!""!-0````]'5X2S;7ZH!!!M1(!!(A!!&amp;"*#;7Z4&gt;'^S97&gt;F,GRW9WRB=X-!!!V#;7Z4&gt;'^S97&gt;F)'FO!&amp;1!]!!-!!-!"!!%!!5!"!!%!!1!"!!'!!1!"Q!)!A!!?!!!$1A!!!!!!!!!!!!!D1M!!!!!!!!!!!!!!!!!!!!!!!!)!!!!!!!!!1I!!!#3!!!!!!%!#1!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">false</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1082143232</Property>
</Item>
<Item Name="WriteRecord.vi" Type="VI" URL="../WriteRecord.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%8!!!!#1!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!#R!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$5*J&lt;F.U&lt;X*B:W5A;7Y!6!$Q!!Q!!Q!%!!1!"1!%!!1!"!!%!!9!"!!%!!=$!!"Y!!!.#!!!!!!!!!!!!!#.#Q!!!!!!!!!!!!!!!!!!!!!!!!I!!!!!!!!!!!!!!*)!!!!!!1!)!!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
......@@ -138,13 +183,4 @@
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1107821072</Property>
</Item>
<Item Name="WriteShortString.vi" Type="VI" URL="../WriteShortString.vi">
<Property Name="NI.ClassItem.ConnectorPane" Type="Bin">'!#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!%H!!!!#A!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#Z!=!!?!!!5%E*J&lt;F.U&lt;X*B:W5O&lt;(:D&lt;'&amp;T=Q!!$E*J&lt;F.U&lt;X*B:W5A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!""!-0````]'5X2S;7ZH!!!M1(!!(A!!&amp;"*#;7Z4&gt;'^S97&gt;F,GRW9WRB=X-!!!V#;7Z4&gt;'^S97&gt;F)'FO!&amp;1!]!!-!!-!"!!%!!5!"!!%!!1!"!!'!!1!"Q!)!A!!?!!!$1A!!!!!!!!!!!!!D1M!!!!!!!!!!!!!!!!!!!!!!!!)!!!!!!!!!AA!!!#3!!!!!!%!#1!!!!!</Property>
<Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
<Property Name="NI.ClassItem.Flags" Type="Int">3</Property>
<Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">false</Property>
<Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
<Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
<Property Name="NI.ClassItem.State" Type="Int">1074541056</Property>
</Item>
</LVClass>
......@@ -25,8 +25,6 @@
<Property Name="specify.custom.address" Type="Bool">false</Property>
<Item Name="TestStorage.vi" Type="VI" URL="../TestStorage.vi"/>
<Item Name="BinStorage.lvclass" Type="LVClass" URL="../BinStorage.lvclass"/>
<Item Name="WriteName.vi" Type="VI" URL="../WriteName.vi"/>
<Item Name="WriteTimestamp.vi" Type="VI" URL="../WriteTimestamp.vi"/>
<Item Name="Dependencies" Type="Dependencies"/>
<Item Name="Build Specifications" Type="Build"/>
</Item>
......
No preview for this file type
No preview for this file type
No preview for this file type
File added
No preview for this file type
No preview for this file type
......@@ -9,6 +9,24 @@ from array import array
from datetime import datetime as dt
def read_size(file, long=True):
if long:
bytes = array('I',file.read(4))
bytes.byteswap()
return bytes[0]
else:
return read_byte(file)
def read_byte(file):
return int.from_bytes(file.read(1),'big')
def short_str(file):
length = read_size(file,False)
return file.read(length).decode()
def name(file, rec):
length = read_size(file,False)
description = file.read(length).decode()
......@@ -16,12 +34,48 @@ def name(file, rec):
return True
def tst(file,rec):
bytes = file.read(8)
ar = array('I',bytes)
raw = file.read(8)
ar = array('I',raw)
ar.byteswap()
t=dt.fromtimestamp(ar[0]+ar[1]*1E-9)
rec['timestamp']=t
return True
def i32(file,rec,param=False,wf=False):
if param:
key = short_str(file)
else:
key = 'value'
if wf:
length = read_size(file)
raw = file.read(length)
ar = array('I',raw)
ar.byteswap()
value = ar
else:
raw = file.read(4)
ar = array('I',raw)
ar.byteswap()
value = ar[0]
rec[key]=value
def i32val(file, rec):
i32(file,rec, False, False)
return True
def i32par(file, rec):
i32(file, rec, True, False)
return True
def i32wfval(file, rec):
i32(file,rec, False, True)
return True
def i32wfpar(file, rec):
i32(file, rec, True, True)
return True
def description(file, rec):
......@@ -54,21 +108,14 @@ parser = {
4: tag,
1: name,
2: tst,
6: i32par,
16: i32val,
36: i32wfval,
26: i32wfpar,
254: end_record,
255: end_file
}
def read_size(file, long=True):
if long:
bytes = array('I',file.read(4))
bytes.byteswap()
return bytes[0]
else:
return read_byte(file)
def read_byte(file):
return int.from_bytes(file.read(1),'big')
def read_record(file):
rec_size = read_size(file)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment