RSS Git Download  Clone
Raw Blame History
#!/bin/sh
################################################################################
#	testCaptureLoop	Development test script
#			T.Barnabt,	BEAM Ltd,	2007-05-23
################################################################################
#

export PATH=../tmsControl:$PATH

host=tms3

echo "Set BEAM Type"
tmsControl --cycleType Beam3 ${host}

echo "Set PupeTest mode"
tmsControl  --setPupeConfig 1,1,1 ${host} 

echo "Load test signal"
tmsControl  --setTestData 1,../datasrc/beam3-437000-8.psd ${host} 

sleep 1

while true; do
	echo "Capture diagnostics data"
	# Channel,Source,Clock,startTime,postTriggerDelay,trigAnd,trigStore,trigData,trigMask
	#

	# PLL CycleStart Test
	#tmsControl --captureDiagnostics 1,0,3,0,2,0,1,0,2 -outFile diag_start_0.txt ${host}
	tmsControl --captureDiagnostics 1,0,0,0,2,0,1,0,2 -outFile diag_start_0.txt ${host}
	tmsControl --captureDiagnostics 1,1,3,0,2,0,0,0,2 -outFile diag_start_1.txt ${host}

	# PLL Injection Test
	tmsControl --captureDiagnostics 1,0,0,0,2,0,1,0,32 -outFile diag_injection_0.txt ${host}
	tmsControl --captureDiagnostics 1,1,0,0,2,0,0,0,32 -outFile diag_injection_1.txt ${host}
	tmsControl --captureDiagnostics 1,2,0,0,2,0,0,0,32 -outFile diag_injection_2.txt ${host}
	tmsControl --captureDiagnostics 1,3,0,0,2,0,0,0,32 -outFile diag_injection_3.txt ${host}

	echo "Capture Data"
	tmsControl  --getData 1,0,0,0,0,1024,0 -outFile data1.txt ${host}
done