Generation working and Compilation of MARTe components
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import time
|
||||
import sys
|
||||
import subprocess
|
||||
|
||||
def test_ready():
|
||||
"""In the WaitReady state, simulate READY signal from PLC."""
|
||||
print '---------- WatiReady test ----------'
|
||||
print '1. Simulate READY signal. State should go to WaitPermit state.'
|
||||
#res = subprocess.call('caput EC-GN-P01-GPS:PLC4110-YTS-ST2R.SVAL 1', shell=True)
|
||||
#res = subprocess.call('caput EC-GN-P01-GPS:PLC4110-YTS-ST2R 1', shell=True)
|
||||
print 'Enter to continue test'
|
||||
inpval = raw_input()
|
||||
print '2. Set CCPS trianguler waveform parameters(1V, 1Hz)'
|
||||
#res = subprocess.call('caput EC-GN-P01-GAF-CCPS:STAT-AMP 3', shell=True)
|
||||
#res = subprocess.call('caput EC-GN-P01-GAF-CCPS:STAT-FREQ 1', shell=True) #Hz
|
||||
#res = subprocess.call('caput EC-GN-P01-GBF-CCPS:STAT-AMP 4', shell=True)
|
||||
#res = subprocess.call('caput EC-GN-P01-GBF-CCPS:STAT-FREQ 1', shell=True) #Hz
|
||||
print 'Enter to continue test'
|
||||
inpval = raw_input()
|
||||
time.sleep(1)
|
||||
print '3. load csv file.'
|
||||
res = subprocess.call('caput EC-GN-P01-GAF:STAT-CSV-NAME test.csv', shell=True)
|
||||
res = subprocess.call('caput EC-GN-P01-GAF:STAT-CSV-LOAD 1', shell=True)
|
||||
res = subprocess.call('caput EC-GN-P01-GBF:STAT-CSV-NAME test2.csv', shell=True)
|
||||
res = subprocess.call('caput EC-GN-P01-GBF:STAT-CSV-LOAD 1', shell=True)
|
||||
time.sleep(1)
|
||||
print '4. Simulate CCPS_ON_REQUEST signal'
|
||||
#res = subprocess.call('caput EC-GN-P01-GPS:PLC4110-YON-CCPS1.SVAL 1', shell=True)
|
||||
#res = subprocess.call('caput EC-GN-P01-GPS:PLC4110-YON-CCPS1 1', shell=True)
|
||||
#res = subprocess.call('caput EC-GN-P01-GPS:PLC4110-YON-CCPS2.SVAL 1', shell=True)
|
||||
#res = subprocess.call('caput EC-GN-P01-GPS:PLC4110-YON-CCPS2 1', shell=True)
|
||||
print 'Enter to continue test'
|
||||
inpval = raw_input()
|
||||
print '5. Confirm CCPS_ON flag and triangular waveform generation.'
|
||||
print '6. Simulate CCPS status PVs.'
|
||||
#res = subprocess.call('caput EC-GN-P01-GAF-CCPS:STAT-OP-V-DIFF.SCAN Passive', shell=True)
|
||||
#res = subprocess.call('caput EC-GN-P01-GAF-CCPS:PSU2320-TR 0', shell=True)
|
||||
#res = subprocess.call('caput EC-GN-P01-GBF-CCPS:STAT-OP-V-DIFF.SCAN Passive', shell=True)
|
||||
#res = subprocess.call('caput EC-GN-P01-GBF-CCPS:PSU2320-TR 0', shell=True)
|
||||
print '7. Confirm PCF state changes to WaitPermit state.'
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
DAN Configuration
|
||||
Root: danApi
|
||||
CODAC-VERSION: 6.0.0
|
||||
WARNING: This is an automatically generated file. PLEASE DO NOT MODIFY.
|
||||
-->
|
||||
|
||||
<danApi >
|
||||
<version >1.0.0</version>
|
||||
|
||||
<ICprogram name="Gyrotron01DAN" >
|
||||
<source name="GYADanSource" >
|
||||
<itemDanType >danInt16</itemDanType>
|
||||
|
||||
<maxTransferRate >100000</maxTransferRate>
|
||||
|
||||
<advancedSource >
|
||||
<streamType >DATA_D0</streamType>
|
||||
|
||||
<dataModel >DM_BLOCK2D_VAR</dataModel>
|
||||
|
||||
<checkPolicy >CHECK_AND_OVERWRITE</checkPolicy>
|
||||
|
||||
<queueSize >1000</queueSize>
|
||||
|
||||
<profMonitoring >1</profMonitoring>
|
||||
|
||||
<timeFormat >UTC</timeFormat>
|
||||
</advancedSource>
|
||||
|
||||
<deviceInfo >
|
||||
<deviceName >GYADanSource</deviceName>
|
||||
|
||||
<deviceVersion >v1.3</deviceVersion>
|
||||
|
||||
<operationalMode >0</operationalMode>
|
||||
|
||||
<manufactureCode >N1134342</manufactureCode>
|
||||
</deviceInfo>
|
||||
|
||||
<channelsInfo >
|
||||
<channel number="6" variable="EC-GN-P01-GAF:MOE2810-DAN-ET" label="EC-GN-P01-GAF:MOE2810-DAN-ET" status="ENABLE" >
|
||||
<calibration sourceUnit="V" calibratedUnit="" calibrationType="raw" ></calibration>
|
||||
</channel>
|
||||
|
||||
<channel number="7" variable="EC-GN-P01-GAF:MOE2820-DAN-ET" label="EC-GN-P01-GAF:MOE2820-DAN-ET" status="ENABLE" >
|
||||
<calibration sourceUnit="V" calibratedUnit="" calibrationType="raw" ></calibration>
|
||||
</channel>
|
||||
|
||||
<channel number="8" variable="EC-GN-P01-GAF:MOE2830-DAN-ET" label="EC-GN-P01-GAF:MOE2830-DAN-ET" status="ENABLE" >
|
||||
<calibration sourceUnit="V" calibratedUnit="" calibrationType="raw" ></calibration>
|
||||
</channel>
|
||||
|
||||
<channel number="9" variable="EC-GN-P01-GAF:MRF2910-DAN-ET" label="EC-GN-P01-GAF:MRF2910-DAN-ET" status="ENABLE" >
|
||||
<calibration sourceUnit="V" calibratedUnit="" calibrationType="raw" ></calibration>
|
||||
</channel>
|
||||
|
||||
<channel number="2" variable="EC-GN-P01-PA1F:PSU3000-DAN-ET" label="EC-GN-P01-PA1F:PSU3000-DAN-ET" status="ENABLE" >
|
||||
<calibration sourceUnit="V" calibratedUnit="" calibrationType="raw" ></calibration>
|
||||
</channel>
|
||||
|
||||
<channel number="3" variable="EC-GN-P01-PA1F:PSU3000-DAN-IT" label="EC-GN-P01-PA1F:PSU3000-DAN-IT" status="ENABLE" >
|
||||
<calibration sourceUnit="A" calibratedUnit="" calibrationType="raw" ></calibration>
|
||||
</channel>
|
||||
|
||||
<channel number="0" variable="EC-GN-P01-PB1F:PSU1000-DAN-ET" label="EC-GN-P01-PB1F:PSU1000-DAN-ET" status="ENABLE" >
|
||||
<calibration sourceUnit="V" calibratedUnit="" calibrationType="raw" ></calibration>
|
||||
</channel>
|
||||
|
||||
<channel number="1" variable="EC-GN-P01-PB1F:PSU1000-DAN-IT" label="EC-GN-P01-PB1F:PSU1000-DAN-IT" status="ENABLE" >
|
||||
<calibration sourceUnit="A" calibratedUnit="" calibrationType="raw" ></calibration>
|
||||
</channel>
|
||||
|
||||
<channel number="4" variable="EC-GN-P01-PMF:PSU0000-DAN-ET" label="EC-GN-P01-PMF:PSU0000-DAN-ET" status="ENABLE" >
|
||||
<calibration sourceUnit="V" calibratedUnit="" calibrationType="raw" ></calibration>
|
||||
</channel>
|
||||
|
||||
<channel number="5" variable="EC-GN-P01-PMF:PSU0000-DAN-IT" label="EC-GN-P01-PMF:PSU0000-DAN-IT" status="ENABLE" >
|
||||
<calibration sourceUnit="A" calibratedUnit="" calibrationType="raw" ></calibration>
|
||||
</channel>
|
||||
</channelsInfo>
|
||||
</source>
|
||||
|
||||
<danStreamer name="Gyrotron01DAN_STREAMER" >
|
||||
<link >ALL</link>
|
||||
|
||||
<internal >
|
||||
<danInterface ></danInterface>
|
||||
|
||||
<servers >
|
||||
<policy >IF_FAIL_NEXT</policy>
|
||||
|
||||
<server >${DAN_ARCHIVE_MASTER}</server>
|
||||
|
||||
<server >${DAN_ARCHIVE_SLAVE}</server>
|
||||
</servers>
|
||||
</internal>
|
||||
</danStreamer>
|
||||
</ICprogram>
|
||||
</danApi>
|
||||
Reference in New Issue
Block a user