blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
214
content_id
stringlengths
40
40
detected_licenses
listlengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
6
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
21 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
141k
586M
star_events_count
int64
0
30.4k
fork_events_count
int64
0
9.67k
gha_license_id
stringclasses
8 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
50 values
src_encoding
stringclasses
23 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
5
10.4M
extension
stringclasses
29 values
filename
stringlengths
2
96
content
stringlengths
5
10.4M
e6b81666eb2117e3e50b420a2a2f7cedde39072a
449d555969bfd7befe906877abab098c6e63a0e8
/2252/CH23/EX23.16/Ex23_16.sce
588fddc7f724d07b398306e020cefbb945d1a10b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
415
sce
Ex23_16.sce
R2=1.1//rotor resistance per phase //at 60 Hz supply f=60//frequency of supply P=6//no. of poles Ns1=120*f/P//synchronous speed Nr=1000//speed of rotor s_m1=(Ns1-Nr)/Ns1//slip at maximum torque X2=R2/s_m1 L2=X2/(2*%pi*60) //at 50 Hz supply X2=2*%pi*50*L2 s_m2=R2/X2//slip at maximum torque Ns2=120*50/6//synchronous speed Nr2=(1-s_m2)*Ns2 mprintf("Rotor speed at maximum torque=%d rpm",round(Nr2))
8354694db2daea4d4cfaa693f2839be59caee779
449d555969bfd7befe906877abab098c6e63a0e8
/1967/CH1/EX1.1/1_1.sce
2a041eb9521d7a943bbd7842e6d316b258a548e4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
257
sce
1_1.sce
clc //initialisation of variables clear q= 26.45 //coloumbs e= 2.432 //volts //CALCULATIONS Q1= q*e Q2= Q1*1.0002*10^7 //RESULTS printf ('Energy expenditure in joules = %.2f int.joules',Q1) printf ('\n Energy expenditure in ergs = %.2e ergs',Q2)
59accd6e407f756a6146b4071f7c0b48c0d06a93
449d555969bfd7befe906877abab098c6e63a0e8
/1319/CH4/EX4.3/4_3.sce
57cdf0b3f927cb565151f4c4ea84c9e13f8ae6c6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
727
sce
4_3.sce
// Reading on ammeters when their shunts are interchanged clc; clear; I=10; Ra=1000; Rsa=0.02; Rb=1500; Rsb=0.01; deff('x=cur(y,z)','x=I*z/y') Ia1=cur(Ra,Rsa); // Initial Current in meter A Ia2=cur(Ra,Rsb); // Changed Current in meter A Ib1=cur(Rb,Rsb); // Initial Current in meter B Ib2=cur(Rb,Rsa); // Changed Current in meter B //Factor by which the current readings change in the two ammeters A=Ia2/Ia1; // Ammeter A B=Ib2/Ib1; // Ammeter A printf('The initial current in ammeter A and ammeter B are %g A and %g A respectively. \n \n',I,I) printf('The current in ammeter A and ammeter B when the shunt resistances are interchanged are %g A and %g A respectively. \n \n',I*A,I*B)
296d2b88ac948e9ca541018abea05c3b3e791bc7
931df7de6dffa2b03ac9771d79e06d88c24ab4ff
/Lurkins aim trainer hard.sce
d978960f4ebc550a512010835e9b09547df0d4ef
[]
no_license
MBHuman/Scenarios
be1a722825b3b960014b07cda2f12fa4f75c7fc8
1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137
refs/heads/master
2023-01-14T02:10:25.103083
2020-11-21T16:47:14
2020-11-21T16:47:14
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
48,589
sce
Lurkins aim trainer hard.sce
Name=Lurkins aim trainer hard PlayerCharacters=A BotCharacters=fortnite w keyer.bot;fortnite w keyer.bot;Bot Profile.bot IsChallenge=true Timelimit=60.0 PlayerProfile=A AddedBots=fortnite w keyer.bot;fortnite w keyer.bot;Bot Profile.bot PlayerMaxLives=0 BotMaxLives=0;0;0 PlayerTeam=0 BotTeams=0;0;0 MapName=FortniteAimTraining2.1.map MapScale=5.0 BlockProjectilePredictors=true BlockCheats=true InvinciblePlayer=false InvincibleBots=false Timescale=1.0 BlockHealthbars=true TimeRefilledByKill=0.0 ScoreToWin=1.0 ScorePerDamage=1.0 ScorePerKill=10.0 ScorePerMidairDirect=0.0 ScorePerAnyDirect=0.0 ScorePerTime=0.0 ScoreLossPerDamageTaken=0.0 ScoreLossPerDeath=0.0 ScoreLossPerMidairDirected=0.0 ScoreLossPerAnyDirected=0.0 ScoreMultAccuracy=true ScoreMultDamageEfficiency=false ScoreMultKillEfficiency=false GameTag=Tracking, WeaponHeroTag=LG, Lightning Gun, Pistol, Rail DifficultyTag=5 AuthorsTag=Lurking BlockHitMarkers=false BlockHitSounds=false BlockMissSounds=true BlockFCT=false Description=kill bouncing/arcing balls. Skeet-shooting basically. Choose your poison of tracking or single point. GameVersion=1.0.7.2 ScorePerDistance=0.0 [Aim Profile] Name=Default MinReactionTime=0.3 MaxReactionTime=0.4 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=15.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=40.0 ShootFOV=15.0 VerticalAimOffset=0.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 [Bot Profile] Name=fortnite w keyer DodgeProfileNames=MidStrafes;Long Strafes Jumping;Short Strafes Close;Mimic;Very Short Strafes + Jump DodgeProfileWeights=0.5;1.0;0.5;1.0;1.0 DodgeProfileMaxChangeTime=5.0 DodgeProfileMinChangeTime=1.0 WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0 AimingProfileNames=Default;Default;Default;Default;Default;Default;Default;Default WeaponSwitchTime=3.0 UseWeapons=true CharacterProfile=Quaker SeeThroughWalls=true NoDodging=false NoAiming=true [Bot Profile] Name=Bot Profile DodgeProfileNames=Circle Strafe;Long Strafes Jumping;Mimic DodgeProfileWeights=0.1;0.1;1.0 DodgeProfileMaxChangeTime=1.0 DodgeProfileMinChangeTime=0.5 WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0 AimingProfileNames=Default;Default;Default;Default;Default;Default;Default;Default WeaponSwitchTime=3.0 UseWeapons=true CharacterProfile=Quaker SeeThroughWalls=true NoDodging=false NoAiming=true [Character Profile] Name=A MaxHealth=100.0 WeaponProfileNames=SCAR;pump;Blue smg;;;;; MinRespawnDelay=1.0 MaxRespawnDelay=5.0 StepUpHeight=75.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=1.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=8.0 MovementType=Base MaxSpeed=1500.0 MaxCrouchSpeed=500.0 Acceleration=10000.0 AirAcceleration=16000.0 Friction=8.0 BrakingFrictionFactor=2.0 JumpVelocity=500.0 Gravity=3.0 AirControl=0.25 CanCrouch=true CanPogoJump=false CanCrouchInAir=false CanJumpFromCrouch=false EnemyBodyColor=X=255.000 Y=0.000 Z=0.000 EnemyHeadColor=X=255.000 Y=255.000 Z=255.000 TeamBodyColor=X=0.000 Y=0.000 Z=255.000 TeamHeadColor=X=255.000 Y=255.000 Z=255.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Cuboid MainBBHeight=230.0 MainBBRadius=55.0 MainBBHasHead=true MainBBHeadRadius=45.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Cylindrical ProjBBHeight=230.0 ProjBBRadius=55.0 ProjBBHasHead=true ProjBBHeadRadius=45.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=true JetpackActivationDelay=0.2 JetpackFullFuelTime=4.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=false JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=false AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.5 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 [Character Profile] Name=Quaker MaxHealth=300.0 WeaponProfileNames=;;LG;;;;; MinRespawnDelay=1.0 MaxRespawnDelay=5.0 StepUpHeight=75.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=2.0 CameraOffset=X=0.000 Y=0.000 Z=80.000 HeadshotOnly=false DamageKnockbackFactor=4.0 MovementType=Base MaxSpeed=1300.0 MaxCrouchSpeed=500.0 Acceleration=9000.0 AirAcceleration=16000.0 Friction=4.0 BrakingFrictionFactor=2.0 JumpVelocity=800.0 Gravity=3.0 AirControl=0.25 CanCrouch=true CanPogoJump=false CanCrouchInAir=true CanJumpFromCrouch=false EnemyBodyColor=X=0.771 Y=0.000 Z=0.000 EnemyHeadColor=X=1.000 Y=1.000 Z=1.000 TeamBodyColor=X=1.000 Y=0.888 Z=0.000 TeamHeadColor=X=1.000 Y=1.000 Z=1.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=0.0 MainBBType=Cylindrical MainBBHeight=320.0 MainBBRadius=58.0 MainBBHasHead=false MainBBHeadRadius=45.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Cylindrical ProjBBHeight=230.0 ProjBBRadius=55.0 ProjBBHasHead=false ProjBBHeadRadius=45.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=4.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=false JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=false AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.5 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 [Dodge Profile] Name=MidStrafes MaxTargetDistance=2500.0 MinTargetDistance=750.0 ToggleLeftRight=true ToggleForwardBack=false MinLRTimeChange=0.32 MaxLRTimeChange=0.35 MinFBTimeChange=0.25 MaxFBTimeChange=0.6 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.2 DamageReactionMinimumDelay=0.13 DamageReactionMaximumDelay=0.16 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.2 JumpFrequency=0.0 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Oppose TargetStrafeMinDelay=0.13 TargetStrafeMaxDelay=0.18 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.1 MaxCrouchTime=0.1 MinJumpTime=0.0 MaxJumpTime=0.0 LeftStrafeTimeMult=0.9 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=Long Strafes Jumping MaxTargetDistance=4000.0 MinTargetDistance=200.0 ToggleLeftRight=true ToggleForwardBack=true MinLRTimeChange=0.1 MaxLRTimeChange=3.0 MinFBTimeChange=0.1 MaxFBTimeChange=1.5 DamageReactionChangesDirection=false DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.5 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.25 MaxJumpTime=0.5 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=Short Strafes Close MaxTargetDistance=750.0 MinTargetDistance=200.0 ToggleLeftRight=true ToggleForwardBack=false MinLRTimeChange=0.2 MaxLRTimeChange=0.5 MinFBTimeChange=0.2 MaxFBTimeChange=0.5 DamageReactionChangesDirection=false DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.0 JumpFrequency=0.5 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.1 MaxJumpTime=0.3 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=Mimic MaxTargetDistance=2500.0 MinTargetDistance=750.0 ToggleLeftRight=true ToggleForwardBack=false MinLRTimeChange=0.2 MaxLRTimeChange=0.5 MinFBTimeChange=0.2 MaxFBTimeChange=0.5 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.0 JumpFrequency=0.5 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Mimic TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=Very Short Strafes + Jump MaxTargetDistance=2500.0 MinTargetDistance=750.0 ToggleLeftRight=true ToggleForwardBack=true MinLRTimeChange=0.1 MaxLRTimeChange=0.3 MinFBTimeChange=0.1 MaxFBTimeChange=0.3 DamageReactionChangesDirection=false DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.6 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Dodge Profile] Name=Circle Strafe MaxTargetDistance=2500.0 MinTargetDistance=750.0 ToggleLeftRight=true ToggleForwardBack=false MinLRTimeChange=0.5 MaxLRTimeChange=1.5 MinFBTimeChange=0.2 MaxFBTimeChange=0.5 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=50.0 DamageReactionResetTimer=0.5 JumpFrequency=0.2 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Oppose TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Weapon Profile] Name=SCAR Type=Hitscan ShotsPerClick=1 DamagePerShot=10.0 KnockbackFactor=4.0 TimeBetweenShots=0.096 Pierces=false Category=FullyAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=87000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=87000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=0.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=0.5 ReloadTimeFromPartial=0.5 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 HitscanVisualEffect=None ProjectileGraphic=Arrow VisualLifetime=0.1 WallParticleEffect=None HitParticleEffect=Flare BounceOffWorld=false BounceFactor=0.5 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=0.01 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=4.0 RecoilNegatable=false DecalType=0 DecalSize=20.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=300.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=None RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=false AimPunchAmount=0.0 AimPunchResetTime=0.2 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=false MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=72.099998 ADSFOVScale=Quake/Source ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 Explosive=false Radius=100.0 DamageAtCenter=0.0 DamageAtEdge=0.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=0.0,0.1,-1.0,0.0 SpreadSCA=0.0,0.1,-1.0,0.0 SpreadMSA=0.0,0.1,-1.0,0.0 SpreadMCA=0.0,0.1,-1.0,0.0 SpreadSSH=0.0,0.1,-1.0,0.0 SpreadSCH=0.0,0.1,-1.0,0.0 SpreadMSH=0.0,0.1,-1.0,0.0 SpreadMCH=0.0,0.1,-1.0,0.0 MaxRecoilUp=0.8 MinRecoilUp=0.8 MinRecoilHoriz=-0.6 MaxRecoilHoriz=0.6 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.05 AAMaxSpeed=1.0 AADeadZone=0.0 AAFOV=30.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=pump Type=Hitscan ShotsPerClick=4 DamagePerShot=150.0 KnockbackFactor=4.0 TimeBetweenShots=0.86 Pierces=false Category=SemiAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=5 AmmoPerShot=1 ReloadTimeFromEmpty=0.5 ReloadTimeFromPartial=0.5 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 HitscanVisualEffect=Tracer ProjectileGraphic=Ball VisualLifetime=0.1 WallParticleEffect=None HitParticleEffect=None BounceOffWorld=false BounceFactor=0.5 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=4.0 RecoilNegatable=false DecalType=0 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=300.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=None RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=false AimPunchAmount=0.0 AimPunchResetTime=0.2 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=false MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=1 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=103.0 ADSFOVScale=Clamped Horizontal ADSAllowUserOverrideFOV=false IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.1 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=100.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,5.0 SpreadSCA=1.0,1.0,-1.0,5.0 SpreadMSA=1.0,1.0,-1.0,5.0 SpreadMCA=1.0,1.0,-1.0,5.0 SpreadSSH=1.0,1.0,-1.0,5.0 SpreadSCH=1.0,1.0,-1.0,5.0 SpreadMSH=1.0,1.0,-1.0,5.0 SpreadMCH=1.0,1.0,-1.0,5.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.05 AAMaxSpeed=1.0 AADeadZone=0.0 AAFOV=30.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 PBS1=0.0,0.0 PBS2=0.0,0.0 PBS3=0.0,0.0 [Weapon Profile] Name=Blue smg Type=Hitscan ShotsPerClick=1 DamagePerShot=24.0 KnockbackFactor=4.0 TimeBetweenShots=0.1 Pierces=false Category=FullyAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=false HeadshotMultiplier=2.0 MagazineMax=30 AmmoPerShot=1 ReloadTimeFromEmpty=1.0 ReloadTimeFromPartial=1.0 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=7.0 DelayBeforeShot=0.0 HitscanVisualEffect=Tracer ProjectileGraphic=Ball VisualLifetime=0.1 WallParticleEffect=None HitParticleEffect=None BounceOffWorld=false BounceFactor=0.5 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=true ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=4.0 RecoilNegatable=false DecalType=0 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=300.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=None RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=false AimPunchAmount=0.0 AimPunchResetTime=0.2 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=false MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=1 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=80.0 ADSFOVScale=Quake/Source ADSAllowUserOverrideFOV=false IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.1 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=100.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,5.0 SpreadSCA=1.0,1.0,-1.0,5.0 SpreadMSA=1.0,1.0,-1.0,5.0 SpreadMCA=1.0,1.0,-1.0,5.0 SpreadSSH=0.3,0.2,-1.0,3.0 SpreadSCH=1.0,1.0,-1.0,5.0 SpreadMSH=0.3,0.2,-1.0,4.0 SpreadMCH=1.0,1.0,-1.0,5.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.05 AAMaxSpeed=1.0 AADeadZone=0.0 AAFOV=30.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=LG Type=Hitscan ShotsPerClick=1 DamagePerShot=5.0 KnockbackFactor=2.0 TimeBetweenShots=0.01 Pierces=true Category=FullyAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=false HeadshotMultiplier=2.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=0.5 ReloadTimeFromPartial=0.5 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=7.0 DelayBeforeShot=0.0 HitscanVisualEffect=Tracer ProjectileGraphic=Ball VisualLifetime=0.05 WallParticleEffect=None HitParticleEffect=None BounceOffWorld=false BounceFactor=0.0 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-80.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=4.0 RecoilNegatable=false DecalType=0 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=true AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=1.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=None RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=72.099998 ADSFOVScale=Horizontal (4:3) ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=0.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,0.0 SpreadSCA=1.0,1.0,-1.0,0.0 SpreadMSA=1.0,1.0,-1.0,0.0 SpreadMCA=1.0,1.0,-1.0,0.0 SpreadSSH=1.0,1.0,-1.0,0.0 SpreadSCH=1.0,1.0,-1.0,0.0 SpreadMSH=1.0,1.0,-1.0,0.0 SpreadMCH=1.0,1.0,-1.0,0.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.05 AAMaxSpeed=1.0 AADeadZone=0.0 AAFOV=30.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.095 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Map Data] reflex map version 8 global entity type WorldSpawn String32 targetGameOverCamera end Float sky.timeOfDay 15.000000 ColourXRGB32 sky.skyTopColor ff3c99e1 ColourXRGB32 sky.skyHorizonColor ff1e3d5c ColourXRGB32 sky.skyBottomColor ff0a0926 Float sky.skyBottomColorIntensity 1.000000 ColourXRGB32 sky.sunColor fffaad19 Float sky.sunIntensitySize 512.000000 Float sky.sunSharpness 1000.000000 ColourXRGB32 sky.horizonColor ffffd819 Float sky.horizonIntensity 1.000000 Float sky.horizonHaloExponent 8.000000 Float sky.horizonHaloExponentSun 10.000000 Float sky.horizonHaloExponentSunIntensity 0.500000 Float sky.horizonLine -0.050000 Float sky.starsIntensity 1.500000 UInt8 playersMin 1 UInt8 playersMax 16 brush vertices 416.000000 96.000000 784.000000 544.000000 96.000000 784.000000 544.000000 96.000000 -592.000000 416.000000 96.000000 -592.000000 416.000000 80.000000 784.000000 544.000000 80.000000 784.000000 544.000000 80.000000 -592.000000 416.000000 80.000000 -592.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -192.000000 96.000000 224.000000 -96.000000 96.000000 224.000000 -96.000000 96.000000 128.000000 -320.000000 0.000000 0.000000 -192.000000 96.000000 128.000000 32.000000 0.000000 352.000000 32.000000 0.000000 0.000000 -320.000000 0.000000 352.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000 brush vertices 416.000000 80.000000 -416.000000 544.000000 80.000000 -416.000000 544.000000 80.000000 -592.000000 416.000000 80.000000 -592.000000 416.000000 0.000000 -416.000000 544.000000 0.000000 -416.000000 544.000000 0.000000 -592.000000 416.000000 0.000000 -592.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 544.000000 800.000000 -800.000000 544.000122 800.000000 784.000000 560.000122 800.000000 784.000000 560.000000 800.000000 -800.000000 544.000000 96.000000 -800.000000 544.000122 96.000000 784.000000 560.000122 96.000000 784.000000 560.000000 96.000000 -800.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices 544.000000 96.000000 784.000000 560.000000 96.000000 784.000000 560.000000 96.000000 -800.000000 544.000000 96.000000 -800.000000 544.000000 0.000000 784.000000 560.000000 0.000000 784.000000 560.000000 0.000000 -800.000000 544.000000 0.000000 -800.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -672.000000 800.000000 -800.000000 544.000000 800.000000 -800.000000 544.000000 800.000000 -816.000000 -672.000000 800.000000 -816.000000 -672.000000 96.000000 -800.000000 544.000000 96.000000 -800.000000 544.000000 96.000000 -816.000000 -672.000000 96.000000 -816.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -688.000000 0.000000 -416.000000 416.000000 0.000000 -416.000000 416.000000 96.000000 -592.000000 -688.000000 0.000000 -592.000000 -688.000000 96.000000 -592.000000 416.000000 0.000000 -592.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 brush vertices -688.000000 96.000000 -800.000000 560.000000 96.000000 -800.000000 560.000000 96.000000 -816.000000 -688.000000 96.000000 -816.000000 -688.000000 0.000000 -800.000000 560.000000 0.000000 -800.000000 560.000000 0.000000 -816.000000 -688.000000 0.000000 -816.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -688.000000 96.000000 -592.000000 544.000000 96.000000 -592.000000 544.000000 96.000000 -800.000000 -688.000000 96.000000 -800.000000 -688.000000 0.000000 -592.000000 544.000000 0.000000 -592.000000 544.000000 0.000000 -800.000000 -688.000000 0.000000 -800.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -688.000000 96.000000 -416.000000 -672.000000 96.000000 -416.000000 -672.000000 96.000000 -592.000000 -688.000000 0.000000 -416.000000 -672.000000 0.000000 -416.000000 -688.000000 96.000000 -592.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 4 3 5 0x00000000 brush vertices -672.000000 800.000000 -432.000000 -816.000000 800.000000 -432.000000 -816.000000 800.000000 -416.000000 -672.000000 800.000000 -416.000000 -672.000000 288.000000 -432.000000 -816.000000 288.000000 -432.000000 -816.000000 288.000000 -416.000000 -672.000000 288.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -672.000000 800.000000 688.000000 -672.000061 800.000000 -800.000000 -688.000061 800.000000 -800.000000 -688.000000 800.000000 688.000000 -672.000000 -16.000000 688.000000 -672.000061 -16.000000 -800.000000 -688.000061 -16.000000 -800.000000 -688.000000 -16.000000 688.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -688.000000 288.000000 784.000000 -672.000000 288.000000 784.000000 -672.000000 288.000000 -400.000000 -688.000000 288.000000 -400.000000 -688.000000 0.000000 784.000000 -672.000000 0.000000 784.000000 -672.000000 0.000000 -400.000000 -688.000000 0.000000 -400.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -672.000000 288.000000 784.000000 -224.000000 0.000000 784.000000 -672.000000 0.000000 688.000000 -672.000000 0.000000 784.000000 -224.000000 0.000000 688.000000 -672.000000 288.000000 688.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 4 5 0x00000000 brush vertices -816.000000 368.000000 -400.000000 -815.999939 368.000000 784.000000 -815.999939 384.000000 784.000000 -687.999939 288.000000 784.000000 -816.000000 384.000000 -400.000000 -671.999878 288.000000 -400.000000 -687.999939 288.000000 -400.000000 -672.000000 288.000000 784.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 6 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 4 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 3 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 4 2 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000 brush vertices 560.000000 96.000000 799.999939 560.000000 96.000000 783.999939 -368.000000 96.000000 784.000061 -368.000000 96.000000 800.000061 560.000000 0.000000 799.999939 560.000000 0.000000 783.999939 -368.000000 0.000000 784.000061 -368.000000 0.000000 800.000061 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -688.000000 0.000000 800.000000 560.000000 0.000000 800.000000 560.000000 0.000000 -816.000000 -688.000000 0.000000 -816.000000 -688.000000 -16.000000 800.000000 560.000000 -16.000000 800.000000 560.000000 -16.000000 -816.000000 -688.000000 -16.000000 -816.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -832.000000 384.000000 800.000000 -816.000000 384.000000 800.000000 -816.000000 384.000000 -416.000000 -832.000000 384.000000 -416.000000 -832.000000 -16.000000 800.000000 -816.000000 -16.000000 800.000000 -816.000000 -16.000000 -416.000000 -832.000000 -16.000000 -416.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -816.000000 384.000000 -400.000000 -672.000000 288.000000 -400.000000 -672.000000 288.000000 -416.000000 -816.000000 -16.000000 -416.000000 -816.000000 384.000000 -416.000000 -672.000000 -16.000000 -400.000000 -672.000000 -16.000000 -416.000000 -816.000000 -16.000000 -400.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000 brush vertices -816.000000 800.000000 800.000000 -816.000061 800.000000 -416.000000 -832.000061 800.000000 -416.000000 -832.000000 800.000000 800.000000 -816.000000 384.000000 800.000000 -816.000000 384.000000 -416.000000 -832.000000 384.000000 -416.000000 -832.000000 384.000000 800.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -816.000000 96.000000 800.000000 -368.000000 96.000000 800.000000 -368.000000 96.000000 784.000000 -816.000000 96.000000 784.000000 -816.000000 -16.000000 800.000000 -368.000000 -16.000000 800.000000 -368.000000 -16.000000 784.000000 -816.000000 -16.000000 784.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -816.000000 288.000000 800.000000 -672.000000 288.000000 800.000000 -672.000000 288.000000 784.000000 -816.000000 288.000000 784.000000 -816.000000 96.000000 800.000000 -672.000000 96.000000 800.000000 -672.000000 96.000000 784.000000 -816.000000 96.000000 784.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -816.000000 288.000000 784.000000 -816.000000 288.000000 800.000000 -815.999939 384.000000 800.000000 -816.000000 384.000000 784.000000 -671.999878 288.000000 784.000000 -672.000000 288.000000 800.000000 -736.000000 272.000000 784.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 1 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 1 2 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 3 2 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 6 0x00000000 brush vertices 528.000000 800.000000 800.000000 -848.000000 800.000000 800.000061 -848.000000 800.000000 816.000061 528.000000 800.000000 816.000000 528.000000 96.000000 800.000000 -848.000000 96.000000 800.000061 -848.000000 96.000000 816.000061 528.000000 96.000000 816.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -672.000000 288.000000 800.000000 -224.000000 0.000000 800.000000 -672.000000 0.000000 784.000000 -672.000000 0.000000 800.000000 -224.000000 0.000000 784.000000 -672.000000 288.000000 784.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 4 5 0x00000000 entity type CameraPath UInt8 posLerp 2 UInt8 angleLerp 2 entity type Effect Vector3 position -192.000000 448.000000 0.000000 String64 effectName internal/misc/reflectionprobe entity type PlayerSpawn Vector3 position -143.999985 112.000000 176.000000 Vector3 angles 270.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position -751.999939 368.000000 224.000000 Vector3 angles -630.000000 0.000000 0.000000 Bool8 teamB 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position -64.000000 128.000000 -656.000000 Bool8 teamB 0 Bool8 initialSpawn 0 entity type PlayerSpawn Vector3 position 480.000000 128.000000 704.000000 Vector3 angles 540.000000 0.000000 0.000000 Bool8 teamB 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position -128.000000 16.000000 528.000000 Vector3 angles 540.000000 0.000000 0.000000 Bool8 teamB 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0
ab3f3329a5aef86063bd49a485a9051e850056d1
dfef7a758832217dc909a06be65c696a413f48b8
/CC-Switch-Behavioral_Youcai_eyetracker.sce
46602d99676fcbb12aba2f887e62e22fb8de179f
[]
no_license
michaeladlermke/ABA_EXPERIMENT
84fe73bb8c2f8ef4e5e43b955bc1eea4a46c78c1
79943a3f7135bfc9efcd5b20499c85ae77e2e376
refs/heads/master
2021-01-01T03:41:17.271524
2016-05-01T15:17:04
2016-05-01T15:26:10
56,557,994
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,732
sce
CC-Switch-Behavioral_Youcai_eyetracker.sce
scenario = "CC-Switch-Behavioral_Youcai_eyetracker"; $Version = "Youcai_1.0"; $eye_tracker = "true"; $gray_calibration_screen = "125, 125, 125"; # the default_background_color for calibration screen $TR = 3000; # scenario_type = fMRI_emulation; scan_period = $TR; $pulse_button = 1; active_buttons = 3; button_codes = 1, 2, 3; default_background_color = 150, 150, 160; begin; TEMPLATE "CC-Core.sce"; begin_pcl; sub string logfile_filename(string subj, string run) begin return "CC-Switch-Behavioral-v" + get_sdl_variable("Version") + "-" + subj + "-" + run + ".log"; end; include "CC-Core.pcl"; totalruns = 1; numblocksperrun = 27; blockoff = pulse_manager.main_pulse_count(); string start_text = "Subject: " + Subject + "\nCurrent Run: " + string(CurrentRun); debug_print("Presenting runs..."); debug_print("Total runs: " + string(totalruns)); #calibration_screen.present(); // calibration screen only needed when eye tracking is being done loop int run=1; until run>totalruns begin debug_print("Initializing..."); logfile.set_filename(logfile_filename(Subject,string(run))); coord_file.open(logfile_filename(Subject,string(run))+"_stimcoord"); load_subject_data(Subject + "_Run1"); debug_print("Starting run " + string(run)); int trial_num = 1; int list_num = 1; load_list(list_num); #Loads all trials for the run debug_print("num_blocks_per_run = " + string(numblocksperrun)); loop int i=StartingBlock; until i>numblocksperrun begin debug_print("Starting block #" + string(i)); blockoff=blockoff+1; #in blocks less than 1, do a practice round #in block ten, run the flashing block (see CC-Core.pcl) if(i < 1) then run_block(run,i,trial_num); trial_num = trial_num + 24; end; if(i == flashBlock) then run_block_10(run,i,trial_num); trial_num = trial_num + 24; else run_block(run,i,trial_num); trial_num = trial_num + 24; end; stopblocktext.set_caption("End of Block "+string(i)+". Please wait for the next block to begin..."); stopblocktext.redraw(); stopblock.set_duration(1000*10); stopblock.present(); #calibration_screen.present(); #this calibration screen is only needed when eye tracking i = i + 1; end; recog_instruct_1.present(); response_data last_resp; last_resp = response_manager.last_response_data(); if (last_resp.button() == 1) then recog_instruct_2.present(); recog_instruct_3.present(); run_block_recog(1,28,649); elseif (last_resp.button() == 2) then recog_instruct_3.present(); run_block_recog(1,28,649); end; run = run + 1; coord_file.close(); goodbye.present(); end;
5c42a01eb942e21cc178f8b96951dd70b8cb0d5a
089894a36ef33cb3d0f697541716c9b6cd8dcc43
/NLP_Project/test/blog/bow/bow.10_6.tst
dca437bf4f65b3e18474636aa893e75f1f776cf1
[]
no_license
mandar15/NLP_Project
3142cda82d49ba0ea30b580c46bdd0e0348fe3ec
1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2
refs/heads/master
2020-05-20T13:36:05.842840
2013-07-31T06:53:59
2013-07-31T06:53:59
6,534,406
0
1
null
null
null
null
UTF-8
Scilab
false
false
3,835
tst
bow.10_6.tst
10 1098:0.16666666666666666 1099:1.0 10 17:0.1111111111111111 18:1.0 21:0.07142857142857142 32:1.0 868:0.5 10 13:0.3333333333333333 32:1.0 40:0.25 48:1.0 59:1.0 63:1.0 98:2.0 104:1.0 116:0.09090909090909091 221:0.5 280:1.0 368:0.5 381:1.0 414:1.0 423:1.0 647:1.0 1045:0.5 1106:1.0 1108:1.0 1376:1.0 1436:1.0 1445:1.0 10 6:0.3333333333333333 7:1.0 21:0.07142857142857142 10 17:0.1111111111111111 21:0.07142857142857142 40:0.25 1164:1.0 10 116:0.09090909090909091 1109:1.0 10 13:0.3333333333333333 21:0.07142857142857142 95:1.0 210:0.2 256:1.0 351:1.0 505:0.5 1015:1.0 1322:1.0 1501:1.0 10 4:1.0 21:0.07142857142857142 651:1.0 10 6:0.6666666666666666 17:0.1111111111111111 21:0.07142857142857142 50:0.3333333333333333 179:0.25 180:1.0 398:1.0 554:1.0 1247:1.0 1447:1.0 10 50:0.3333333333333333 1443:1.0 10 1504:1.0 10 1098:0.16666666666666666 1099:1.0 10 6:0.3333333333333333 37:0.5 116:0.09090909090909091 194:0.5 467:1.0 1346:1.0 10 6:0.6666666666666666 7:1.0 8:1.0 15:1.0 17:0.1111111111111111 21:0.07142857142857142 65:0.2 69:0.16666666666666666 110:0.3333333333333333 116:0.09090909090909091 127:0.5 194:1.0 253:1.0 505:0.5 507:1.0 10 6:0.3333333333333333 17:0.1111111111111111 21:0.07142857142857142 32:1.0 56:0.25 78:0.3333333333333333 89:1.0 98:1.0 253:1.0 503:1.0 1431:1.0 10 4:1.0 6:1.0 8:1.0 13:0.3333333333333333 25:0.2 26:1.0 44:0.02702702702702703 69:0.16666666666666666 83:0.125 88:1.0 94:0.5 95:1.0 98:1.0 125:1.0 369:1.0 610:1.0 668:1.0 764:1.0 885:1.0 10 1220:0.3333333333333333 1504:1.0 10 1098:0.16666666666666666 1099:1.0 10 6:0.3333333333333333 44:0.02702702702702703 123:1.0 286:1.0 1193:0.16666666666666666 10 6:0.3333333333333333 17:0.1111111111111111 25:0.2 44:0.02702702702702703 69:0.16666666666666666 454:1.0 904:1.0 936:1.0 10 25:0.2 44:0.02702702702702703 87:0.3333333333333333 1486:1.0 10 104:1.0 253:1.0 346:1.0 372:1.0 868:0.5 1106:1.0 1107:1.0 1220:0.3333333333333333 1221:1.0 10 13:0.3333333333333333 21:0.07142857142857142 23:0.3333333333333333 25:0.2 44:0.02702702702702703 94:0.5 101:1.0 224:1.0 241:0.25 351:1.0 1546:1.0 10 17:0.1111111111111111 70:0.16666666666666666 92:1.0 116:0.09090909090909091 424:1.0 10 6:0.3333333333333333 9:0.3333333333333333 17:0.1111111111111111 25:0.4 32:1.0 38:0.3333333333333333 44:0.08108108108108109 98:3.0 194:0.5 207:1.0 210:0.2 225:0.5 283:0.5 288:1.0 351:1.0 381:1.0 423:1.0 424:1.0 454:1.0 814:0.5 886:1.0 995:0.5 1003:1.0 1517:1.0 10 6:0.3333333333333333 9:1.0 17:0.2222222222222222 25:0.2 44:0.05405405405405406 78:0.3333333333333333 98:1.0 103:1.0 194:1.0 195:0.5 253:1.0 305:1.0 360:1.0 398:1.0 411:0.5 473:1.0 487:1.0 649:1.0 651:1.0 867:1.0 868:1.0 10 6:0.3333333333333333 13:0.3333333333333333 17:0.1111111111111111 44:0.05405405405405406 70:0.16666666666666666 116:0.09090909090909091 121:1.0 207:1.0 212:1.0 360:1.0 398:1.0 467:1.0 1208:1.0 10 25:0.2 44:0.05405405405405406 48:2.0 130:0.25 212:1.0 232:1.0 310:1.0 423:1.0 10 25:0.2 10 25:0.2 48:1.0 83:0.125 1505:1.0 10 32:1.0 194:0.5 222:1.0 10 44:0.02702702702702703 360:1.0 454:1.0 467:1.0 1116:1.0 10 17:0.1111111111111111 63:1.0 65:0.2 217:1.0 398:1.0 569:1.0 868:0.5 1158:1.0 10 1504:1.0 10 110:0.3333333333333333 1098:0.16666666666666666 1116:1.0 10 6:0.6666666666666666 8:1.0 13:0.3333333333333333 17:0.3333333333333333 21:0.21428571428571427 23:0.6666666666666666 32:1.0 48:1.0 66:1.0 83:0.125 111:1.0 116:0.09090909090909091 130:0.25 207:1.0 222:1.0 282:1.0 292:1.0 420:1.0 423:1.0 444:1.0 467:1.0 481:1.0 498:1.0 649:1.0 1111:2.0 1371:1.0 1399:1.0 10 6:0.3333333333333333 13:0.3333333333333333 17:0.1111111111111111 21:0.07142857142857142 44:0.02702702702702703 70:0.16666666666666666 83:0.125 402:1.0 928:1.0 1111:2.0 1194:1.0 10 21:0.07142857142857142 44:0.02702702702702703 121:1.0 717:0.5 10 21:0.07142857142857142 44:0.02702702702702703 48:1.0 98:1.0 193:0.14285714285714285 360:1.0
9b937d145cbdb83353628bc64867fb640c7eb1ff
449d555969bfd7befe906877abab098c6e63a0e8
/620/CH21/EX21.3/example21_3.sce
ab1cbcf69c44a3009ec48e48850b73408b1aeee8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
230
sce
example21_3.sce
v=20; disp("Part a"); d=0.5*10^(-3); e=v/d; disp("the electric field intensity (in kV/m) is"); disp(e*10^(-3)); disp("Part b"); d1=0.25*10^(-3); e1=v/d1; disp("the electric field intensity (in kV/m) is"); disp(e1*10^(-3));
0777b35ce5e96eb808255e7abd500677069c852a
1db0a7f58e484c067efa384b541cecee64d190ab
/macros/specgram.sci
3af24f10d8c865aec2290ab08124da50ffa4d1df
[]
no_license
sonusharma55/Signal-Toolbox
3eff678d177633ee8aadca7fb9782b8bd7c2f1ce
89bfeffefc89137fe3c266d3a3e746a749bbc1e9
refs/heads/master
2020-03-22T21:37:22.593805
2018-07-12T12:35:54
2018-07-12T12:35:54
140,701,211
2
0
null
null
null
null
UTF-8
Scilab
false
false
506
sci
specgram.sci
function [S_r, f_r, t_r] = specgram(x,n,fs,window,overlap) funcprot(0); rhs = argn(2) if(rhs<1 | rhs>5) error("Wrong number of input arguments.") end select(rhs) case 1 then [S_r, f_r, t_r] = callOctave("specgram",x) case 2 then [S_r, f_r, t_r] = callOctave("specgram",x,n) case 3 then [S_r, f_r, t_r] = callOctave("specgram",x,n,fs) case 4 then [S_r, f_r, t_r] = callOctave("specgram",x,n,fs,window) case 5 then [S_r, f_r, t_r] = callOctave("specgram",x,n,fs,window,overlap) end endfunction
e7e527a3f5fb17d6c01c5823aae228efe6d30620
449d555969bfd7befe906877abab098c6e63a0e8
/213/CH12/EX12.2/12_2.sce
051303b2cc7489279b43bb9b9e6f17a34d7c61d0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
658
sce
12_2.sce
//To find addendum clc //Given: T=40, t=T phi=20 //degrees m=6 //mm //Solution: //Calculating the circular pitch pc=%pi*m //mm //Calculating the length of arc of contact Lac=1.75*pc //Length of arc of contact, mm //Calculating the length of path of contact Lpc=Lac*cosd(phi) //Length of path of contact, mm //Calculating the pitch circle radii of each wheel R=m*T/2 //mm r=R //mm //Calculating the radius of the addendum circle of each wheel RA=sqrt(R^2*(cosd(phi))^2+(Lpc/2+R*sind(phi))^2) //mm //Calculating the addendum of the wheel Ad=RA-R //Addendum of the wheel, mm //Results: printf("\n\n Addendum of the wheel = %.2f mm.\n\n",Ad)
4f8bba029a95a30e04ac64255df07e3550177a3a
449d555969bfd7befe906877abab098c6e63a0e8
/1943/CH11/EX11.6/Ex11_6.sce
f91afb86d6ac34f51dea41c5544b95aae3c89959
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
764
sce
Ex11_6.sce
clc clear //Input data N=16000//Speed in rpm T1=17+273//Temperature in K rp=4//Pressure ratio in=82//Isentropic efficiency in percent s=0.85//Slip factor a=20//Angle in degrees d=200//Diameter in mm V=120//Velocity in m/s cp=1.005//Specific heat in kJ/kg.K g=1.4//Ratio of specific heats //Calculations T2sT1=(rp)^((g-1)/g)//Temperature ratio T2s=T1*T2sT1//Temeprature in K dTs=(T2s-T1)//Temperature difference in K dT=dTs/(in/100)//Temperature difference in K Wc=(cp*dT)//Power input in kJ/kg Vb1=(3.14*(d/1000)*N)/60//Velocity in m/s Vw1=(V*sind(a))//Pre-whirl velocity in m/s Vb2=sqrt(((Wc*1000)+(Vb1*Vw1))/s)//Velocity in m/s d2=((Vb2*60)/(3.14*N))*1000//Tip diameter in mm //Output printf('Impeller tip diameter is %3.0f mm',d2)
b9e6b08a2831b628fbc9a9a62acab1ca8052e173
449d555969bfd7befe906877abab098c6e63a0e8
/2885/CH5/EX5.7/ex5_7.sce
f4716bda14ec141eb5ab16b6785c54136788d57e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
564
sce
ex5_7.sce
//Find the value of Id clear; clc; //soltion //given Vt=1.5;//V //threshold voltage Id=2*10^-3;//A Vgs=3;//V //gate supply Vds=5;//V //saturation voltage Vdsm=Vgs-Vt; //minimum voltage required to pinch off // Vds > Vdsm therefore the device is in saturation region // Calculating K K=Id/((Vgs-Vt)^2); // A/V^2 //conductivity parameter //Calculating Id for Vgs= 5 V and Vds= 6 V Vgs=5;//V //gate supply Vds=6;//V //saturation voltage Id=K*((Vgs-Vt)^2); printf("The drain current is %.2f mA",Id*1000);
5d6bc02f6ffb41c16252adb802cb60c9f2d8fb1e
449d555969bfd7befe906877abab098c6e63a0e8
/2234/CH2/EX2.8/ex2_8.sce
20af6caf1695b5bbb05eb2ab312e403a6a7a987e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
397
sce
ex2_8.sce
clc; disp("Example 2.8"); Y=1.41; //Young's Modulus. R=1.293*10^-3; //Density of air in g/centimetre cube. P=76*13.6*980; //atmospheric pressure in dyne/cm square. V=sqrt((Y*P)/R); //calculating speed using young's modulus. disp(V,"Speed of ultrasonic wave in air at n.t.p. in cm/sec = "); //displaying result. disp(V*10^-2,"Speed in m/sec"); //displaying result.
59c3731200c09e0bfc8d468c5f7103f46dd5e250
ebd6f68d47e192da7f81c528312358cfe8052c8d
/swig/Examples/test-suite/scilab/overload_arrays_runme.sci
4d9a8b035e4b54939a96696708dca0ee55786e7f
[ "LicenseRef-scancode-swig", "GPL-3.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only", "Apache-2.0" ]
permissive
inishchith/DeepSpeech
965ad34d69eb4d150ddf996d30d02a1b29c97d25
dcb7c716bc794d7690d96ed40179ed1996968a41
refs/heads/master
2021-01-16T16:16:05.282278
2020-05-19T08:00:33
2020-05-19T08:00:33
243,180,319
1
0
Apache-2.0
2020-02-26T05:54:51
2020-02-26T05:54:50
null
UTF-8
Scilab
false
false
1,363
sci
overload_arrays_runme.sci
exec("swigtest.start", -1); // Functions checkequal(foo(int32([1, 2, 3])), "foo:int[SIZE]", "foo(int[SIZE])"); checkequal(foo([1, 2, 3]), "foo:double[SIZE]", "foo(double[SIZE])"); checkequal(foo(["1" "2" "3"]), "foo:char *[SIZE]", "foo(char *[SIZE])"); // Class methods s = new_Spam(); checkequal(Spam_foo(s, int32([1, 2, 3])), "foo:int[SIZE]", "Spam::foo(int[SIZE])"); checkequal(Spam_foo(s, [1, 2, 3]), "foo:double[SIZE]", "Spam::foo(double[SIZE])"); checkequal(Spam_foo(s, ["1" "2" "3"]), "foo:char *[SIZE]", "Spam::foo(char *[SIZE])"); delete_Spam(s); // Static class methods checkequal(Spam_bar(int32([1, 2, 3])), "bar:int[SIZE]", "Spam::bar(int[SIZE])"); checkequal(Spam_bar([1, 2, 3]), "bar:double[SIZE]", "Spam::bar(double[SIZE])"); checkequal(Spam_bar("hello"), "bar:char *[SIZE]", "Spam::bar(char *[SIZE])"); // Constructors s = new_Spam(); checkequal(Spam_type_get(s), "none", "Spam::Spam()"); delete_Spam(s); s = new_Spam(int32([1, 2, 3])); checkequal(Spam_type_get(s), "int[SIZE]", "Spam::Spam(int[SIZE])"); delete_Spam(s); s = new_Spam([1, 2, 3]); checkequal(Spam_type_get(s), "double[SIZE]", "Spam::Spam(double[SIZE])"); delete_Spam(s); s = new_Spam(["1" "2" "3"]); checkequal(Spam_type_get(s), "char *[SIZE]", "Spam::Spam(char *[SIZE])"); delete_Spam(s); a = new_ClassA(); b = ClassA_method1(a, [1 2 3]); exec("swigtest.quit", -1);
424d2126ecbea9a14c44ac67b3f131feb1438dc5
e41b69b268c20a65548c08829feabfdd3a404a12
/3DCosmos/Data/Scripts/_Movie/test_skyview_1.SCI
b90a06fd0abbf5ca9d2ff1b1b17c86a6ef7b51cb
[ "LicenseRef-scancode-khronos", "MIT" ]
permissive
pvaut/Z-Flux
870e254bf340047ed2a52d888bc6f5e09357a8a0
096d53d45237fb22f58304b82b1a90659ae7f6af
refs/heads/master
2023-06-28T08:24:56.526409
2023-03-01T12:44:08
2023-03-01T12:44:08
7,296,248
1
1
null
2023-06-13T13:04:58
2012-12-23T15:40:26
C
UTF-8
Scilab
false
false
683
sci
test_skyview_1.SCI
codeblock readtextfile(ScriptDir+"\_TOOLS.sci"); codeblock readtextfile(ScriptDir+"\_SSYS.sci"); codeblock readtextfile(ScriptFilePath+"\_SkyViewTools.sci"); mydata=map; mydata.longit=(3+43/60.0)/180*Pi; mydata.lattit=(51+3/60.0)/180*Pi; InitSkyView(ref(mydata)); SetViewPosition(0,deg2rad(51)); root.time=time(2011,6,27,0,0,0); root.FrameRate=30; root.TimeSpeedFactor=1000; ###############################################################################" mydata.zoomfrac=1.0; SkyFrameVisible(true); animate(1); Cam_RotateHor(root.Viewports.Main,Pi/2,3); animate(3); Cam_RotateVert(root.Viewports.Main,Pi/4,3); Cam_RotateHor(root.Viewports.Sky,-1*Pi,10); animate(20); stop;
2297e586dbf4f71055d1b4e475a90411aef2df89
3267dfd638e022b81b44b942a9de44ac896514a1
/formula.sci
9605da0d7ac71a3dd7c75d55475fc9abdb584093
[]
no_license
triv82564/Mass-Transfer-Lab
be5acd413972311bb3adba7e8fc9690a3f616763
2323baeaf390ac02e2a95cb0605029dd3b48cc8a
refs/heads/master
2021-01-01T16:53:08.288071
2017-07-21T12:09:17
2017-07-21T12:09:17
97,940,517
0
0
null
null
null
null
UTF-8
Scilab
false
false
91
sci
formula.sci
function y1=formula(u1); y1=-5169*u1*u1+21240*u1+6135; disp(y1); endfunction
d2241849583ee8f86aad276243084dc4d807e84a
449d555969bfd7befe906877abab098c6e63a0e8
/3843/CH6/EX6.11/Ex6_11.sce
b1a8b1bc51193fe7dcde1484383f7c85d3729568
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
644
sce
Ex6_11.sce
// Example 6_11 clc;funcprot(0); // Given data // From example 6.10 P_1=140;// The steam pressure at turbine inlet in psia T_1=1000;// The temperature at turbine inlet in °F P_2=2;// The steam pressure at turbine exit in psia m=4;// lbm/sec W_s=1748;// Btu/sec n_t=0.80;// The isentropic efficiency of the turbine h_1=1521;// Btu/lbm // Calculation W_a=n_t*W_s;// Btu/sec h_2a=h_1-(W_a/m);// Btu/lbm P_2a=2;// psia T_2a=(((1186-1182)/(1186-1168))*(280-240))+280;// °F s_2a=2.0526;// Btu/lbm.°R printf("\nThe temperature of the final state,T_2a=%3.0f°F \nThe entropy of thefinal state,s_2a=%1.4f Btu/lbm.°R",T_2a,s_2a);
ee409a627ce0b6b672a9d0e08e3955ff88ebf87c
449d555969bfd7befe906877abab098c6e63a0e8
/479/CH13/EX13.5/Example_13_5.sce
72f3a8d681d350f7074112404bc945755be6793f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
232
sce
Example_13_5.sce
//Chemical Engineering Thermodynamics //Chapter 13 //Thermodynamics in Phase Equilibria //Example 13.5 clear; clc; //Given //The given example is a theoretical problem and does not contain any numerical computation //end
56e90d168c41e6f39898c78128d29f85ff08e67c
449d555969bfd7befe906877abab098c6e63a0e8
/32/CH11/EX11.18/11_18.sce
df613a82bd5c0f7d2997cad789d3d7b7ce25a661
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,116
sce
11_18.sce
//pathname=get_absolute_file_path('11.18.sce') //filename=pathname+filesep()+'11.18-data.sci' //exec(filename) //Rate at which steam is generated(in kg/hr): r=5000 //Pressure of steam(in bar): p=20 //Dryness fraction: x=0.98 //Temperature of feed water(in C): T=60 //Rate at which coal is supplied(in kg/hr): r1=600 //Rate at which air is supplied(in kg per kg coal): r2=16 //Cslorific value of coal(in kJ/kg): C=30000 //Temperature of boiler room(in C): Tr=20 //Fraction of heat losr with flue gases: nl=0.86 //Specific heat of flue gases(in kJ/kg.K): Cpg=1.005 //From steam tables: hf=908.79 //kJ/kg hfg=1890.7 //kJ/kg //Mass of steam genrated per kg of coal: ms=r/r1 //Enthalpy of final steam produced(in kJ/kg): hfi=hf+x*hfg //Enthalpy of feed water(in kJ/kg): hfw=251.13 //Heat used for steam generation(in kJ per kg of coal): Q=ms*(hfi-hfw) //Heat lost per kg of coal: Ql=C-Q //Heat lost with flue gases(in kJ per kg of coal): Qlf=nl*Ql //Temperature of flue gases(in C): Tgas=Tr+Qlf/((r2+1)*Cpg) printf("\n RESULT \n") printf("\nTemperature of flue gases = %f C",Tgas)
779e5cc8e4a6a674c9f325d8f16fbea330389368
449d555969bfd7befe906877abab098c6e63a0e8
/3755/CH11/EX11.3/Ex11_3.sce
9dbe87702ee4af237e4cf540d494b4dedfb7d74d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
304
sce
Ex11_3.sce
clear // // // //Variable declaration H=6.5*10^-4; //magnetizing force(amp/m) M=1.4; //magnetic field(T) //Calculation chi=M/H; mewr=1+chi; //relative permeability //Result printf("\n relative permeability is %0.3f ",mewr) printf("\n answer in the book is wrong")
9a2ef4deeb47e2bd1aea6cece1a603be471716cc
b53bd365307e1e13cd00473cc373c6ba8df1ba7f
/src/parametricStudies/test_config_files/ICE/naturalConvection_cavity_dx.tst
805e9ce7ae83ade2c09adff2ad84707b000fff98
[ "MIT" ]
permissive
Uintah/Uintah
b7c55757cac1f919ac70fa5ffb1d6ea421b2069d
5678018f6d237faad6aff1c0bcc4791d6af2f61e
refs/heads/master
2023-09-01T05:27:36.000893
2023-07-27T17:18:28
2023-07-27T17:18:28
206,165,649
47
25
null
2022-10-17T19:14:44
2019-09-03T20:22:50
C++
UTF-8
Scilab
false
false
3,728
tst
naturalConvection_cavity_dx.tst
<?xml version="1.0" encoding="ISO-8859-1"?> <!--______________________________________________________________________ # # Parametric study to reproduce the results in the reference. # The domain length was computed using the script: # cavityFlowParameters.m # # Note you have to let the problems run for a long time for them to reach steady state. # Reference:' # Varakos, G., Mitsoulis, E., and Assimacopoulos, D. # Natural Convection Flow In A Square Cavity Revisited: Laminar and Turbulent Models With Wall Functions # International Journal for Numerical Methods in Fluids, Vol 18, 695-719, 1994 # # Add: # whatToRun.xml: <postProcessCmd_path>/home/harman/UintahProjects/NaturalConvection_validation/</postProcessCmd_path> ______________________________________________________________________--> <start> <upsFile>naturalConvectionCavity_dx.ups</upsFile> <AllTests> </AllTests> <Test> <Title>Ra_1e3_96</Title> <sus_cmd>mpirun -np 9 sus </sus_cmd> <postProcess_cmd>postProcess.m -Ra '1e3' </postProcess_cmd> <x>1e3</x> <replace_lines> <maxTime> 2 </maxTime> <outputInterval> 0.1 </outputInterval> <upper> [8.411751e-03, 8.411751e-03, 8.762240e-05] </upper> <patches> [3,3,1] </patches> <resolution> [96,96,1] </resolution> </replace_lines> </Test> <Test> <Title>Ra_1e4_96</Title> <sus_cmd>mpirun -np 9 sus </sus_cmd> <postProcess_cmd>postProcess.m -Ra '1e4'</postProcess_cmd> <x>1e4</x> <replace_lines> <maxTime> 4 </maxTime> <outputInterval> 0.2 </outputInterval> <upper> [1.812255e-02, 1.812255e-02, 1.887766e-04] </upper> <patches> [3,3,1] </patches> <resolution> [96,96,1] </resolution> </replace_lines> </Test> <Test> <Title>Ra_1e5_96</Title> <sus_cmd>mpirun -np 9 sus </sus_cmd> <postProcess_cmd>postProcess.m -Ra '1e5'</postProcess_cmd> <x>1e5</x> <replace_lines> <maxTime> 25 </maxTime> <outputInterval> 1.25 </outputInterval> <upper> [3.904383e-02, 3.904383e-02, 4.067065e-04] </upper> <patches> [3,3,1] </patches> <resolution> [96,96,1] </resolution> </replace_lines> </Test> <Test> <Title>Ra_1e6_96</Title> <sus_cmd>mpirun -np 9 sus </sus_cmd> <postProcess_cmd>postProcess.m -Ra '1e6'</postProcess_cmd> <x>1e6</x> <replace_lines> <maxTime> 50 </maxTime> <outputInterval> 2.5 </outputInterval> <upper> [8.411731e-02, 8.411731e-02, 8.762220e-04] </upper> <patches> [3,3,1] </patches> <resolution> [96,96,1] </resolution> </replace_lines> </Test> <Test> <Title>Ra_1e8_96</Title> <sus_cmd>mpirun -np 9 sus </sus_cmd> <postProcess_cmd>postProcess.m -Ra '1e8'</postProcess_cmd> <x>1e8</x> <replace_lines> <maxTime> 150 </maxTime> <outputInterval> 7.5 </outputInterval> <upper> [3.904374e-01, 3.904374e-01, 4.067056e-03] </upper> <patches> [3,3,1] </patches> <resolution> [96,96,1] </resolution> </replace_lines> </Test> <Test> <Title>Ra_1e10_128</Title> <sus_cmd>mpirun -np 16 sus </sus_cmd> <postProcess_cmd>postProcess.m -Ra '1e10'</postProcess_cmd> <x>1e10</x> <replace_lines> <maxTime> 500 </maxTime> <outputInterval> 25 </outputInterval> <upper> [1.812247e+00, 1.812247e+00, 1.887757e-02] </upper> <patches> [4,4,1] </patches> <resolution> [128,128,1] </resolution> </replace_lines> </Test> </start>
47e97e1731cafb05e06c3e2f8c483941fbe1be9f
717ddeb7e700373742c617a95e25a2376565112c
/3044/CH4/EX4.1/Ex4_1.sce
0e6accb6fe7d0ed6b59f8cf9abfc175fb052d51f
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512674
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
542
sce
Ex4_1.sce
//Variable Declaration x1 = [1,2,3,4] // Domain of f(x) x2 = [0,1,2,3,4] // Domain of h(x) // calculations f = (x1-2)/2.0 // list of values of f(x) h = (x2^2)/25.0 // list of values of h(x) //Results if(sum(f) ~= 1 ) then printf ( "f(x) can not serve as probability distribution") end if(sum(h) ~= 1) then printf ( "h(x) can not serve as probability distribution") end printf ( "f(0) is negative(P>=0) so f(x) can not serve as probability distribution")
491babcaf540373c538c60d5bdebb9df1a536385
449d555969bfd7befe906877abab098c6e63a0e8
/2150/CH4/EX4.28/ex4_28.sce
75a41ab1f3e53fbd2d1403b40b3641c57e7684d0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,403
sce
ex4_28.sce
// Exa 4.28 clc; clear; close; // Given data V_B = 4;// in V V_BE = 0.7;// in V R_E = 1.2;// in kohm R_E= R_E*10^3;// in ohm V_E = V_B-V_BE;// in V R_C = 2.2;// in kohm R_C= R_C*10^3;// in ohm R_B= 330;// in kohm R_B= R_B*10^3;// in ohm bita = 180; I_B = 7.11 * 10^-6;// in A V_CC = 18;// in V disp("Part (a)") disp(V_E,"The value of V_E in V is"); I_C = V_E/R_E;// in A disp("Part (b)") disp(I_C*10^3,"The value of I_C in mA is : ") V_C =V_CC - (I_C*R_C);// in V disp("Part (c)") disp(V_C,"The value of V_C in V is"); V_CE = V_C-V_E;// in V disp("Part (d)") disp(V_CE,"The value of V_CE in V is : ") //I_C = bita*I_B;// in A //disp(I_C*10^3,"The value of I_C in mA is : ") //V_CC= 12;// in V //R_C = 4.7;// in kohm //R_C= R_C*10^3;// ohm //V_C = V_CC - (I_C*R_C);// in V //disp(V_C,"The value of V_C in V is"); //R_B = 1.15*10^6;// in ohm //R_E = 3.3*10^3;// in ohm //I_B = (V_CC - V_BE)/(R_B + bita*(R_C+R_E));// in A //disp(I_B*10^6,"The value of I_B in µA is : ") //I_C = bita*I_B;// in A //disp(I_C*10^3,"The value of I_C in mA is : ") //V_C = V_CC - (I_C * R_C);// in V //disp(V_C,"The value of V_C in V is : ") //disp("We conclude that collector voltage V_C varies from 5.98 V to 8.30 V"); //disp("Part (e)") I_B = (V_CC - (I_C*R_C) - V_BE - V_E)/R_B;// in A disp(I_B*10^6,"Base current in µA is"); bita = I_C/I_B; disp(bita,"Current gain is");
3700fb42d31aa6cf4e82c0d42f9d9b9ec61261cd
449d555969bfd7befe906877abab098c6e63a0e8
/662/CH4/EX4.10/ex4_10.sce
3c250582ada8ed3003ccafdda9c0d98910d958fe
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
324
sce
ex4_10.sce
//Example 4.10 clc //i=integer type //x=float type //c=character type printf("Enter values for i , x and c in respective order"); printf("\n [Enter values in single line seperated by spaces]) "); [n,i, x,c]=mscanf("%3d %5f %c"); disp(i,"i = "); disp(x,"x = "); disp(c," c = ");
249d0acd751e3d1c9e06eff1012569d098230574
449d555969bfd7befe906877abab098c6e63a0e8
/2175/CH6/EX6.5/6_5.sce
6701b2e19e7194e631736716fdcbce0b90d268b2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
240
sce
6_5.sce
clc; nH=0.5;//kmole m_O=32; VH!VO=2; x=m_O*nH/VH!VO; disp("mass of oxygen required is:"); disp("kg",x) nO=x/m_O; n=nH+nO; R_=8.3145; T=288;//K p=1;//bar V=n*R_*T*10^3/(p*10^5); disp("Volume of container is:"); disp("m^3",V);
b1e03a68465a2275b1ac83e07185268cd0bd87d1
449d555969bfd7befe906877abab098c6e63a0e8
/257/CH9/EX9.4/example_9_4.sce
4092e3bf64123ffa3092d65dd9be90bd0441e400
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
100
sce
example_9_4.sce
s=%s sys=syslin('c',(k)/(s*(s+2))) evans(sys) printf("there are 2 branches approaching infinity")
4dd7bc4bbd073bc0ed95776be1752261b074fec2
449d555969bfd7befe906877abab098c6e63a0e8
/991/CH3/EX3.2/Example3_2.sce
1892e8982481ccb861628d5fabb45c9cf2858352
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
415
sce
Example3_2.sce
//Example 3.2. format(6) me=1000*9.1*10^-31 disp(me,"Mass of the charged particle(kg) = 1000 times the mass of an electron =") disp("The charge of the partical = 1.6*10^-19 C") q=1.6*10^-19 //charge of the particle V=1000 //potential difference format(8) v=sqrt(2*q*V/me) disp(v,"Therefore, The velocity, v(m/s) = sqrt(2*q*V/me) =") ke=(q*V)/(1.6*10^-19) // in eV disp(ke,"Kinetic energy(eV) = q x V =")
5c4994d399d8b3519e509e5b50c4d73479b04a12
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH20/EX20.2/Ex20_2.sce
794bdc64ccbc10a01da3a9f81f9cff9fccc30163
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
118
sce
Ex20_2.sce
clear //Given I2=150 I1=75.0 E1=20 //Calculation E2=(I2*E1)/I1 //Result printf("\n Illumination is %0.3f lux", E2)
82577132ecd6432c8b3139a0f7ad7bf0e76f3bfe
449d555969bfd7befe906877abab098c6e63a0e8
/2309/CH4/EX4.12/Ex4_12.sce
dd61e285a58df569b44b97b09029b22e45b714bf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
971
sce
Ex4_12.sce
// Chapter 4 Example 12 //============================================================================== clc; clear; // input data l = 0.1*10^-9; // length of one dimensional box h = 6.625*10^-34 // plancks constant in Jsec m = 9.11*10^-31 // mass of electron in Kg n = 1; // for ground state n5 = 6; // n value for fifth excited state e = 1.6*10^-19 // charge of electron in columbs // Calculations Eg = (h^2 * n^2)/(8*m*l^2 *e ) // Energy in ground state in eV Ee = (h^2 * n5^2)/(8*m*l^2 * e) // Energy in excited state in eV E = Ee - Eg; // energy req to excite electrons from ground state to fift excited state // Output mprintf('Energy required to excite an electron from ground state to fifth excited state = %3.2f eV',E); //==============================================================================
8a913095d337d7251e1fdd792166507af50ca71b
449d555969bfd7befe906877abab098c6e63a0e8
/3293/CH8/EX8.23/Ex8_23.sce
ec9cd79f0a6a0828fadba5de89aeebf12cb33570
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
880
sce
Ex8_23.sce
//page 301 //Example 8.23 clc; clear; close; disp('Linear transformation from V into W i.e. T is:'); disp('T(x1,x2,x3) = '); disp('0 -x3 x2'); disp('x3 0 -x1'); disp('-x2 x1 0'); disp('Then, T maps V onto W'); disp('And, putting:'); disp('A = '); disp('0 -x3 x2'); disp('x3 0 -x1'); disp('-x2 x1 0'); disp('B = '); disp('0 -y3 y2'); disp('y3 0 -y1'); disp('-y2 y1 0'); disp('we get,'); disp('tr(AB'') = x3*y3 + x2*y2 + x1*y1 + x3*y3 + x2*y2 + x1*y1'); disp('tr(AB'') = 2*(x1*y1 + x2*y2 + x3*y3)'); disp('Thus, (a|b) = (Ta|Tb)'); disp('T is vector space isomorphism'); disp('T contains the standard and orthonormal basis consisting of matrices A1,A2,A3'); A1 = [0 0 0;0 0 -1;0 1 0]; A2 = [0 0 1;0 0 0;-1 0 0]; A3 = [0 -1 0;1 0 0;0 0 0]; disp(A1,'A1 = '); disp(A2,'A2 = '); disp(A3,'A3 = '); //end
b8027ebef6ccf978dfedc9c3234b57ef55b8512e
449d555969bfd7befe906877abab098c6e63a0e8
/3835/CH9/EX9.14/Ex9_14.sce
f216733606a7404d93a765a9d4741e54e24616b7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
339
sce
Ex9_14.sce
clear // //given and derived v=450 r=0.25 i1=160 i2=125 r1=450/(160) eb1=v-i2*r1 //flux decreases by 12% hence eb2=1.12*eb1 eb2=110.60 r2=(v-eb2)/i1 eb3=v-i2*r2 eb4=1.12*eb3 r3=(v-eb4)/i1 //resistance of each section of the starter is determined as follows R1=r1-r2 printf("\n R1= %0.1f ohm",R1) R2=r2-r3 printf("\n R2= %0.1f ohm",R2)
4388bd8769944665876133556bbbe151226b8d71
449d555969bfd7befe906877abab098c6e63a0e8
/692/CH2/EX2.46/P2_46.sce
384771268f26890ce9df7fd7ace1cd487c14134e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
295
sce
P2_46.sce
//EXAMPLE 2.46, Cross corelation Computation. // Given two finite length sequence.x[n],y[n]: clear; clc; x=[1 3 -2 1 2 -1 4 4 2]; disp(x,'x'); y=[2 -1 4 1 -2 3]; disp(y,'y'); //Cross corelation rxy[n]: rxy=convol(x,mtlb_fliplr(y)); disp(rxy,'The Cross-Corelation Operation of the Inputs is =')
8220b156bcd1a419ccce2fa6f169215cc40420d1
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set7/s_Electronics_Circuits_And_Systems_Y._N._Bapat_2561.zip/Electronics_Circuits_And_Systems_Y._N._Bapat_2561/CH10/EX10.8/Ex10_8.sce
cf496c3c68e6628d552f8b32262dc99439ae5240
[]
no_license
hohiroki/Scilab_TBC
cb11e171e47a6cf15dad6594726c14443b23d512
98e421ab71b2e8be0c70d67cca3ecb53eeef1df6
refs/heads/master
2021-01-18T02:07:29.200029
2016-04-29T07:01:39
2016-04-29T07:01:39
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
203
sce
Ex10_8.sce
errcatch(-1,"stop");mode(2);//Ex10_8 h='48'; disp("Hexadecimal number="+string(h))// value in hexadecimal d=hex2dec(h)//hexadecimal to decimal disp("Eqivalent Decimal number="+string(d)) exit();
67a1b3c357a1ae8f464bda01fa19d4376572a11d
449d555969bfd7befe906877abab098c6e63a0e8
/3836/CH15/EX15.6/Ex15_6.sce
a7dd4d0dcb4213153622b6e28edf736595754cbf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
577
sce
Ex15_6.sce
clear // //Initialisation R=10**4 //Resistance in Ohm f=10**3 //Frequency in Hertz C=3*10**-8 //Capacitance in Farad V=10 //Voltage //Calculation Xc=1/(2*%pi*f*C) //Reactance a=((10**4)**2)+(5.3*10**3)**2 I=sqrt((V**2)/a) //Current in Amp Vr=I*R //Voltage Vc=Xc*I //Voltage phi=atan(Vc/Vr) //Phase Angle in radians //Result printf("\n (a) Current, I = %d uA",round(I*10**6)) printf("\n (b V = %.2f V",-phi*180/%pi)
d81e77368f839beb2aa65e739c7561cea920daef
fa1dce9ce0696cada1df5b34389384bde14c62af
/BackPropagation/matlab/relu.sce
1276a3acfcdb74c9b620415b28341518e4bf9aed
[]
no_license
DarthC0mp1ler/MIW
356c45e8b9e0a1544979fa433124b52e1d8bbf6a
38b2998e22565d158dd23eba834d20573e5700c7
refs/heads/main
2023-06-01T11:32:36.033066
2021-06-13T14:11:39
2021-06-13T14:11:39
376,556,338
1
0
null
null
null
null
UTF-8
Scilab
false
false
620
sce
relu.sce
clear close() P = -4 :0.1: 4; T = P.^2 + 1*(rand(P)-0.5); //siec S1 = 100; W1 = rand(S1, 1)- 0.5; B1 = rand(S1, 1)- 0.5; W2 = rand(1, S1) -0,5; B2 = rand(1,1) -0.5; lr = 0.001 for epoka = 1 : 2000 //odpowiedz sieci X = W1*P + B1*ones(P) A1 = max(X,0); //ReLu A2 = W2*A1 + B2; //propagacja wsteczna E2 = T - A2; E1 = W2'*E2; dW2 = lr* E2 * A1'; dB2 = lr *E2 * ones(E2)'; dW1 = lr * (exp(X)./(exp(X)+1)) .* E1 * P'; dB1 = lr * (exp(X)./(exp(X)+1)) .* E1 * ones(P)'; W2 = W2 + dW2; B2 = B2 + dB2; W1 = W1 + dW1; B1 = B1 + dB1; if modulo(epoka, 3)==0 then clf(); plot(P,T, 'r*') plot(P,A2) sleep(50); end end
66163ee75ae5958de7fd99c813a8b28a5404b4b6
449d555969bfd7befe906877abab098c6e63a0e8
/3020/CH12/EX12.9/ex12_9.sce
ec865f57f6ef0f279ab381e24ec1c58dc19c6a3f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
289
sce
ex12_9.sce
clc; clear all; d = 60e-6; // Diameter of core in fiber in meters lambda = 2.7e-6; // Operating Wavelength in meters NA = 0.25; // Numerical Aperture N = 4.9*((d*NA)/lambda)^2 // Number of modes propogating through fiber is disp('',N,'Number of modes propogating through fiber is')
60b3f91d65ba3f2b08b30a1dee6c939ff39f1f51
449d555969bfd7befe906877abab098c6e63a0e8
/1088/CH14/EX14.12/Example12.sce
21dce5a42d9b6f9cd2b621f74652f2f621dfe85e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
4,778
sce
Example12.sce
clear flag=1 mode(-1) clc printf("Example 12 : Show the use of shift arguments \n") disp("****************************************************************") disp("Answer : ") disp("INSTRUCTIONS : ") printf("\n1. Here all instructions are preloaded in the form of a demo\n\nInitially the whole perl script is displaying and then \n the result of the same can be seen in the command line interpreter.\n\n2. PLEASE MAKE SURE THAT THE PERLSCRIPT INTERPRETER\nEXISTS IN THE SYSTEM\nOR THE COMMAND WOULD NOT WORK \n\n3. PRESS ENTER AFTER EACH COMMAND to see its RESULT\n\n5. PRESS ENTER AFTER EACH RESULT TO GO TO THE NEXT COMMAND\n") halt('.............Press [ENTER] to continue.....') halt("") clc printf("\tUNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)\n\n\n") i=0 i=i+1;f(i)='2233|a.k.shukla |g.m. |sales |12/12/52|6000' i=i+1;f(i)='9876|jai sharma |director |production |12/03/50|7000' i=i+1;f(i)='5678|sumit chakrobarty|d.g.m |marketing |19/04/43|6000' i=i+1;f(i)='2356|barun sengupta |director |personnel |11/05/47|7800' i=i+1;f(i)='5423|n.k. gupta |chairman |admin |30/08/56|5400' i=i+1;f(i)='1006|chanchal singhvi |director |sales |03/09/38|6700' i=i+1;f(i)='6213|karuna ganguly |g.m. |accounts |05/06/62|6300' i=i+1;f(i)='1265|s.n. dasgupta |manager |sales |12/09/63|5600' i=i+1;f(i)='4290|jayant Choudhary |executive |production|07/09/50|6000' i=i+1;f(i)='2476|anil aggarwal |manager |sales |01/05/59|5000' i=i+1;f(i)='6521|lalit chowdury |director |marketing |26/09/45|8200' i=i+1;f(i)='3212|shyam saksena |d.g.m |accounts |12/12/55|6000' i=i+1;f(i)='3564|sudhir Agarwal |executive |personnel |06/07/47|7500' i=i+1;f(i)='2345|j.b. saxena |g.m. |marketing |12/03/45|8000' i=i+1;f(i)='0110|v.k. agrawal |g.m. |marketing |31/02/40|9000' n=i printf("\n\n$ cat emp.lst # to open the file emp.lst") halt(' ') u=mopen('emp.lst','wt') for i=1:n mfprintf(u,"%s\n",f(i)) printf("%s\n",f(i)) end mclose(u) halt('') halt('') clc li(1)='#!/bin/sh' li(2)='# emp7.sh: Script using shift -- Saves first argument;for works with the rest' li(3)='#' li(4)='case $# in' li(5)=' 0|1) echo '+ascii(34)+'Usage: $0 file pattern(s)'+ascii(34)+' ; exit 2 ;;' li(6)=' *) flname=$1 # store $1 as a variable before it gets lost' li(7)=' shift' li(8)=' for pattern in '+ascii(34)+'$@'+ascii(34)+' ; do # Starts iteration with $2' li(9)=' grep '+ascii(34)+'$pattern'+ascii(34)+' $flname || echo '+ascii(34)+'Pattern $pattern not found'+ascii(34) li(10)=' done' li(11)=' esac' printf("\n# Enter the name of the shellscript file whichever you desire \n\n") nam=input('$ cat ','s') halt(' ') for i=1:11 printf("%s\n",li(i)) end halt(' ') clc lst(1)='@echo off' lst(2)='set b=0' lst(3)='for %%x in (%*) do set /a b+=1' lst(4)='set i=3' lst(5)='set fille=%1' lst(6)='shift /1' lst(7)='findstr '+ascii(34)+'%1'+ascii(34)+' %fille%>res' lst(8)='for /F '+ascii(34)+'usebackq'+ascii(34)+' %%A in ('+ascii(39)+'res'+ascii(39)+') do set siz=%%~zA' lst(9)=':loop' lst(10)='if %siz% equ 0 echo Pattern %1 not found&&goto incr' lst(11)='echo Search results for pattern %1' lst(12)='echo ------------------------------------------------' lst(13)='echo.' lst(14)='type res' lst(15)=':incr' lst(16)='if %i% gtr %b% goto endloop' lst(17)='shift /1' lst(18)='del res' lst(19)='findstr '+ascii(34)+'%1'+ascii(34)+' %fille%>res' lst(20)='for /F '+ascii(34)+'usebackq'+ascii(34)+' %%A in ('+ascii(39)+'res'+ascii(39)+') do set siz=%%~zA' lst(21)='set /a i+=1' lst(22)='echo.' lst(23)='goto loop' lst(24)=':endloop' lst(25)='pause>NUL' lst(26)='del res' if getos()=='Linux' then printf("\n\nPlease Switch to windows and then execute\n\nThank You \n\n") halt(' ') exit end v=mopen(nam+'.sh.bat','wt') for i=1:26 mfprintf(v,"%s\n",lst(i)) end mclose(v) printf("\n# type the following command in the command line interpreter as soon as it appears") printf(" \n %c %s.sh %c [COMMANDLINE ARGUMENTS][ENTER]\n\n",ascii(34),nam,ascii(34)) printf("\n$ %s.sh [COMMANDLINE ARGUMENTS] #to execute the perlscript",nam) halt(' ') dos('start') printf("\n\n\n") halt(' ---------------->Executing ShellScript in Command Line Prompt<-------------- ') printf("\n\n\n$ exit #To exit the current simulation terminal and return to Scilab console\n\n") halt("........# (hit [ENTER] for result)") //clc() printf("\n\n\t\t\tBACK TO SCILAB CONSOLE...\nLoading initial environment') sleep(1000) mdelete(nam+'.sh.bat') mdelete('emp.lst')
77f9f5041f9c4d70cc7d30505d8621cc275e0c9e
99b4e2e61348ee847a78faf6eee6d345fde36028
/Toolbox Test/poly2lsf/poly2lsf8.sce
d0038128db4c941cee05355f31611daf854b5f94
[]
no_license
deecube/fosseetesting
ce66f691121021fa2f3474497397cded9d57658c
e353f1c03b0c0ef43abf44873e5e477b6adb6c7e
refs/heads/master
2021-01-20T11:34:43.535019
2016-09-27T05:12:48
2016-09-27T05:12:48
59,456,386
0
0
null
null
null
null
UTF-8
Scilab
false
false
310
sce
poly2lsf8.sce
a = [0.000 -23 -0.6149 -0.9899 -0.0000 -0.0031 -0.0082]; b=poly2lsf(a); disp(b); ////output //!--error 10000 //Input to ROOTS must not contain NaN or Inf //at line 19 of function poly2lsf called by : //b=poly2lsf(a); //at line 2 of exec file called by : //Test/poly2lsf/poly2lsf8.sce', -1
ea3264ddd6d9ce7d146062d36caf39ad3ecba9e7
449d555969bfd7befe906877abab098c6e63a0e8
/2498/CH3/EX3.14/ex3_14.sce
c972824e829a4a12acd16eaac081eb3c45c76e79
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,054
sce
ex3_14.sce
// Exa 3.14 clc; clear; close; format('v',6) // Given data R_L = 200;// in ohm Vin = 20;// in V V_Z = 10;// in V P_Zmaz = 400;// in mW R_S = 220;// in ohm //The value of V_L with 200 ohm V_L =(R_L/(R_S+R_L))*Vin;// in V disp(V_L,"The value of V_L with 200 ohm in V is"); // The value of I_Z with 200 ohm I_Z = 0;// in A disp(I_Z,"The value of I_Z with 200 ohm in A is"); // The value of I_L with 200 ohm I_L = Vin/(R_S+R_L)*10^3;// in mA disp(I_L,"The value of I_L with 200 ohm in mA is"); //The value of I_R with 200 ohm I_R = I_L;// in mA disp(I_R,"The value of I_R with 200 ohm in mA is"); R_L = 50;// in ohm V_L = (R_L/(R_S+R_L))*Vin;// in V //The value of I_L with 50 ohm I_L = Vin/(R_S+R_L)*10^3;// in mA disp(I_L,"The value of I_L with 50 ohm in mA is"); // The value of I_R with 50 ohm I_R = I_L;// in mA disp(I_R,"The value of I_R with 50 ohm in mA is"); // The value of I_Z with 50 ohm I_Z = 0;// in A disp(I_Z,"The value of I_Z with 50 ohm in A is"); disp(V_L,"The value of V_L with 50 ohm in V is");
af617c8ecc3da4a790e5bcc4dc1189c0058928cb
449d555969bfd7befe906877abab098c6e63a0e8
/503/CH8/EX8.9/ch8_9.sci
3ab3421dba943e63f27078b68f8ec50dc0b8a07f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
660
sci
ch8_9.sci
//to calculate the generator current and its pf clc; j=sqrt(-1); X=.24; r=400; //rating in MVA rr=600; //rating in MVA Pe=r/rr; Vt=1; Vth=1; dl=asind(Pe*X/(Vt*Vth)); Ia=2*sind(dl/2)/X; V=24000; IaB=(rr/3)*10^6/(V/sqrt(3)); Iaa=Ia*IaB;disp(Iaa,'generating current(A)'); phi=dl/2; pf= cosd(phi);disp(pf,'power factor'); Pe=1; dl1=asind(Pe*X/(Vt*Vth)); Ia=2*sind(dl1/2)/X; Iaa=Ia*IaB;disp(Iaa,'generating current(A)'); phi=dl1/2; pf= cosd(phi);disp(pf,'power factor'); Ef=Vt+j*Ia*(complex(cosd(-phi),sind(-phi)))*X; Eff=abs(Ef)*V; dl2=atand(imag(Ef)/real(Ef)); Xth=.24; Pe=abs(Ef)*Vth*sind(dl1+dl2)/(X+Xth);disp(Pe,'Pe(pu)');
e6e73e1e000dd2cc2d244147c7be15625db973e1
449d555969bfd7befe906877abab098c6e63a0e8
/2252/CH1/EX1.2/Ex1_2.sce
4cd4e8245ee83f537481a9710a83a27205ef901a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
187
sce
Ex1_2.sce
//i1, i2, i3 be the currents in the branches CD, EF and GH respectively //i1+i2+i3=1.5 i2=(20-1.5*10)/15 i3=(20-1.5*10)/15 i1=1.5-i2-i3 r=(20-1.5*10)/i1 mprintf("r=%f ohm", r)
18f2c293aa4efd794f316d492de15d452f05f124
6e257f133dd8984b578f3c9fd3f269eabc0750be
/ScilabFromTheoryToPractice/Programming/testtrycatch2.sce
1f94d9fb666c0146563d1d5b099915422c17ca6a
[]
no_license
markusmorawitz77/Scilab
902ef1b9f356dd38ea2dbadc892fe50d32b44bd0
7c98963a7d80915f66a3231a2235010e879049aa
refs/heads/master
2021-01-19T23:53:52.068010
2017-04-22T12:39:21
2017-04-22T12:39:21
89,051,705
0
0
null
null
null
null
UTF-8
Scilab
false
false
57
sce
testtrycatch2.sce
exec('scilab-base-program-testtrycatch.sce')//to delete
d7e24d100da36f520710eeb6ebc2d09ea07624b8
449d555969bfd7befe906877abab098c6e63a0e8
/27/CH10/EX10.3.1/Example_10_3_1.sce
83801889329202014fd88ee5ef4fe1544b1505d6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,234
sce
Example_10_3_1.sce
//Example 10.3.1 Page 357 //Non-Linear Dynamics and Chaos, First Indian Edition Print 2007 //Steven H. Strogatz clear; clear; clc; close; set(gca(),"auto_clear","off") //hold on //Taking r=2; r=2; x=poly(0,"x"); f = x-2*(x^2); //Defining Polynomial--> f(x*)-x* = 2*x(1-x)-x. Let this be f(x) disp("Fixed Points are :") y = roots(f) disp("The fixed point x*=1-(1/r) does not exists for r<1, Since x(n+1)<0 and population cannot be negative.") lambda1=r-2*r*y(1) //f'(x*) = r-2rx* lambda2=r-2*r*y(2) disp("Since, lambda1=2>1, thus orign is Unstable.") disp("Since, lambda2=0<1, thus x*=1-(1/r) is Stable.") //Number of points graphically : r1=3; //r>1 r2=1; //r=1, tangential case r3=0.5; //r<1 for xn=0:0.05:1 xn_one=r1*xn*(1-xn); plot2d(xn,xn_one,style=-3) xn_one=r2*xn*(1-xn); plot2d(xn,xn_one,style=-3) xn_one=r3*xn*(1-xn); plot2d(xn,xn_one,style=-3) y=xn; // to draw y=x line plot2d(xn,y,style=-4) end xtitle("Graph Showing Number of Fixed Points for differnent values of r","x-Axis ( xn )","y-Axis ( xn+1 )") //Similarly, check for Stability by changing r. //End of Example.
be9c1d0e2f895c15f8b1ff17a96a9946271519f1
449d555969bfd7befe906877abab098c6e63a0e8
/944/CH5/EX5.11/example5_11_TACC.sce
f50b96dec7a6ba065cafb276a64e6fb8ccd724d3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
276
sce
example5_11_TACC.sce
//example 5.11 clear; clc; //Given: N=3;//Total no. of balls Nb=2;//Black balls Nw=1;//white ball //To find the total no. possible configuration w=prod(1:N)/prod(1:Nb)/prod(1:Nw); printf("The total no. of possible configurations are %f ",w);
ebeb1e7987499e0e1ca476f4d2030eb0b2172c71
4bcfc36b3fe4f98e84b3bf8fd08adde00b7da338
/Results/exploration/graph1d_1511.049.sci
7bf565f029da019cb251e0307decbd4db521ec0b
[]
no_license
CSSS2013UrbanMobility/UrbanMobilityNew
52bea127d39046a7ef6796936b07664784a8fa4c
48fb4b517718a961ca99e2fab678b80f17c22bf2
refs/heads/master
2021-01-01T18:42:37.730732
2014-02-09T16:40:18
2014-02-09T16:40:35
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
625
sci
graph1d_1511.049.sci
tol=[]; reroutes(1)=1.0485689505637468; reroutes(2)=0.8946877912395154; reroutes(3)=0.5102420856610801; reroutes(4)=0.622822299651568; reroutes(5)=0.28558052434456926; reroutes(6)=0.22595704948646125; reroutes(7)=0.20191470844212359; reroutes(8)=0.06273408239700375; reroutes(9)=0.06279287722586692; reroutes(10)=0.0835509138381201; reroutes(11)=0.03544776119402985; reroutes(12)=0.00749063670411985; reroutes(13)=0.016593886462882096; reroutes(14)=0.006548175865294668; reroutes(15)=0.0037418147801683817; reroutes(16)=0.01572052401746725; reroutes(17)=0; reroutes(18)=0; reroutes(19)=0.0017406440382941688; reroutes(20)=0;
4eaf35a4a87d8e498d2c158454ab1b1a6fb1b811
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set6/s_Electronic_Circuits_M._H._Tooley_995.zip/Electronic_Circuits_M._H._Tooley_995/CH13/EX13.4/Ex13_4.sce
a7f0c8a6b8cb2980e83a728afd330763ff866921
[]
no_license
hohiroki/Scilab_TBC
cb11e171e47a6cf15dad6594726c14443b23d512
98e421ab71b2e8be0c70d67cca3ecb53eeef1df6
refs/heads/master
2021-01-18T02:07:29.200029
2016-04-29T07:01:39
2016-04-29T07:01:39
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
217
sce
Ex13_4.sce
errcatch(-1,"stop");mode(2);//Ex:13.4 ; ; f_rf=162.5;//in kHz f_af=1.25;//in kHz f_bfo_max=f_rf+f_af; f_bfo_min=f_rf-f_af; printf("The two possible BFO freq. =%f kHz and %f kHz",f_bfo_max,f_bfo_min); exit();
c021bf4f73b19f198e8469eb328244cfe025cbc3
449d555969bfd7befe906877abab098c6e63a0e8
/137/CH5/EX5.3a/5_3a.sce
8939bafda99950cc7346b98887ae4617e6a0dd62
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
676
sce
5_3a.sce
clc; //page 222 //problem 5.3.a // refer fig from page no. 212 Fig.5.4a // The values of constsnts Kf and Kp are given as Kf= 2*pi*10^5 and Kp=5*pi . // Here we are assuming the Bandwidth B of m(t) as the frequency of the third harmonic, i.e. 3(10^4/2)Hz= 15kHz B=15;// in kHz // For FM: // Here peak amplitude of m(t) is mp=1 mp=1; // df=kf*mp/2*pi Kf= 2*%pi*10^5; Kp=5*%pi; df= (Kf*mp)/(2*%pi);// in Hz df=df/10^3;// in KHz Bfm=2*(df+B); disp(+'KHz',Bfm,'Bfm in kHz is'); // For PM: //Here peak amplitude of m(t)' is mp=20000 mp=20000; // df=kp*mp/2*pi df= (Kp*mp)/(2*%pi);// in Hz df=df/10^3;// in KHz Bpm=2*(df+B); disp(+'KHz',Bpm,'Bpm in kHz is');
01068b307a539b23a7b930503fbb7f4b297a4f61
02d16dcc50adfac84da99d9558f5044a2cc2b37a
/sample/Eq3.tst
7964d8503012927e443360faa8733ea526511cd2
[]
no_license
anvicordova/nand2tetris
985eeb17e8f6b11b1bacf2818c460a469453b8c2
e186745025d20ffdc6d40d298ba172a15c6d90b1
refs/heads/master
2023-08-07T18:06:06.126691
2021-09-20T17:58:04
2021-09-20T17:58:04
398,842,285
0
0
null
null
null
null
UTF-8
Scilab
false
false
398
tst
Eq3.tst
/* Test the Eq3.htl program. The Eq3 chip sets out to 1 if it three inputs have the same values or 0 otherwise*/ load Eq3.hdl, output-file Eq3.out, compare-to Eq3.cmp, output-list a b c out; set a 0, set b 0, set c 0, eval, output; set a 1, set b 1, set c 1, eval, output; set a 1, set b 0, set c 0, eval, output; set a 0, set b 1, set c 0, eval, output; set a 1, set b 0, set c 1, eval, output;
6c53f48afe49d303f670671f3fb5d56257c00c67
25661c60cc20d638f33763f40c0ab394380634c0
/codes/corde/corde.sce
fa6d59dd01629099196b433a8b36d519fb8a1e58
[]
no_license
kpofi/projetMN
8de81c55f7cacc005fc51bb1233a720ece79cbd2
f9379ca440111603fbfbf99d264057225f678552
refs/heads/master
2020-06-19T04:47:45.729923
2016-11-27T23:01:59
2016-11-27T23:01:59
74,919,670
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,845
sce
corde.sce
//fonction corde driver("Rec"); SR = 44100; // taux d'échantillonage B = 0.001; // paramètre d'inharmonicité f = 110; // fréquence fondamentale TF = 4; // durée de la simulation x0 = 0.1; // position où la corde est pincée c0 = 1; // hauteur du pincement rp = [0.3 0.7]; // positions des micros loss = [100, 10; 1000, 8]; // coouples de fréquence/temps décroissance function e = epsi(w, g, kp) e = (-(g^2) + ((g^4) + 4*((kp*w)^2) )^(1/2) )/2*(kp^2); endfunction; function hm = hmin(g, kp, k) hm = ( ( (g*k)^2 + ( (g*k)^4 + 16*(kp*k)^2 )^(1/2) )/2 )^(1/2); endfunction; function u = etat_initial (x0, c0, N) u = ones(N-1,1); a0 = c0/x0; a1 = c0/(1-x0); for i=1:N-1 if ((i/N) < x0) then u(i) = a0*(i/N); else u(i) = a1*(1-(i/N)); end end endfunction function k = indice(p, N) i = 0; while (i/N) <= p i = i + 1; end k = i - 1; endfunction function p = variation(U,p11,p1,N) a = 0; b = 0; if (p11 == 0) then a = N*U(1); else if (p11 == N - 1) then a = -N*U(p11); b = -a; else a = N*(U(p11 + 1) - U(p11)); b = U(p11) - a*(p11/N); end end p = a*p1 + b; endfunction function corde(SR, B, f, TF, x0, c0, rp, loss) w1 = 2*%pi*loss(1); w2 = 2*%pi*loss(2); // gamma g = 2*f; // kappa kp = (g*B^(1/2))/%pi; // calcul de epsilon 1 et 2 e1 = epsi(w1,g,kp); e2 = epsi(w2,g,kp); // calcul de sigma 0 et 1 s0 = ((6*log(10))/(e2-e1))*((e2/loss(3))-(e1/loss(4))); s1 = ((6*log(10))/(e2-e1))*((-1/loss(3))+(1/loss(4))); // pas en temps k = 1/SR; // calcul de h N = fix(1/hmin(g,kp,k)); h = 1/N; // matrice de Toeplitz n = N - 1; v = 0*[1:n]; v(1) = -2; v(2) = 1; D = (1/(h^2))*toeplitz(v); D2 = D^2; // calcul de A B et C A = (1 + s0*k)*eye(n,n) - s1*k*D; B0 = -2*eye(n,n) -((g*k)^2)*D + ((kp*k)^2)*D2; C = (1 - s0*k)*eye(n,n) + s1*k*D; // calcul de U0 et U1 U0 = etat_initial(x0,c0,N); U1 = U0; U2 = 0*ones(n,1); x = (1/N):(1/N):(1-(1/N)); p = 0; // indice des points qui encadrent p1 p11 = indice(rp(1),N); // indice des points qui encadrent p2 p21 = indice(rp(2),N); // nombre total d'iterations NF = fix(TF/k); // vecteur out out = zeros(2,NF); // enregistrement de la variation i = 1; out(1,i) = variation(U0,p11,rp(1),N); out(2,i) = variation(U0,p21,rp(2),N); for t=2:NF drawlater; U2 = A\(-(B0*U1 + C*U0)); U0 = U1; U1 = U2; //enregistrement de la variation i = i + 1; out(1,i) = variation(U0,p11,rp(1),N); out(2,i) = variation(U0,p21,rp(2),N); clf; plot(x,U0'); a=gca(); a.data_bounds=[0, -c0*(1 + 20/100); 1, c0*(1 + 20/100)]; drawnow; // on fait 1000 + t pour pouvoir faire l'animation apres p = 1000 + t; //on enregistre 1/10 image if ((modulo(t,10) == 0) & (t < 2000) ) then nom_image='image_'+string(p)+'.gif'; winnum=winsid(); xs2gif(winnum($),nom_image); end end // on affiche l'evolution des points p1 et p2 clf; temps = (0:1:NF-1)'; temps = k*temps; plot2d(temps,[out(1,1:NF)', out(2,1:NF)'],style=[2,5]); // on enregistre l'image out1 en bleu et out2 en rouge nom_image='aa_son.gif'; winnum=winsid(); xs2gif(winnum($),nom_image); // transformées de Fourier clf; s1 = fftshift( out(1,1 : size(out, 2)) ); s2 = fftshift( out(2,1 : size(out, 2)) ); plot2d(temps,[s1', s2'],style=[2,5]); // on enregistre l'image s1 en bleu et s2 en rouge nom_image='aa_fourier.gif'; winnum=winsid(); xs2gif(winnum($),nom_image); // on joue et on enregistre le son 1 playsnd(out(1,1:size(out,2)),SR); savewave('son1.wav', out(1,1 : size(out, 2)), SR); // on joue et on enregistre le son 2 playsnd(out(2,1:size(out,2)),SR); savewave('son2.wav', out(2,1 : size(out, 2)), SR); endfunction;
ca850fe2f0a016fbf430afd5c512e0483c64753c
717ddeb7e700373742c617a95e25a2376565112c
/1340/CH7/EX7.6/7_6.sce
1ea46b925893980d86fc77d6b0eb2e9248ecd0a7
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512674
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
280
sce
7_6.sce
clc; s = %s; printf("S.S. error = 0.1"); Kv = 1/0.1 G = syslin('c',(s+5)/((s*(s+6)*(s+7)*(s+8)))); printf("\n For type-1 system and finite steady state error implies a ramp input. \n") syms k s; disp(s*G); l = limit(s*G,s,0); disp(l); k = Kv/l; disp(k,"Value of K:");
fcacba25ab8f3827d8e181fd911e4b84a0909b80
4bbc2bd7e905b75d38d36d8eefdf3e34ba805727
/ee/contrib/MSVC2008_Patch/findmsvccompiler.sci
0eb20ce8ec03c580739a37200d018bef0213db99
[]
no_license
mannychang/erika2_Scicos-FLEX
397be88001bdef59c0515652a365dbd645d60240
12bb5aa162fa6b6fd6601e0dacc972d7b5f508ba
refs/heads/master
2021-02-08T17:01:20.857172
2012-07-10T12:18:28
2012-07-10T12:18:28
244,174,890
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,958
sci
findmsvccompiler.sci
//----------------------------------------------------------------------------- // Allan CORNET // INRIA 2005 //----------------------------------------------------------------------------- function MSCompiler=findmsvccompiler() MSCompiler='unknown'; // unknown if MSDOS then ierr=-1; ierr=execstr("MSVS80Pro=winqueryreg(''HKEY_LOCAL_MACHINE'',''Software\Microsoft\VisualStudio\8.0\Setup\VS\Pro'',''ProductDir'');","errcatch"); if (ierr == 0) then MSCompiler='msvc80pro'; // Microsoft Visual 2005 Studio Professional return; else lasterror(%T); // The error message is cleared end ierr=execstr("MSVS80std=winqueryreg(''HKEY_LOCAL_MACHINE'',''Software\Microsoft\VisualStudio\8.0\Setup\VS\Std'',''ProductDir'');","errcatch"); if (ierr == 0) then MSCompiler='msvc80std'; // Microsoft Visual 2005 Studio Standard return; else lasterror(%T); // The error message is cleared end ierr=execstr("MSVS71=winqueryreg(''HKEY_LOCAL_MACHINE'',''SOFTWARE\Microsoft\VisualStudio\7.1\Setup\VC'',''ProductDir'');","errcatch"); if (ierr == 0) then MSCompiler='msvc71'; // Microsoft Visual Studio .NET 2003 return; else lasterror(%T); // The error message is cleared end ierr=execstr("MSVS70=winqueryreg(''HKEY_LOCAL_MACHINE'',''SOFTWARE\Microsoft\VisualStudio\7.0\Setup\VC'',''ProductDir'');","errcatch"); if (ierr == 0) then MSCompiler='msvc70'; // Microsoft Visual Studio .NET 2002 return; else lasterror(%T); // The error message is cleared end ierr=execstr("MSVS80EXPRESS=winqueryreg(''HKEY_LOCAL_MACHINE'',''Software\Microsoft\VCExpress\8.0\Setup\VS'',''ProductDir'');","errcatch"); if (ierr == 0) then ierr1=execstr("W2003R2SDK=winqueryreg(''HKEY_LOCAL_MACHINE'',''Software\Microsoft\MicrosoftSDK\InstalledSDKs\D2FF9F89-8AA2-4373-8A31-C838BF4DBBE1'',''Install Dir'');","errcatch"); ierr2=execstr("W2003SDK=winqueryreg(''HKEY_LOCAL_MACHINE'',''Software\Microsoft\MicrosoftSDK\InstalledSDKs\8F9E5EF3-A9A5-491B-A889-C58EFFECE8B3'',''Install Dir'');","errcatch"); ierr3=execstr("VISTASDK=winqueryreg(''HKEY_LOCAL_MACHINE'',''Software\Microsoft\Microsoft SDKs\Windows'',''CurrentInstallFolder'');","errcatch"); if ( (ierr1 == 0) | (ierr2 == 0) | (ierr3 == 0) ) then MSCompiler='msvc80express'; // Microsoft Visual C++ Express 8.0 lasterror(%T); // The error message is cleared return; else printf('\nWarning : Microsoft Visual C++ 2005 Express Edition has been detected,\nbut not Microsoft Platform SDK for Windows Server 2003 R2 or more.\nPlease install this SDK if you want to use dynamic link with scilab.\n'); lasterror(%T); // The error message is cleared end else lasterror(%T); // The error message is cleared end ierr=execstr("MSVS90EXPRESS=winqueryreg(''HKEY_LOCAL_MACHINE'',''Software\Microsoft\VCExpress\9.0\Setup\VS'',''ProductDir'');","errcatch"); if (ierr == 0) then ierr1=execstr("W2003R2SDK=winqueryreg(''HKEY_LOCAL_MACHINE'',''Software\Microsoft\MicrosoftSDK\InstalledSDKs\D2FF9F89-8AA2-4373-8A31-C838BF4DBBE1'',''Install Dir'');","errcatch"); ierr2=execstr("W2003SDK=winqueryreg(''HKEY_LOCAL_MACHINE'',''Software\Microsoft\MicrosoftSDK\InstalledSDKs\8F9E5EF3-A9A5-491B-A889-C58EFFECE8B3'',''Install Dir'');","errcatch"); ierr3=execstr("VISTASDK=winqueryreg(''HKEY_LOCAL_MACHINE'',''Software\Microsoft\Microsoft SDKs\Windows'',''CurrentInstallFolder'');","errcatch"); if ( (ierr1 == 0) | (ierr2 == 0) | (ierr3 == 0) ) then MSCompiler='msvc90express'; // Microsoft Visual C++ Express 9.0 lasterror(%T); // The error message is cleared return; else printf('\nWarning : Microsoft Visual C++ 2008 Express Edition has been detected,\nbut not Microsoft Platform SDK for Windows Server 2003 R2 or more.\nPlease install this SDK if you want to use dynamic link with scilab.\n'); lasterror(%T); // The error message is cleared end else lasterror(%T); // The error message is cleared end ierr=execstr("MSVS60=winqueryreg(''HKEY_LOCAL_MACHINE'',''SOFTWARE\Microsoft\DevStudio\6.0\Products\Microsoft Visual C++'',''ProductDir'');","errcatch"); if (ierr == 0) then MSCompiler='msvc60'; // Microsoft Visual Studio 6 return; else lasterror(%T); // The error message is cleared end ierr=execstr("MSVS50=winqueryreg(''HKEY_LOCAL_MACHINE'',''SOFTWARE\Microsoft\DevStudio\5.0\Directories'',''ProductDir'');","errcatch"); if (ierr == 0) then MSCompiler='msvc50'; // Microsoft Visual Studio 5 return; else lasterror(%T); // The error message is cleared end else // MSDOS MSCompiler='unknown'; // unknown end endfunction //-----------------------------------------------------------------------------
98a074c7081a51624ff7ea628d4242eb256c5acf
8341e5d4592082938937701d121dc41f7b544347
/app/views/application/_nav.html.erb.tst
05ded6fc6aaf2e50b55be5646447e733af85accd
[]
no_license
ozavala/gymsystem-v4
6133fc277379513add2c220e6855e96c1eacc7bd
777d7899032fce1ea361b1c3f421f032a8cbaa6c
refs/heads/master
2020-04-22T23:34:34.947207
2019-03-09T16:17:41
2019-03-09T16:17:41
170,746,316
0
0
null
2019-02-20T23:29:21
2019-02-14T19:30:13
Ruby
UTF-8
Scilab
false
false
2,374
tst
_nav.html.erb.tst
<!DOCTYPE html> <title>My Example</title> <!-- Latest compiled and minified Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> <style> body { padding-top: 1em; } </style> <div class="container-fluid"> <nav class="navbar navbar-expand-sm navbar-light bg-faded"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#nav-content" aria-controls="nav-content" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <!-- Brand --> <a class="navbar-brand" href="#">Logo</a> <!-- Links --> <div class="collapse navbar-collapse" id="nav-content"> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" href="#">Link 1</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Link 2</a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" data-toggle="dropdown" id="Preview" href="#" role="button" aria-haspopup="true" aria-expanded="false"> Dropdown </a> <div class="dropdown-menu" aria-labelledby="Preview"> <a class="dropdown-item" href="#">Dropdown Link 1</a> <a class="dropdown-item" href="#">Dropdown Link 2</a> <a class="dropdown-item" href="#">Dropdown Link 3</a> </div> </li> </ul> </div> </nav> </div> <!-- jQuery library --> <!-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> --> <!-- Popper --> <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> --> <!-- Latest compiled and minified Bootstrap JavaScript --> <!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> --> <!-- Initialize Bootstrap functionality --> <!-- <script> // Initialize tooltip component $(function () { $('[data-toggle="tooltip"]').tooltip() }) // Initialize popover component $(function () { $('[data-toggle="popover"]').popover() }) </script> -->
19c0f0b50f27bb57bba65376a9c1f8eb31632d58
449d555969bfd7befe906877abab098c6e63a0e8
/2153/CH3/EX3.1/ex_3_1.sce
6cdb6fa5e47ea5d7e46396ae6dd74e37ad6c261e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
535
sce
ex_3_1.sce
//Example 3.1: miller indices clc; clear; close; //given data x1=1;// x2=1;// x3=2;// h1=1/x1;// h2=1/x2;// h3=1/x3;// disp("Miller indices of the plane (112) are: "+string(h1)+","+string(h2)+","+string(h3)) x11=0;// x21=0;// x31=1;// h11=%inf;// h21=%inf;// h31=1/x31;// disp("Miller indices of the plane (001) are : "+string(h11)+","+string(h21)+","+string(h31)) x111=1;// x211=0;// x311=1;// h111=1/x111;// h211=%inf;// h311=1/x311;// disp("Miller indices of the plane (101) are : "+string(h111)+","+string(h211)+","+string(h311))
05278e04eb1e6d8f253c3453c841d6302261df8b
449d555969bfd7befe906877abab098c6e63a0e8
/2159/CH11/EX11.2/112.sce
2542ac7751ba7a5edf852ebdf809684eaa4f00d9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
265
sce
112.sce
// problem 11.2 H=46 Q=1 u1=15 y=165 y2=180-y Cv=0.975 g=9.81 V1=((2*g*H)^0.5) Vw1=V1 Vr1=V1-u1 Vr2=Vr1 Vw2=(Vr2*(cosd(y2)))-u1 w=9810 P=(w*Q*(Vw1+Vw2)*u1)/(g*1000) n=P*1000/(w*Q*H) disp(n*100,P,"power developed in Kw and efficiency of the wheel")
4fb9f6a5d69dfbc18d6505ed97a3fef5bfb96afe
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set6/s_Electronic_Circuits_M._H._Tooley_995.zip/Electronic_Circuits_M._H._Tooley_995/CH4/EX4.8/Ex4_8.sce
5576f96e4d940717f43ee3f2eb4695c55107a5dd
[]
no_license
hohiroki/Scilab_TBC
cb11e171e47a6cf15dad6594726c14443b23d512
98e421ab71b2e8be0c70d67cca3ecb53eeef1df6
refs/heads/master
2021-01-18T02:07:29.200029
2016-04-29T07:01:39
2016-04-29T07:01:39
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
150
sce
Ex4_8.sce
errcatch(-1,"stop");mode(2);//Ex:4.8 ; ; V=240; c=100*10^-9; f=50; X_c=1/(2*%pi*f*c); I_c=V/X_c; printf("Current flow = %f A",I_c); exit();
977a929d0f9b1bbd35c02f60f41f24e0eefaeccf
449d555969bfd7befe906877abab098c6e63a0e8
/2153/CH9/EX9.1/ex_9_1.sce
70d9c75a5ac388bbbb633b2744751f297cba6f69
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
217
sce
ex_9_1.sce
//Example 9.1 : difference clc; clear; close; //given data : E=200*10^9; // in N/m^2 C=(4*10^-6)/2;// in m gama=1.48; // in J/m^2 sigma=sqrt((2*E*gama)/(%pi*C)); disp(sigma*10^-6,"fracture strength,sigma(MN/m^2) = ")
b558133addf1c66840692f6bae18f33b6594ab32
449d555969bfd7befe906877abab098c6e63a0e8
/2048/CH4/EX4.4/disc1.sce
456181fe18fd4dc736f2805c570c58e21ed35625
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
200
sce
disc1.sce
// Discrete transfer function of the continuous state space system // 4.4 F = [0 0; 1 -0.1]; G = [0.1; 0]; C = [0 1]; dt = 0.2; sys = syslin('c',F,G,C); sysd = dscr(sys,dt); H = ss2tf(sysd);
4dcbfdc34e83f5d266e6046b0d5b0b010a3dbd43
449d555969bfd7befe906877abab098c6e63a0e8
/3784/CH3/EX3.6/Ex3_6.sce
59935f183c95142073ae1d8d4fe965847aa7c3f5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
762
sce
Ex3_6.sce
clc // Variable Initiallization Ea=400 // Voltage Of MOtor In Volt Ia1=70 //Line Current In Ampere Ia2=90 //Line Current In Ampere Ra=0.3 //Armature Resistance In Ohm N1=750 //Speed Of Motor In rpm N2=300 //Speed Of Motor In rpm //Solution Eb1=Ea-(Ia1*Ra) Eb2=(N2/N1)*Eb1 Rb=-((Eb2-Ea-Ia2*Ra)/Ia2)//Wrongly calculated in book,wrong value of Eb2 is taken W1=(2*%pi*N1)/60 Kt1=Eb1/W1 T1=Kt1*Ia1 W2=(2*%pi*N2)/60 Kt2=Eb2/W2//Wrongly computed in textbook T2=Kt2*Ia2//The answer provided in the textbook is wrong printf('\n\n External resistance to be added=%0.1f ohm\n\n',Rb) printf('\n\n Initial braking torque=%0.1f N-m\n\n',T1) printf('\n\n braking torque at 300 rpm=%0.1f N-m\n\n',T2) //The answer provided in the textbook is wrong(both)
2eef9137787243cb1f765a3ca05841baf5ef6979
449d555969bfd7befe906877abab098c6e63a0e8
/3543/CH8/EX8.45/EX8_45.sce
9933c707b8ccbe6dcd7ecb901c09b4ea74106e3c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
647
sce
EX8_45.sce
// Example 8.45 // Calculation of incident optical power. // Page no 499 clc; clear; close; //Given data lambda=1.3*10^-6; // Wavelength B=6*10^6; // Bandwidth S=10^5; // Total system margin n=1; // Efficiency v=3*10^14; h=6.62*10^-34; // Planck constant // Incident optical power P=(2*S*v*h*B)/n; P1=10*log10(P/10^-3); //Displaying results in the command window printf("\n Incident optical power(in nW) = %0.1f ",P1); // The answers vary due to round off error
61cc67a2faf6aa2ec42e59b648ebcd32f12d6a95
449d555969bfd7befe906877abab098c6e63a0e8
/3204/CH2/EX2.11/Ex2_11.sce
dd52a1bf08d18dad28a1f994e999a95459f792c4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
676
sce
Ex2_11.sce
//Initilization of variables P=5000 //N lAB=5 //m lOB=1.443 // m alpha=30 //degree //angle made by force P with the beam //Calculations theta=atand(lOB/lAB) // degree // eq'n 1 Xa=(P*cosd(alpha)) //N //using eq'n 4 Ya=Xa*tand(theta) //N // from eq'n 3 & 4 Rb=P*sind(alpha)-Ya // N from eq'n 5// substuting value of Ya in eq'n 5 Ra=sqrt((Xa^2)+(Ya^2)) //N //Results clc printf('The X component of reaction at A is %f N \n',Xa) printf('The Y component of reaction at A is %f N \n',Ya) printf('The reaction at support A is %f N \n',Ra) printf('The reaction at support B is %f N \n',Rb) // The decimal point error might cause a small discrepancy in the answers
936ea1f50891d7850147298c21750aa6ae89af7b
449d555969bfd7befe906877abab098c6e63a0e8
/1118/CH20/EX20.6/eg20_6.sce
fd4bafcbeb7271afdd29f8fda35532bb7ef0702f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
344
sce
eg20_6.sce
clear; //clc(); z1=400; z2=600; zp=2000; ef1=100; ef2=(2/z1)*ef1/(1/z1 + 1/z2 + 1/zp); er1=ef2-ef1; printf("The voltage reflected in line1 is:%d kV\n",er1); ir1=round(er1)/z1; printf("The current reflected in line1 is:%.2f kV\n",ir1*1000); zp=1/(-(1/z1)-(1/z2)+(2/z1)); printf("The resistance at the junction is:%.0f Ohm",zp);
0a81493253aacaaa5ee606387997a68a724f8601
01ecab2f6eeeff384acae2c4861aa9ad1b3f6861
/prog_assembly/libs/scilab_code/target_program_ver02_gui.sce
7fd0aa504b11331f5d851ff3f9ee498bff74eac8
[]
no_license
jhasler/rasp30
9a7c2431d56c879a18b50c2d43e487d413ceccb0
3612de44eaa10babd7298d2e0a7cddf4a4b761f6
refs/heads/master
2023-05-25T08:21:31.003675
2023-05-11T16:19:59
2023-05-11T16:19:59
62,917,238
3
3
null
null
null
null
UTF-8
Scilab
false
false
94,240
sce
target_program_ver02_gui.sce
global file_name showprog; //get filename, path and extension [path,fname,extension] = fileparts(file_name); hid_dir = path + '.' + fname; //exec("~/rasp30/prog_assembly/libs/scilab_code/characterization/char_diodeADC.sce",-1); exec('~/rasp30/prog_assembly/libs/scilab_code/diodeADC_v2i.sce',-1); exec('~/rasp30/prog_assembly/libs/scilab_code/diodeADC_i2v.sce',-1); exec('~/rasp30/prog_assembly/libs/scilab_code/diodeADC_v2h.sce',-1); exec('~/rasp30/prog_assembly/libs/scilab_code/diodeADC_h2v.sce',-1); exec('~/rasp30/prog_assembly/libs/scilab_code/read_tar_pgm_result.sce',-1); target_list_info=fscanfMat(hid_dir+'/target_list'); n_target_tunnel_revtun=target_list_info(1,1); n_target_highaboveVt_swc=target_list_info(2,1); n_target_highaboveVt_ota=target_list_info(3,1); n_target_aboveVt_swc=target_list_info(4,1); n_target_aboveVt_ota=target_list_info(5,1); n_target_aboveVt_otaref=target_list_info(6,1); n_target_aboveVt_mite=target_list_info(7,1); n_target_aboveVt_dirswc=target_list_info(8,1); n_target_subVt_swc=target_list_info(9,1); n_target_subVt_ota=target_list_info(10,1); n_target_subVt_otaref=target_list_info(11,1); n_target_subVt_mite=target_list_info(12,1); n_target_subVt_dirswc=target_list_info(13,1); n_target_lowsubVt_swc=target_list_info(14,1); n_target_lowsubVt_ota=target_list_info(15,1); n_target_lowsubVt_otaref=target_list_info(16,1); n_target_lowsubVt_mite=target_list_info(17,1); n_target_lowsubVt_dirswc=target_list_info(18,1); kappa_constant=target_list_info(19,1); // Execute Assembly codes //if n_target_tunnel_revtun ~= 0 then // unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_tunnel_revtun"); // unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/tunnel_revtun_CAB.elf"); // unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_tunnel_revtun.hex"); // disp("tun, rev tun"); //end unix_w("sudo chmod 777 /dev/rasp30"); if n_target_highaboveVt_swc ~= 0 then disp("target_highaboveVt_swc"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_highaboveVt_swc"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_swc"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_highaboveVt_SWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_highaboveVt_swc_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_highaboveVt_swc"); // unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name /home/ubuntu/rasp30/prog_assembly/libs/lookup_tables/pulse_width_table_offset_d1o4"); // temp. should be corrected later!!!!!!!!!!!!!!! if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_highaboveVt_SWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_highaboveVt_swc_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_highaboveVt_swc"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_highaboveVt_SWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_highaboveVt_swc_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_highaboveVt_swc"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_highaboveVt_m_ave_04_SWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_highaboveVt_swc_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_highaboveVt_swc=fscanfMat(hid_dir+'/target_list_highaboveVt_swc'); info_name = "_highaboveVt_swc_"; info_win_num1 = 60; info_win_num2 = 61; info_win_num3 = 62; n_graph=n_target_highaboveVt_swc; m_graph=n_graph+2; clear target_list; target_list = target_l_highaboveVt_swc;kapa_constant_or_not=1/kappa_constant; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_aboveVt_swc ~= 0 then disp("target_aboveVt_swc"); // Check the size of switches and divide files n_temp = n_target_aboveVt_swc; maximum_swc_number = 100; number_of_switchfiles = int(n_target_aboveVt_swc/maximum_swc_number); if number_of_switchfiles < n_target_aboveVt_swc/maximum_swc_number then number_of_switchfiles = number_of_switchfiles + 1; end fd = mopen(hid_dir+'/target_info_aboveVt_swc','r'); clear switch_info_data; switch_info_data = [1:3]; str_temp = mgetstr(7,fd); for i=1:n_target_aboveVt_swc switch_info_data(i,1) = msscanf(mgetstr(7,fd),"%x"); switch_info_data(i,2) = msscanf(mgetstr(7,fd),"%x"); switch_info_data(i,3) = msscanf(mgetstr(7,fd),"%x"); dummy_scan = msscanf(mgetstr(7,fd),"%x"); dummy_scan = msscanf(mgetstr(7,fd),"%x"); end mclose(fd); k=1; for j=1:number_of_switchfiles if n_temp < maximum_swc_number then temp = ''; temp = temp + '0x' + string(sprintf('%4.4x', n_temp)) + ' '; for i=1:n_temp temp = temp + '0x' + string(sprintf('%4.4x', switch_info_data(k,1))) + ' 0x' + string(sprintf('%4.4x', switch_info_data(k,2))) + ' 0x' + string(sprintf('%4.4x', switch_info_data(k,3))) + ' 0x0000' + ' 0xffff '; k=k+1; end fd = mopen('target_info_aboveVt_swc_'+string(j),'wt'); mputl(temp, fd); mclose(fd); else temp = ''; temp = temp + '0x' + string(sprintf('%4.4x', maximum_swc_number)) + ' '; for i=1:maximum_swc_number temp = temp + '0x' + string(sprintf('%4.4x', switch_info_data(k,1))) + ' 0x' + string(sprintf('%4.4x', switch_info_data(k,2))) + ' 0x' + string(sprintf('%4.4x', switch_info_data(k,3))) + ' 0x0000' + ' 0xffff '; k=k+1; end fd = mopen('target_info_aboveVt_swc_'+string(j),'wt'); mputl(temp, fd); mclose(fd); end n_temp = n_temp - maximum_swc_number; end unix_g(' mv target_info_aboveVt_swc_* ' + hid_dir); // Execute Assembly codes for j=1:number_of_switchfiles while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_swc_"+string(j)); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_swc"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_aboveVt_SWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_swc_2_"+string(j)+".hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_swc_"+string(j)); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_aboveVt_SWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_swc_3_"+string(j)+".hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_swc_"+string(j)); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_aboveVt_SWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_swc_4_"+string(j)+".hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_swc_"+string(j)); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_aboveVt_m_ave_04_SWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_swc_5_"+string(j)+".hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); end // Read each file and make one file m=n_target_aboveVt_swc+2; n_temp = n_target_aboveVt_swc; k=3;; clear data; data = [1:m]; for l=1:number_of_switchfiles fd = mopen('data_aboveVt_swc_2_'+string(l)+'.hex','r'); str_temp = mgetstr(7,fd); j=1; while str_temp ~= "0xffff ", data(j,1) = msscanf(str_temp,"%x"); data(j,2) = data(j,2) + msscanf(mgetstr(7,fd),"%x"); k_temp=k; if n_temp < maximum_swc_number then for i=1:n_temp data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end else for i=1:maximum_swc_number data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end end str_temp = mgetstr(7,fd); j=j+1; end mclose(fd); k=k+maximum_swc_number; n_temp = n_temp - maximum_swc_number; end j=j-1; clear temp2_aboveVt_swc; temp2_aboveVt_swc=''; for i=1:j for k=1:m temp2_aboveVt_swc = temp2_aboveVt_swc + '0x' + string(sprintf('%4.4x', data(i,k))) + ' '; end end temp2_aboveVt_swc = temp2_aboveVt_swc + '0xffff ' fd = mopen('data_aboveVt_swc_2.hex','wt'); mputl(temp2_aboveVt_swc, fd); mclose(fd); m=n_target_aboveVt_swc+2; n_temp = n_target_aboveVt_swc; k=3;; clear data; data = [1:m]; for l=1:number_of_switchfiles fd = mopen('data_aboveVt_swc_3_'+string(l)+'.hex','r'); str_temp = mgetstr(7,fd); j=1; while str_temp ~= "0xffff ", data(j,1) = msscanf(str_temp,"%x"); data(j,2) = data(j,2) + msscanf(mgetstr(7,fd),"%x"); k_temp=k; if n_temp < maximum_swc_number then for i=1:n_temp data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end else for i=1:maximum_swc_number data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end end str_temp = mgetstr(7,fd); j=j+1; end mclose(fd); k=k+maximum_swc_number; n_temp = n_temp - maximum_swc_number; end j=j-1; clear temp2_aboveVt_swc; temp2_aboveVt_swc=''; for i=1:j for k=1:m temp2_aboveVt_swc = temp2_aboveVt_swc + '0x' + string(sprintf('%4.4x', data(i,k))) + ' '; end end temp2_aboveVt_swc = temp2_aboveVt_swc + '0xffff ' fd = mopen('data_aboveVt_swc_3.hex','wt'); mputl(temp2_aboveVt_swc, fd); mclose(fd); m=n_target_aboveVt_swc+2; n_temp = n_target_aboveVt_swc; k=3;; clear data; data = [1:m]; for l=1:number_of_switchfiles fd = mopen('data_aboveVt_swc_4_'+string(l)+'.hex','r'); str_temp = mgetstr(7,fd); j=1; while str_temp ~= "0xffff ", data(j,1) = msscanf(str_temp,"%x"); data(j,2) = data(j,2) + msscanf(mgetstr(7,fd),"%x"); k_temp=k; if n_temp < maximum_swc_number then for i=1:n_temp data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end else for i=1:maximum_swc_number data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end end str_temp = mgetstr(7,fd); j=j+1; end mclose(fd); k=k+maximum_swc_number; n_temp = n_temp - maximum_swc_number; end j=j-1; clear temp2_aboveVt_swc; temp2_aboveVt_swc=''; for i=1:j for k=1:m temp2_aboveVt_swc = temp2_aboveVt_swc + '0x' + string(sprintf('%4.4x', data(i,k))) + ' '; end end temp2_aboveVt_swc = temp2_aboveVt_swc + '0xffff ' fd = mopen('data_aboveVt_swc_4.hex','wt'); mputl(temp2_aboveVt_swc, fd); mclose(fd); m=n_target_aboveVt_swc+2; n_temp = n_target_aboveVt_swc; k=3;; clear data; data = [1:m]; for l=1:number_of_switchfiles fd = mopen('data_aboveVt_swc_5_'+string(l)+'.hex','r'); str_temp = mgetstr(7,fd); j=1; while str_temp ~= "0xffff ", data(j,1) = msscanf(str_temp,"%x"); data(j,2) = data(j,2) + msscanf(mgetstr(7,fd),"%x"); k_temp=k; if n_temp < maximum_swc_number then for i=1:n_temp data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end else for i=1:maximum_swc_number data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end end str_temp = mgetstr(7,fd); j=j+1; end mclose(fd); k=k+maximum_swc_number; n_temp = n_temp - maximum_swc_number; end j=j-1; clear temp2_aboveVt_swc; temp2_aboveVt_swc=''; for i=1:j for k=1:m temp2_aboveVt_swc = temp2_aboveVt_swc + '0x' + string(sprintf('%4.4x', data(i,k))) + ' '; end end temp2_aboveVt_swc = temp2_aboveVt_swc + '0xffff ' fd = mopen('data_aboveVt_swc_5.hex','wt'); mputl(temp2_aboveVt_swc, fd); mclose(fd); disp("fine inj"); target_l_aboveVt_swc=fscanfMat(hid_dir+'/target_list_aboveVt_swc'); info_name = "_aboveVt_swc_"; info_win_num1 = 10; info_win_num2 = 11; info_win_num3 = 12; n_graph=n_target_aboveVt_swc; m_graph=n_graph+2; clear target_list; target_list = target_l_aboveVt_swc;kapa_constant_or_not=1; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_subVt_swc ~= 0 then disp("target_subVt_swc"); // Check the size of switches and divide files n_temp = n_target_subVt_swc; maximum_swc_number = 100; number_of_switchfiles = int(n_target_subVt_swc/maximum_swc_number); if number_of_switchfiles < n_target_subVt_swc/maximum_swc_number then number_of_switchfiles = number_of_switchfiles + 1; end fd = mopen(hid_dir+'/target_info_subVt_swc','r'); clear switch_info_data; switch_info_data = [1:3]; str_temp = mgetstr(7,fd); for i=1:n_target_subVt_swc switch_info_data(i,1) = msscanf(mgetstr(7,fd),"%x"); switch_info_data(i,2) = msscanf(mgetstr(7,fd),"%x"); switch_info_data(i,3) = msscanf(mgetstr(7,fd),"%x"); dummy_scan = msscanf(mgetstr(7,fd),"%x"); dummy_scan = msscanf(mgetstr(7,fd),"%x"); end mclose(fd); k=1; for j=1:number_of_switchfiles if n_temp < maximum_swc_number then temp = ''; temp = temp + '0x' + string(sprintf('%4.4x', n_temp)) + ' '; for i=1:n_temp temp = temp + '0x' + string(sprintf('%4.4x', switch_info_data(k,1))) + ' 0x' + string(sprintf('%4.4x', switch_info_data(k,2))) + ' 0x' + string(sprintf('%4.4x', switch_info_data(k,3))) + ' 0x0000' + ' 0xffff '; k=k+1; end fd = mopen('target_info_subVt_swc_'+string(j),'wt'); mputl(temp, fd); mclose(fd); else temp = ''; temp = temp + '0x' + string(sprintf('%4.4x', maximum_swc_number)) + ' '; for i=1:maximum_swc_number temp = temp + '0x' + string(sprintf('%4.4x', switch_info_data(k,1))) + ' 0x' + string(sprintf('%4.4x', switch_info_data(k,2))) + ' 0x' + string(sprintf('%4.4x', switch_info_data(k,3))) + ' 0x0000' + ' 0xffff '; k=k+1; end fd = mopen('target_info_subVt_swc_'+string(j),'wt'); mputl(temp, fd); mclose(fd); end n_temp = n_temp - maximum_swc_number; end unix_g(' mv target_info_subVt_swc_* ' + hid_dir); // Execute Assembly codes for j=1:number_of_switchfiles while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_swc_"+string(j)); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_swc"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_subVt_SWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_swc_2_"+string(j)+".hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_swc_"+string(j)); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_subVt_SWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_swc_3_"+string(j)+".hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_swc_"+string(j)); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_subVt_SWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_swc_4_"+string(j)+".hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_swc_"+string(j)); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_subVt_m_ave_04_SWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_swc_5_"+string(j)+".hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); end // Read each file and make one file m=n_target_subVt_swc+2; n_temp = n_target_subVt_swc; k=3;; clear data; data = [1:m]; for l=1:number_of_switchfiles fd = mopen('data_subVt_swc_2_'+string(l)+'.hex','r'); str_temp = mgetstr(7,fd); j=1; while str_temp ~= "0xffff ", data(j,1) = msscanf(str_temp,"%x"); data(j,2) = data(j,2) + msscanf(mgetstr(7,fd),"%x"); k_temp=k; if n_temp < maximum_swc_number then for i=1:n_temp data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end else for i=1:maximum_swc_number data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end end str_temp = mgetstr(7,fd); j=j+1; end mclose(fd); k=k+maximum_swc_number; n_temp = n_temp - maximum_swc_number; end j=j-1; clear temp2_subVt_swc; temp2_subVt_swc=''; for i=1:j for k=1:m temp2_subVt_swc = temp2_subVt_swc + '0x' + string(sprintf('%4.4x', data(i,k))) + ' '; end end temp2_subVt_swc = temp2_subVt_swc + '0xffff ' fd = mopen('data_subVt_swc_2.hex','wt'); mputl(temp2_subVt_swc, fd); mclose(fd); m=n_target_subVt_swc+2; n_temp = n_target_subVt_swc; k=3;; clear data; data = [1:m]; for l=1:number_of_switchfiles fd = mopen('data_subVt_swc_3_'+string(l)+'.hex','r'); str_temp = mgetstr(7,fd); j=1; while str_temp ~= "0xffff ", data(j,1) = msscanf(str_temp,"%x"); data(j,2) = data(j,2) + msscanf(mgetstr(7,fd),"%x"); k_temp=k; if n_temp < maximum_swc_number then for i=1:n_temp data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end else for i=1:maximum_swc_number data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end end str_temp = mgetstr(7,fd); j=j+1; end mclose(fd); k=k+maximum_swc_number; n_temp = n_temp - maximum_swc_number; end j=j-1; clear temp2_subVt_swc; temp2_subVt_swc=''; for i=1:j for k=1:m temp2_subVt_swc = temp2_subVt_swc + '0x' + string(sprintf('%4.4x', data(i,k))) + ' '; end end temp2_subVt_swc = temp2_subVt_swc + '0xffff ' fd = mopen('data_subVt_swc_3.hex','wt'); mputl(temp2_subVt_swc, fd); mclose(fd); m=n_target_subVt_swc+2; n_temp = n_target_subVt_swc; k=3;; clear data; data = [1:m]; for l=1:number_of_switchfiles fd = mopen('data_subVt_swc_4_'+string(l)+'.hex','r'); str_temp = mgetstr(7,fd); j=1; while str_temp ~= "0xffff ", data(j,1) = msscanf(str_temp,"%x"); data(j,2) = data(j,2) + msscanf(mgetstr(7,fd),"%x"); k_temp=k; if n_temp < maximum_swc_number then for i=1:n_temp data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end else for i=1:maximum_swc_number data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end end str_temp = mgetstr(7,fd); j=j+1; end mclose(fd); k=k+maximum_swc_number; n_temp = n_temp - maximum_swc_number; end j=j-1; clear temp2_subVt_swc; temp2_subVt_swc=''; for i=1:j for k=1:m temp2_subVt_swc = temp2_subVt_swc + '0x' + string(sprintf('%4.4x', data(i,k))) + ' '; end end temp2_subVt_swc = temp2_subVt_swc + '0xffff ' fd = mopen('data_subVt_swc_4.hex','wt'); mputl(temp2_subVt_swc, fd); mclose(fd); m=n_target_subVt_swc+2; n_temp = n_target_subVt_swc; k=3;; clear data; data = [1:m]; for l=1:number_of_switchfiles fd = mopen('data_subVt_swc_5_'+string(l)+'.hex','r'); str_temp = mgetstr(7,fd); j=1; while str_temp ~= "0xffff ", data(j,1) = msscanf(str_temp,"%x"); data(j,2) = data(j,2) + msscanf(mgetstr(7,fd),"%x"); k_temp=k; if n_temp < maximum_swc_number then for i=1:n_temp data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end else for i=1:maximum_swc_number data(j,k_temp) = msscanf(mgetstr(7,fd),"%x"); k_temp=k_temp+1; end end str_temp = mgetstr(7,fd); j=j+1; end mclose(fd); k=k+maximum_swc_number; n_temp = n_temp - maximum_swc_number; end j=j-1; clear temp2_subVt_swc; temp2_subVt_swc=''; for i=1:j for k=1:m temp2_subVt_swc = temp2_subVt_swc + '0x' + string(sprintf('%4.4x', data(i,k))) + ' '; end end temp2_subVt_swc = temp2_subVt_swc + '0xffff ' fd = mopen('data_subVt_swc_5.hex','wt'); mputl(temp2_subVt_swc, fd); mclose(fd); disp("fine inj"); target_l_subVt_swc=fscanfMat(hid_dir+'/target_list_subVt_swc'); info_name = "_subVt_swc_"; info_win_num1 = 13; info_win_num2 = 14; info_win_num3 = 15; n_graph=n_target_subVt_swc; m_graph=n_graph+2; clear target_list; target_list = target_l_subVt_swc;kapa_constant_or_not=1; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_lowsubVt_swc ~= 0 then disp("target_lowsubVt_swc"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_swc"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_lowsubVt_swc"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_lowsubVt_SWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_swc_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_swc"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_lowsubVt_SWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_swc_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_swc"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_lowsubVt_SWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_swc_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_swc"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_lowsubVt_m_ave_04_SWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_swc_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_lowsubVt_swc=fscanfMat(hid_dir+'/target_list_lowsubVt_swc'); info_name = "_lowsubVt_swc_"; info_win_num1 = 16; info_win_num2 = 17; info_win_num3 = 18; n_graph=n_target_lowsubVt_swc; m_graph=n_graph+2; clear target_list; target_list = target_l_lowsubVt_swc;kapa_constant_or_not = kappa_constant; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_highaboveVt_ota ~= 0 then disp("target_highaboveVt_ota"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_highaboveVt_ota"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_ota"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_highaboveVt_CAB_ota.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_highaboveVt_ota_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_highaboveVt_ota"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_highaboveVt_CAB_ota.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_highaboveVt_ota_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_highaboveVt_ota"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_highaboveVt_CAB_ota.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_highaboveVt_ota_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_highaboveVt_ota"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_highaboveVt_m_ave_04_CAB_ota.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_highaboveVt_ota_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_highaboveVt_ota=fscanfMat(hid_dir+'/target_list_highaboveVt_ota'); info_name = "_highaboveVt_ota_"; info_win_num1 = 70; info_win_num2 = 71; info_win_num3 = 72; n_graph=n_target_highaboveVt_ota; m_graph=n_graph+2; clear target_list; target_list = target_l_highaboveVt_ota;kapa_constant_or_not = 1/kappa_constant; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_aboveVt_ota ~= 0 then disp("target_aboveVt_ota"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_ota"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_ota"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_aboveVt_CAB_ota.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_ota_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_ota"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_aboveVt_CAB_ota.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_ota_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_ota"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_aboveVt_CAB_ota.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_ota_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_ota"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_aboveVt_m_ave_04_CAB_ota.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_ota_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_aboveVt_ota=fscanfMat(hid_dir+'/target_list_aboveVt_ota'); info_name = "_aboveVt_ota_"; info_win_num1 = 20; info_win_num2 = 21; info_win_num3 = 22; n_graph=n_target_aboveVt_ota; m_graph=n_graph+2; clear target_list; target_list = target_l_aboveVt_ota;kapa_constant_or_not=1; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_subVt_ota ~= 0 then disp("target_subVt_ota"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_ota"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_ota"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_subVt_CAB_ota.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_ota_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_ota"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_subVt_CAB_ota.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_ota_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_ota"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_subVt_CAB_ota.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_ota_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_ota"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_subVt_m_ave_04_CAB_ota.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_ota_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_subVt_ota=fscanfMat(hid_dir+'/target_list_subVt_ota'); info_name = "_subVt_ota_"; info_win_num1 = 23; info_win_num2 = 24; info_win_num3 = 25; n_graph=n_target_subVt_ota; m_graph=n_graph+2; clear target_list; target_list = target_l_subVt_ota;kapa_constant_or_not=1; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_lowsubVt_ota ~= 0 then disp("target_lowsubVt_ota"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_ota"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_lowsubVt_ota"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_lowsubVt_CAB_ota.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_ota_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_ota"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_lowsubVt_CAB_ota.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_ota_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_ota"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_lowsubVt_CAB_ota.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_ota_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_ota"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_lowsubVt_m_ave_04_CAB_ota.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_ota_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_lowsubVt_ota=fscanfMat(hid_dir+'/target_list_lowsubVt_ota'); info_name = "_lowsubVt_ota_"; info_win_num1 = 26; info_win_num2 = 27; info_win_num3 = 28; n_graph=n_target_lowsubVt_ota; m_graph=n_graph+2; clear target_list; target_list = target_l_lowsubVt_ota;kapa_constant_or_not = kappa_constant; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_aboveVt_otaref ~= 0 then disp("target_aboveVt_otaref"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_otaref"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_otaref"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_aboveVt_CAB_ota_ref.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_otaref_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_otaref"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_aboveVt_CAB_ota_ref.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_otaref_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_otaref"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_aboveVt_CAB_ota_ref.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_otaref_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_otaref"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_aboveVt_m_ave_04_CAB_ota_ref.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_otaref_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_aboveVt_otaref=fscanfMat(hid_dir+'/target_list_aboveVt_otaref'); info_name = "_aboveVt_otaref_"; info_win_num1 = 30; info_win_num2 = 31; info_win_num3 = 32; n_graph=n_target_aboveVt_otaref; m_graph=n_graph+2; clear target_list; target_list = target_l_aboveVt_otaref;kapa_constant_or_not=1; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_subVt_otaref ~= 0 then disp("target_subVt_otaref"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_otaref"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_otaref"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_subVt_CAB_ota_ref.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_otaref_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_otaref"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_subVt_CAB_ota_ref.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_otaref_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_otaref"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_subVt_CAB_ota_ref.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_otaref_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_otaref"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_subVt_m_ave_04_CAB_ota_ref.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_otaref_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_subVt_otaref=fscanfMat(hid_dir+'/target_list_subVt_otaref'); info_name = "_subVt_otaref_"; info_win_num1 = 33; info_win_num2 = 34; info_win_num3 = 35; n_graph=n_target_subVt_otaref; m_graph=n_graph+2; clear target_list; target_list = target_l_subVt_otaref;kapa_constant_or_not=1; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_lowsubVt_otaref ~= 0 then disp("target_lowsubVt_otaref"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_otaref"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_lowsubVt_otaref"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_lowsubVt_CAB_ota_ref.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_otaref_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_otaref"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_lowsubVt_CAB_ota_ref.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_otaref_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_otaref"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_lowsubVt_CAB_ota_ref.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_otaref_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_otaref"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_lowsubVt_m_ave_04_CAB_ota_ref.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_otaref_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_lowsubVt_otaref=fscanfMat(hid_dir+'/target_list_lowsubVt_otaref'); info_name = "_lowsubVt_otaref_"; info_win_num1 = 36; info_win_num2 = 37; info_win_num3 = 38; n_graph=n_target_lowsubVt_otaref; m_graph=n_graph+2; clear target_list; target_list = target_l_lowsubVt_otaref; kapa_constant_or_not = kappa_constant; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_aboveVt_mite ~= 0 then disp("target_aboveVt_mite"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_mite"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_mite"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_aboveVt_CAB_mite.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_mite_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_mite"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_aboveVt_CAB_mite.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_mite_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_mite"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_aboveVt_CAB_mite.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_mite_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_mite"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_aboveVt_m_ave_04_CAB_mite.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_mite_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_aboveVt_mite=fscanfMat(hid_dir+'/target_list_aboveVt_mite'); info_name = "_aboveVt_mite_"; info_win_num1 = 40; info_win_num2 = 41; info_win_num3 = 42; n_graph=n_target_aboveVt_mite; m_graph=n_graph+2; clear target_list; target_list = target_l_aboveVt_mite;kapa_constant_or_not=1; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_subVt_mite ~= 0 then disp("target_subVt_mite"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_mite"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_mite"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_subVt_CAB_mite.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_mite_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_mite"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_subVt_CAB_mite.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_mite_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_mite"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_subVt_CAB_mite.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_mite_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_mite"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_subVt_m_ave_04_CAB_mite.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_mite_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_subVt_mite=fscanfMat(hid_dir+'/target_list_subVt_mite'); info_name = "_subVt_mite_"; info_win_num1 = 43; info_win_num2 = 44; info_win_num3 = 45; n_graph=n_target_subVt_mite; m_graph=n_graph+2; clear target_list; target_list = target_l_subVt_mite;kapa_constant_or_not=1; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_lowsubVt_mite ~= 0 then disp("target_lowsubVt_mite"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_mite"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_lowsubVt_mite"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_lowsubVt_CAB_mite.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_mite_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_mite"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_lowsubVt_CAB_mite.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_mite_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_mite"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_lowsubVt_CAB_mite.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_mite_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_mite"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_lowsubVt_m_ave_04_CAB_mite.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_mite_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_lowsubVt_mite=fscanfMat(hid_dir+'/target_list_lowsubVt_mite'); info_name = "_lowsubVt_mite_"; info_win_num1 = 46; info_win_num2 = 47; info_win_num3 = 48; n_graph=n_target_lowsubVt_mite; m_graph=n_graph+2; clear target_list; target_list = target_l_lowsubVt_mite;kapa_constant_or_not = kappa_constant; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_aboveVt_dirswc ~= 0 then disp("target_aboveVt_dirswc"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_dirswc"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_dirswc"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_aboveVt_DIRSWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_dirswc_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_dirswc"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_aboveVt_DIRSWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_dirswc_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_dirswc"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_aboveVt_DIRSWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_dirswc_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_aboveVt_dirswc"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_aboveVt_m_ave_04_DIRSWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_aboveVt_dirswc_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_aboveVt_dirswc=fscanfMat(hid_dir+'/target_list_aboveVt_dirswc'); info_name = "_aboveVt_dirswc_"; info_win_num1 = 50; info_win_num2 = 51; info_win_num3 = 52; n_graph=n_target_aboveVt_dirswc; m_graph=n_graph+2; clear target_list; target_list = target_l_aboveVt_dirswc;kapa_constant_or_not=1; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_subVt_dirswc ~= 0 then disp("target_subVt_dirswc"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_dirswc"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_dirswc"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_subVt_DIRSWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_dirswc_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_dirswc"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_subVt_DIRSWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_dirswc_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_dirswc"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_subVt_DIRSWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_dirswc_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_subVt_dirswc"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_subVt_m_ave_04_DIRSWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_subVt_dirswc_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_subVt_dirswc=fscanfMat(hid_dir+'/target_list_subVt_dirswc'); info_name = "_subVt_dirswc_"; info_win_num1 = 53; info_win_num2 = 54; info_win_num3 = 55; n_graph=n_target_subVt_dirswc; m_graph=n_graph+2; clear target_list; target_list = target_l_subVt_dirswc;kapa_constant_or_not=1; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end if n_target_lowsubVt_dirswc ~= 0 then disp("target_lowsubVt_dirswc"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_dirswc"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/pulse_width_table_lowsubVt_dirswc"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/recover_inject_lowsubVt_DIRSWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_dirswc_2.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("recover inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_dirswc"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/first_coarse_program_lowsubVt_DIRSWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_dirswc_3.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("first coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_dirswc"); if (b1==0) then [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/measured_coarse_program_lowsubVt_DIRSWC.elf"); [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_dirswc_4.hex"); end if (b1==0) & (b2==0) & (b3==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end disp("measured coarse inj"); while 1==1, [a1,b1]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x7000 -input_file_name "+hid_dir+"/target_info_lowsubVt_dirswc"); [a2,b2]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x6800 -input_file_name "+hid_dir+"/Vd_table_30mV"); if (b1==0) & (b2==0) then [a3,b3]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -speed 115200 "+hid_dir+"/fine_program_lowsubVt_m_ave_04_DIRSWC.elf"); [a4,b4]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x5000 -length 7000 -output_file_name data_lowsubVt_dirswc_5.hex"); end if (b1==0) & (b2==0) & (b3==0) & (b4==0) then break end // 0 if no error occurred, 1 if error. if (b1==1) | (b2==1) | (b3==1) | (b4==1) then disp("connection issue -> it is trying again"); unix_w('/home/ubuntu/rasp30/sci2blif/usbreset'); sleep(2000); end end //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x7002 -length 220 -output_file_name temp_1.txt"); //unix_w("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/read_mem2_NoRelease.tcl -start_address 0x6800 -length 220 -output_file_name temp_2.txt"); disp("fine inj"); target_l_lowsubVt_dirswc=fscanfMat(hid_dir+'/target_list_lowsubVt_dirswc'); info_name = "_lowsubVt_dirswc_"; info_win_num1 = 56; info_win_num2 = 57; info_win_num3 = 58; n_graph=n_target_lowsubVt_dirswc; m_graph=n_graph+2; clear target_list; target_list = target_l_lowsubVt_dirswc;kapa_constant_or_not = kappa_constant; exec("~/rasp30/prog_assembly/libs/scilab_code/target_program_graph.sce",-1); end unix_g(' mv *.hex *.data ' + hid_dir);
28522812476b7d33da44dbb2d3b5d88bfbbe0312
449d555969bfd7befe906877abab098c6e63a0e8
/1553/CH6/EX6.12/6Ex12.sce
7b24fbe55b05814dd8cd795bcd244a482b85f089
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
187
sce
6Ex12.sce
//chapter 6 Ex 12 clc; clear; close; n=10; inc=1.8; weightreplaced=53; totalinc=n*inc; weightNew=weightreplaced+totalinc; mprintf("The weight of new man is %d kg.",weightNew);
50b55a1867f7d7acb1b40fbb35da52ba01fc3b62
449d555969bfd7befe906877abab098c6e63a0e8
/1092/CH4/EX4.7/Example4_7.sce
30ba7663f4b966eec49eb24ee98a50843ebeab73
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,024
sce
Example4_7.sce
// Electric Machinery and Transformers // Irving L kosow // Prentice Hall of India // 2nd editiom // Chapter 4: DC Dynamo Torque Relations-DC Motors // Example 4-7 clear; clc; close; // Clear the work space and console. // Given data R_a = 0.25 ; // Armature resistance in ohm BD = 3 ; // Brush contact drop in volt V = 120 ; // Applied voltage in volt E_a = 110 ; // EMF in volt at a given load E_b = 105 ; // EMF in volt due to application of extra load // Calculations I_a_a = ( V - ( E_a + BD ) ) / R_a ; // Armature current for E_a I_a_b = ( V - ( E_b + BD ) ) / R_a ; // Armature current for E_b del_E = ( ( E_a - E_b ) / E_a ) * 100 ; // % change in counter EMF del_I = ( ( I_a_a - I_a_b ) / I_a_a ) * 100 ; // % change in armature current // Display the result disp("Example 4-7 Solution : ") printf("\n a : Ia = %d A " , I_a_a ); printf("\n b : At increased load \n Ia = %d A " , I_a_b ); printf("\n c : del_Ec = %.2f percent \n del_Ia = %.2f percent " , del_E , del_I);
b8eecc00b59980b0d9c72e82a97a9bbb039f553b
449d555969bfd7befe906877abab098c6e63a0e8
/443/CH17/EX17.16/17_16.sce
87881e21962c6fddab9dfec041635c8c26966da1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
695
sce
17_16.sce
pathname=get_absolute_file_path('17_16.sce') filename=pathname+filesep()+'17_16_data.sci' exec(filename) //Swept Volume(in cc) Vs=0.25*%pi*D^2*L //Volume of gas in the cylinder(in cc/cycle) V1=(1/(1+AF))*(Vs+(Vs/(r-1))) //Volume of gas at NTP conditions(in cc) V=V1*(p2/p)*(T/T2) //Heat added(in kJ/cycle) H=V*10^-6*CV //Indicated power(in kW) ip=(pim*10^5*Vs*10^-6*0.5*N)/60000 //Indicated thermal efficiency nith=(ip*120)/(H*N) //Air standard efficiency nas=1-(1/r^(y-1)) //Reslative efficiency nrel=nith/nas*100 printf("\n\nRESULTS\n\n") printf("\nIndicated power:%f\n",ip) printf("\nIndicated thermal efficiency:%f\n",nith*100) printf("\nRelative efficiency:%f\n",nrel)
09844b12212b0b9a4e39ecb6a71f1323a4ab645e
449d555969bfd7befe906877abab098c6e63a0e8
/2300/CH3/EX3.11.6/Ex3_6.sce
baab72d4bee55f7a7a7abc9f9768f631042318f5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
585
sce
Ex3_6.sce
//scilab 5.4.1 //windows 7 operating system //chapter 3:Properties of Semiconductors clc clear //given ni=2.5*10^(19);//ni=intrinsic conductivity of intrinsic material in S/m Nd=5*(10^19)//Nd=donor concentration in /(m^3) n=(1/2)*(Nd+sqrt((Nd^2)+(4*(ni^2))))//n=electron concentration disp("/(m^3)",n,"n=") p=(ni^2)/n//p=hole concentration disp("/(m^3)",p,"p=") N=0.38//N=electron mobility in (m^2)/(V.s) P=0.18//P=hole mobility in (m^2)/(V.s) e=1.6*(10^-19)//e=electronic charge in Coulomb Z=e*((n*N)+(p*P))//Z=conductivity of doped sample in S/m disp("S/m",Z,"Z=")
7d824b2548a069c37bcd674462a5a54584518ed5
449d555969bfd7befe906877abab098c6e63a0e8
/3480/CH3/EX3.1/Ex3_1.sce
8b44b9727df87577090f8e7a3aec9b12e0a120ca
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
136
sce
Ex3_1.sce
//Example 3.1, page 69 clc; n1=1.5 r=1//in cm n=1//in cm a=4//in cm, air s=.5-(1/a) s1=n1/s printf("\n The image is formed at %d cm",s1)
f76104503ffa56e9ab04350d4027ab9e854ec73c
449d555969bfd7befe906877abab098c6e63a0e8
/2273/CH6/EX6.14/ex6_14.sce
a6f1488f861c1c10cee056e0e682a1472f7f3e9d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,445
sce
ex6_14.sce
//Determine recieving end voltage and current clear; clc; //soltion //FUNCTIONS function [z]=rxr(A,B)//Function for the multiplication of rectangular z(1)=A(1)*B(1) z(2)=A(2)+B(2) endfunction function [a]=r2p(z)//Function for rectangular to polar a=z(1)*complex(cosd(z(2)),sind(z(2))) endfunction function [v]=p2r(q)//Function for polar to rectangular v(1)=abs(q) v(2)=atand(imag(q)/real(q)) endfunction //given P=60*10^6;//MW Vsl=220*1000;//V Vs=Vsl/sqrt(3); pf=0.8//power factir Z=[200 80]; Y=[0.0013 90]; YZ=rxr(Z,Y); Y2Z2=rxr(YZ,YZ); A_=1+(r2p(YZ))/2+(r2p(Y2Z2))/24; A=p2r(A_); printf("A = D = %.3f∠%.3f°\n",A(1),A(2)); P_=(1+(r2p(YZ))/6+(r2p(Y2Z2))/120); B=rxr(Z,p2r(P_));//IN BOOK IT'S 1941.56 DUE TO TYPOLOGICAL ERROR printf("B= %.2f∠%.2f° ohm\n",B(1),B(2)); D=A; Vr_=poly(0, 'Vr'); Ir=[P/(3*pf) -acosd(pf)]; C1=A(1);//constant of A*Vr C2=B(1)*Ir(1);//constant of B*I BI_ang=B(2)+Ir(2);//angle between B and I BI= C2*(cosd(BI_ang)+%i*sind(BI_ang)); AV= C1*(cosd(1.41)+%i*sind(1.41));//1.41= Angle between A and V com=numer(((real(AV)*Vr_+real(BI)/Vr_)^2+(imag(AV)*Vr_+imag(BI)/Vr_)^2-Vs^2));//considering only numerator part Vr=roots(com); Vr1=99746;//by selecting the positive value & near to sending end voltage Vrl=sqrt(3)*Vr1/1000; printf("Receiving end line voltage= %.2f kV\n",Vrl); Irl=Ir(1)/Vr1; printf("Receiving end line current= %.0f A",Irl);
e6b9ef9736c8367b71df49a415d4be8420baae40
449d555969bfd7befe906877abab098c6e63a0e8
/2354/CH18/EX18.9/18_9.sce
7b24a3cbca868a6b9d8b8ddce2bc077672773778
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
492
sce
18_9.sce
//example 18.9 clc; funcprot(0); // Initialization of Variable sigma=5.67e-8; D1=0.02; D2=0.05; D3=0.035; pi=3.14; T1=77; T2=300; qwo=(sigma*pi*D1*(T1^4-T2^4))/(1/0.02+(1-0.05)/0.05*(D1/D2)); disp(qwo,"heat rate per unit length in W/m"); Rtot=(1-0.02)/(0.02*pi*D1)+1/pi/D1+2*(1-0.02/(0.02*pi*D3)+1/pi/0.035+(1-0.05)/pi/D2^2); qw=sigma*(T1^4-T2^4)/1817; disp(qw,"heat rate of radiation in W/m"); k=(qw-qwo)/qwo*100; disp(k,"percentage change of heat transfer in %"); clear()
2755cf771c95dcba821393f4e97eb7c10bc3f3e4
449d555969bfd7befe906877abab098c6e63a0e8
/431/CH3/EX3.28/EX3_28.sce
9b2675bd1e5cd653ae181aa76db770350bfe4732
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
920
sce
EX3_28.sce
//Calculate efficiency of transformer //Chapter 3 //Example 3.29 //page 236 clear; clc; disp("Example 3.29") kVA=50; //rating of the transformers I1=250; //primary current in amperes Re=0.006; //total resistance referred to the primary side ironloss=200; //iron loss in watt Culoss=(I1^2*Re); //copper loss in watt pf=0.8; //power factor lagging printf("Full-load copper loss=%fW",Culoss); TL1=((Culoss+ironloss)/1000); printf("\nTotal loss on full load=%fkW",TL1); TL2=((((Culoss*(1/2)^2))+ironloss)/1000) printf("\nTotal loss on half load=%fkW",TL2); effi1=(kVA*pf*100)/((kVA*pf)+TL1); printf("\nEfficiency at full load,0.8 power factor lagging=%f percent",effi1) effi2=((kVA/2)*pf*100)/(((kVA/2)*pf)+TL2); printf("\nEfficiency at half load,0.8 power factor lagging=%f percent",effi2)
c390e0f1224e22470828ecede2b38c244d9f0bc4
97135f725c599527ba0fd95a5289373c755daf3b
/Examples/test-suite/scilab/abstract_typedef2_runme.sci
afe67ed5e02bed629e537a31a55169d671fb13c0
[]
no_license
maqalaqil/swag-c-
b8880cfc92424d5bbca1fe15ed98663a41063f27
6fd1ba2bf1d353f24c116a3c89a8540292b86a7d
refs/heads/master
2020-07-06T21:02:08.949652
2019-09-01T07:56:55
2019-09-01T07:56:55
203,137,066
0
0
null
null
null
null
UTF-8
Scilab
false
false
176
sci
abstract_typedef2_runme.sci
exec("alaqiltest.start", -1); try a = new_A_UF(); catch alaqiltesterror(); end try delete_A_UF(a); catch alaqiltesterror(); end exec("alaqiltest.quit", -1);
91d6facf414f1c58fe926b735aec846651424baa
449d555969bfd7befe906877abab098c6e63a0e8
/1919/CH9/EX9.5/Ex9_5.sce
82aa4fbd8bfa75ff90cc4f1372ae4b07bdbe0b88
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,681
sce
Ex9_5.sce
// Theory and Problems of Thermodynamics // Chapter 9 // Air_water Vapor Mixtures // Example 5 clear ;clc; //Given data V = 1 // volume of tank in m^3 P1 = 0.1 // pressure of tank with He in MPa T1 = 300 // temperature of tank with He in K P2 = 0.4 // pressure of tank with CO2 in MPa T2 = 600 // temperature of tank with CO2 in K Pf = 0.4 // pressure of tank after Co2 enters in MPa Cv1 = 12.4717 // molar heat capacity of He in kJ/kmol K Cv2 = 28.8354 // molar heat capacity of CO2 in kJ/kmol K Cp2 = 37.1444 // molar heat capacity of CO2 in kJ/kmol K R = 8.314 // gas constant // Calculations // N2*h = Uf-U0 (A)// First law of thermodynamics of transient flow // U0 = N1*Cv1*T1 U0 = P1*1e3*V*Cv1/(R) // in kJ // Uf = (N1*Cv1 + N2*Cv2) * Tf //Tf = Pf*V/((N1+N2)*R) N1 = P1*1e3*V/(R*T1) // Uf = (N1*Cv1 + N2*Cv2) * Pf*V/((N1+N2)*R) // N2*h = (N1*Cv1 + N2*Cv2) * Pf*V/((N1+N2)*R) - U0 // to determine the number of moles of CO2 deff('y=moles(N2)', 'y = N2*Cp2*T2 - ((N1*Cv1 + N2*Cv2) * Pf*1e3*V/((N1+N2)*R)) + U0') N2 = fsolve(0.1,moles) Tf = Pf*1e3*V/((N1+N2)*R) // Final temperature of mixture in tank X2 = N2/(N1+N2) // molefraction of CO2 X1 = 1 - X2 // molefraction of He // Output Results mprintf('Final temperature of mixture in tank = %4.2f K' , Tf); mprintf('\n The amount of CO2 enters the tank = %4.4f kmol' , N2); mprintf('\n Composition of CO2 in mixture = %4.4f ' , X2); mprintf('\n Composition of He in mixture = %4.4f ' , X1);
3ac505e984826966d74f8cc1531b1ab06c66419d
449d555969bfd7befe906877abab098c6e63a0e8
/154/DEPENDENCIES/ch9_7.sce
fe7c0cf199934a0e36a01a6f7883e846e4a4b30a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
687
sce
ch9_7.sce
clc disp("Example 9.7") printf("\n") printf("Given") disp("Resistance is 10ohm and Capacitance is 0.2F") disp("Applied voltage is 10*exp(-2*t)*cos(10*t+30)") s=%s; //For a RC circuit //Applying KVL equation //v=i*R+(1/C)*integrate(i*dt) (1) //As v=10(30 deg) (2) //Equating (1) and (2) // Let i=I*exp(s*t) (3) // 10(30 deg)*exp(s*t)=10*I*exp(s*t)+(5/s)*I*exp(s*t)") //Solving for I disp("I=10(30 deg)/10+(5/s)") s=-2+%i*10 a=10+(5/s) x=10*cos((30*%pi)/180); y=10*sin((30*%pi)/180); z=complex(x,y) I=z/a b=real(I); c=imag(I); magn=sqrt(b^2+c^2) ph=(atan(c/b)*180)/%pi //From (3) printf("\ni=%0.2f*exp(-2*t)*cos(10t+%3.1f deg) (A)\n",magn,ph);
856e3665813191199a490e03e37d01e72b15893e
449d555969bfd7befe906877abab098c6e63a0e8
/1793/CH6/EX6.2/6q2.sce
d91e18f16e446f430b2187972fada97aa2f0e85b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
301
sce
6q2.sce
clc //initialisation of variables G= 2.6 LL= 20 P= 20 //calclations R= (4804574*G-195.55*(LL)^2+156971*(P)^0.5-9527830)^0.5 n= (1.195e-4)*((LL)^2)-1.964*G-(6.617e-5)*(P)+7.651 w= %e^n //results printf ('maximum dry density = % f kg/m^3 ',R) printf ('optimum moisture content = % 2f ',w)
a9e387e8b88d44cdbd50f4be7f9ed55deefb9d29
449d555969bfd7befe906877abab098c6e63a0e8
/2870/CH9/EX9.6/Ex9_6.sce
a520763e99043af8977ebe1b4a46ea83617f1cdd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
423
sce
Ex9_6.sce
clc;clear; //Example 9.6 //from 9.5 Wsc=244.16;//compressor Wst=606.60;//turbine h1=300.19; h3=1395.17; //given data nC=0.8; nT=0.85; //calculations Win=Wsc/nC; Wout=nT*Wst; rbw=Win/Wout; disp(rbw,'back work ratio is'); h2a=h1+Win; qin=h3-h2a; Wnet=Wout-Win; nth=Wnet/qin; disp(nth,'thermal efficency is'); h4a=h3-Wout; //from A-17 at h4a T4a=853; disp(T4a,'turbine exit temperature in K is')
bcc62615b74e370ed04c11125f715dcaa19668d1
e8dbcf469ba8a31d6926ba791ebc5dcccd50282b
/css/Scripts/Funciones/get_ciudad.tst
8422f6c5b404d02127e775cb2aa00c1ba1911189
[]
no_license
bryanjimenezchacon/bryanjimenezchacon.github.io
5f2a0f1dbfbc584a65dece48f98b1c13d755512f
7062d1860934808265c05491007c83f69da1112a
refs/heads/master
2021-01-23T17:20:11.542585
2015-10-10T05:52:52
2015-10-10T05:52:52
41,244,377
2
0
null
2015-08-26T15:46:04
2015-08-23T09:52:06
JavaScript
ISO-8859-2
Scilab
false
false
152
tst
get_ciudad.tst
PL/SQL Developer Test script 3.0 4 begin -- Call the function :result := get_ciudad(pciudad => :pciudad); end; 2 result 1 Síndey 5 pciudad 1 1 4 0
84889ac5b5cd9c6ace335b81eef8034d4b4080da
449d555969bfd7befe906877abab098c6e63a0e8
/1514/CH17/EX17.4/17_4.sce
579fa6171b40faddeb0483f510dfdf5e8fa98f48
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
784
sce
17_4.sce
//chapter 17 //example 17.4 //page 523 clear all; clc ; //given Rl=100;//load resistance Po=0.5;//output power //peak output voltage Vp=sqrt(2*Rl*Po); //peak output current Ip=1000*(2*Po)/Vp; Vr6=0.1*Vp; Vr7=Vr6; R6=1000*Vr6/Ip; R7=R6; //quiscent current Iq2=Ip/10; //dc voltage across R4 Vr4dc=0.7+10^-3*Iq2*(R6+R7)+0.7; //bias components for Q2 &Q3 deltaVB=Vp+Vr6; Vce1dc=deltaVB+1; Vr3dc=Vce1dc; Vr5=5;//bias stabiliy Vcc=Vr5+Vce1dc+Vr4dc+Vr3dc; printf("\nVCC=%.1f V,use VCC=30 V",Vcc);Vcc=30; //Icq1>>Ibmax hfe=50;//assuming equal for all 3 Xtors Ibmax=Ip/hfe; Icq1=10; R3=Vr3dc/Icq1; R4=1000*Vr4dc/Icq1; printf("\nR3=%.1f kohm, standard value ",R3); printf("\nR4=%d kohm,use standard value 200 ohm",ceil(R4)); printf("\nR6=R7=%d ohm",R6);
8af86c7fad485fe6b60e0545c41b2c12e9ee7e37
449d555969bfd7befe906877abab098c6e63a0e8
/710/CH9/EX9.6/9_6.sci
6ec8bef803290d34129c02afb9ecc2de16d4191b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
388
sci
9_6.sci
clc(); clear; //To determine the wavelength lambda1=0.708; //wavelength of a certain line in an X-ray spectrum Z1=42; //atomic number Z2=24; a=1; //screening constant lambda2=(lambda1*(Z1-a)^2)/((Z2-a)^2) printf("The wavelength of same line in target of Z=24 is %f A",lambda2);
8bd23f159d9be403308e9c5af689bb048affd0d9
449d555969bfd7befe906877abab098c6e63a0e8
/3878/CH22/EX22.1/Ex22_1.sce
0cfef0f372645fac1553cf1a35193eee86ed25ef
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
583
sce
Ex22_1.sce
clear // Variable declaration T_d=37// The dry bulb temperature of air in °C H=24// % saturation n_s=75// Saturation efficiency in % h=62.67// The entering enthalpy in kJ/kg // Calculation // By construction on the chart, or from tables, the ultimate saturation condition would be 21.5°C, and 75% of the drop from 37°C to 21.5°C gives a fi nal dry bulb of 25.4°C. h_fg=2425// The average latent heat of water over the working range in kJ/kg q=(h_fg)**-1// The amount of water to be evaporated in kg/(s kW) printf("\n The amount of water to be evaporated is %0.3f kg/(s kW)",q)
3a69581fc7d339527001620240f01613219a0d52
449d555969bfd7befe906877abab098c6e63a0e8
/2417/CH3/EX3.17/Ex3_17.sce
858b2d948007c27864d78d195b0964d831df1355
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,755
sce
Ex3_17.sce
clear; clc; printf("\t\t\tProblem Number 3.17\n\n\n"); // Chapter 3 : The First Law Of Thermodynamics // Problem 3.17 (page no. 117) // Solution p1=1000; //Unit:psia //Initial pressure t1=100; //Unit:Fahrenheit //Temperature at pressure p1 p2=1000; //Unit:psia //Final pressure t2=1000; //Unit:Fahrenheit //Temperature at pressure p2 // feed in 10,000 LBm/hr h1=70.68 //Unit:Btu/LBm //Inlet enthalpy h2=1505.9 //Unit:Btu/LBm //Outlet enthalpy T1=t1+460; //Unit:R //Temperature at pressure p1 T2=t2+460; //Unit:R //Temperature at pressure p2 //Energy equation is given by J=778; //J=Conversion factor //Z1=Inlet position //Unit:m //V1=Inlet velocity //Unit:m/s //Z2=Outlet position //Unit:m //V2=Outlet velocity Unit:m/s //u1=internal energy //energy in //u2=internal energy //energy out //h=enthalpy //Energy equation is given by //((Z1/J)*(g/gc)) + (V1^2/(2*gc*J)) + u1 + ((p1*v1)/J) + q = ((Z2/J)*(g/gc)) + (V2^2/(2*gc*J)) + u2 + ((p2*v2)/J) + w/J; //Unit:Btu/LBm //we can consider this system as a single unit with feed water entering ans steam leaving. //It well designed,this unit will be thoroughly insulated,and heat losse will be reduced to a negligible amount //Alos,no work will be added to the fluid during the time it is passing through the unit, and kinetic energy differences will be assumed to be negligibly small //Differennces in elevation also be considered negligible //So,the energy equation is reduced to //u1 + ((p1*v1)/J) + q = u2 + ((p2*v2)/J) //Because h=u+(p*v/J) q=h2-h1; //q=net heat losses //Unit:Btu/LBm printf("Net heat losses is %f Btu/LBm \n",q); printf("For 10000 LBm/hr,\n"); printf("%f Btu/hr energy has been added to the water to convert it to steam",q*10000)
24f2da6a6b976c59eea20b2bd161a31e82a0831e
db719ae90d19be4c228e1cc4209c3271c9c72eaa
/MissionX2.sce
de7297330f1bf09c36499f72d4c8e0c4df08f1da
[]
no_license
Cedric-M/Projet_Scilab_Imagerie
9a51a12cf70ef820a158630a2b0c29c5f1ad4f08
13c62cddd8e1969a61864a332fae21457e8afdf7
refs/heads/master
2021-01-22T20:12:42.509435
2017-03-17T09:33:57
2017-03-17T09:33:57
85,294,028
0
0
null
null
null
null
UTF-8
Scilab
false
false
680
sce
MissionX2.sce
//MissionX2 function missionX2(imgX2) disp("Résultat de la mission X2 :") [y,x]=size(imgX2) //Les boucles for servent à parcourir tout les pixels de l'image for i=2:1:y-1 for j=2:1:x-1 //calcul de la moyenne entre les 4 pixels k=imgX2(i,j)+imgX2(i+1,j)+imgX2(i,j+1)+imgX2(i+1,j+1)+imgX2(i-1,j-1) .. +imgX2(i,j-1)+imgX2(i-1,j)+imgX2(i+1,j-1)+imgX2(i-1,j+1) k=k/9 //On divise par 9 pour obtenir la moyenne imgX2(i,j)=k //réécrire le résultat das l'image de sortie end end display_gray(imgX2); //Affichage final endfunction
8703a5bb23c6d47d70a5e93626282ec3ee71a6e1
449d555969bfd7befe906877abab098c6e63a0e8
/32/CH6/EX6.18/6_18.sce
91c0f91297b2fd8cd7023b55e4ba0fe9b5a11842
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
537
sce
6_18.sce
//pathname=get_absolute_file_path('6.18.sce') //filename=pathname+filesep()+'6.18-data.sci' //exec(filename) //Initial volume in part A(in m^3): Va=0.4 //Pressure(in bar): pa=10 //Initial volume in part B(in m^3): V=0.4 //Pressure in part B(in bar): p1=10 //Final pressure in part B(in bar): p2=15 //From steam tables: hf=762.83 hfg=2015.3 h2=2792.2 //Heat added(in kJ): Q=V*(p2-p1)*10^2 //Dryness fraction: x1=(h2-Q-hf)/hfg printf("\nRESULT\n") printf("\nHeat added = %d kJ",Q) printf("\nInitial quality = %f",x1)
bd454e2567a6c27840c2cbc691d3b71bce2c1254
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set14/s_Machine_Design_U._C._Jindal_683.zip/Machine_Design_U._C._Jindal_683/CH18/EX18.4/RB_4.sce
2a8042f5aeb9403eb94352be1f4785c58f191dd6
[]
no_license
hohiroki/Scilab_TBC
cb11e171e47a6cf15dad6594726c14443b23d512
98e421ab71b2e8be0c70d67cca3ecb53eeef1df6
refs/heads/master
2021-01-18T02:07:29.200029
2016-04-29T07:01:39
2016-04-29T07:01:39
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
202
sce
RB_4.sce
errcatch(-1,"stop");mode(2);// sum 18-4 ; ; P=20*10^3; Co=22400; C=41000; Ln=(C/P)^3; Lh=Ln*10^6/(720*60); // printing data in scilab o/p window printf("Lh is %0.3f hrs ",Lh); exit();
3d8604a96e636f73d4320889e13b1f4bccc78c7e
449d555969bfd7befe906877abab098c6e63a0e8
/479/CH14/EX14.7/Example_14_7.sce
f7ce60dcdb7450ec0373c66044cf147f3417c3da
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
5,158
sce
Example_14_7.sce
//Chemical Engineering Thermodynamics //Chapter 14 //Thermodynamics of Chemical Reactions //Example 14.7 clear; clc; //Given //SO2 + (1/2)O2 - SO3 //Basis: 1 Kgmole of SO2 n_SO2 = 1;// SO2 fed in Kgmole n_O2 = n_SO2;//O2 fed in kgmole //To Calculate the conversion of SO2 to SO3 at 1atm and at various temperature //(1)Calculate the conversion of SO2 to SO3 P = 1;//Pressure in atm T = 850;//Temperature in K m = 1-1-(1/2); //From example 14.6 Ta = [700 800 825 850 900 1000 1100 1300 1500]; Ka = [395.40 52.51 34.60 23.44 11.59 3.527 1.48 0.398 0.0016]; clf; xset('window',2); plot2d(Ta,Ka,style=3); xtitle("Equilibrium constant vs Temperature","Temperature in K","Ka"); Ka1 = interpln([Ta;Ka],850); //Let Nc be the moles of SO3 at equilibrium Nc = [0.1 0.2 0.3 0.4 0.5 0.7 0.8 0.9 0.930 0.95 0.98 0.988 0.989 0.9895 0.9897 0.9899 0.9900]; //From equation 14.49 (page no 320) and using the given data ,we got equation (b) (page no 323) for i = 1:17 Ka(i) = (((n_SO2+n_O2-0.5*Nc(i))/(n_O2-0.5*Nc(i)))^(1/2))*(Nc(i)/(n_SO2-Nc(i))); end xset('window',1); plot2d(Nc,Ka,style=2); xtitle("Equilibrium constant vs Kgmoles of SO3","Kg moles of SO3","Ka"); Nc1 = interpln([Ka;Nc],Ka1); C = Nc1*100/n_SO2; mprintf('(1)The conversion of SO2 to SO3 at 1atm and 850K is %f percent',C); //(2)Calculation of conversion at 1 atm and 850 K under the following conditions //(i) Given: n_N2 = 3.75;//Kgmoles of N2 fed //Let Nc be the moles of SO3 at equilibrium Nc = [0.85 0.87 0.90]; //From equation 14.49 (page no 320) and using the given data ,we got equation (c) (page no 324) for i = 1:3 Ka2(i) = (((+n_N2+n_SO2+n_O2-0.5*Nc(i))/(n_O2-0.5*Nc(i)))^(1/2))*(Nc(i)/(n_SO2-Nc(i))); end xset('window',1); plot2d(Nc,Ka2,style=5); Nc2 = interpln([Ka2';Nc],Ka1); C2 = Nc2*100/n_SO2; mprintf('\n\n (2)(i)The conversion of SO2 to SO3 at 1 atm and 850 K when inert gas is also added is %f percent',C2); //(ii)SO3 is also sent along the original feed n_SO3 = 1;//Kgmoles of SO3 fed //Let Nc be the moles of SO3 at equilibrium Nc = [0.80 0.86 0.92]; //From equation 14.49 (page no 320) and using the given data ,we got equation (d) (page no 326) for i = 1:3 Ka3(i) = (((+n_SO3+n_SO2+n_O2-0.5*Nc(i))/(n_O2-0.5*Nc(i)))^(1/2))*((n_SO3+Nc(i))/(n_SO2-Nc(i))); end xset('window',1); plot2d(Nc,Ka3,style=6); Nc3 = interpln([Ka3';Nc],Ka1); C3 = Nc3*100/n_SO2; mprintf('\n (ii)The conversion of SO2 to SO3 at 1 atm and 850 K when SO3 is also added along the original feed is %f percent',C3); //(iii)Variation of SO2 to O2 ratio: //(a)SO2:O2 = 1:1 ; This has been worked out in part 1 mprintf('\n (iii)(a)The conversion of SO2 to SO3 at 1atm and 850K when SO2:O2 = 1:1 is %f percent',C); Xc = Nc1/(n_SO2+n_O2-0.5*Nc1); //(b)SO2:O2 = 1.1:0.5,Now n_SO2 = 1.1;//Kgmoles of SO2 fed n_O2 = 0.5;//Kgmoles of O2 fed //Let Nc be the moles of SO3 at equilibrium Nc = [0.9 0.91 0.92]; //From equation 14.49 (page no 320) and using the given data ,we got equation (e) (page no 327) for i = 1:3 Ka4(i) = (((n_SO2+n_O2-0.5*Nc(i))/(n_O2-0.5*Nc(i)))^(1/2))*(Nc(i)/(n_SO2-Nc(i))); end xset('window',1); plot2d(Nc,Ka4,style=1); Nc4 = interpln([Ka4';Nc],Ka1); C4 = Nc4*100/n_SO2; mprintf('\n (iii)(b)The conversion of SO2 to SO3 at 1atm and 850K when SO2:O2 = 1.1:0.5 is %f percent',C4); Xc1 = Nc4/(n_SO2+n_O2-0.5*Nc4); //(c)SO2:O2 = 1:0.5 n_SO2 = 1;//Kgmoles of SO2 fed n_O2 = 0.5;//Kgmoles of O2 fed //Let Nc be the moles of SO3 at equilibrium Nc = [0.8 0.85 0.86 0.87]; //From equation (a) for i = 1:4 Ka5(i) = (((n_SO2+n_O2-0.5*Nc(i))/(n_O2-0.5*Nc(i)))^(1/2))*(Nc(i)/(n_SO2-Nc(i))); end xset('window',1); plot2d(Nc,Ka5,style=4); Nc5 = interpln([Ka5';Nc],Ka1); C5 = Nc5*100/n_SO2; mprintf('\n (iii)(c)The conversion of SO2 to SO3 at 1atm and 850K when SO2:O2 = 1:0.5 is %f percent',C5); Xc2 = Nc5/(n_SO2+n_O2-0.5*Nc5); if(Xc2>Xc) and (Xc2>Xc1) mprintf('\n SO2:O2 = 1:0.5 gives the maximum concentration of SO3 at equilibrium.'); else if(Xc1>Xc) and (Xc1>Xc2) mprintf('\n SO2:O2 = 1.1:0.5 gives the maximum concentration of SO3 at equilibrium'); else if(Xc>Xc1) and (Xc>Xc2) mprintf('\n SO2:O2 = 1:1 gives the maximum concentration of SO3 at equilibrium'); end end end //(3)Conversion of SO2 to SO3 at 50 atm and 850 K when SO2:O2 = 1:1 n_SO2 = 1;//Kgmole of SO2 fed n_O2 = 1;//Kgmoles of O2 fed P = 50;//Pressure in atm //From figure A.2.9 phi_SO2 = 0.99; phi_SO3 = 0.972; phi_O2 = 1; //From equation 14.48 (page no320), Ka = Ky*(P^m)*K_phi K_phi = phi_SO3/(phi_SO2*(phi_O2^2)); //Let Nc be the moles of SO3 at equilibrium Nc = [0.99 0.985 0.97 0.96]; for i = 1:4 Ka6(i) = K_phi*(P^m)*((((n_SO2+n_O2-0.5*Nc(i))/(n_O2-0.5*Nc(i)))^(1/2))*(Nc(i)/(n_SO2-Nc(i)))); end xset('window',1); plot2d(Nc,Ka6,style=3); Nc6 = interpln([Ka6';Nc],Ka1); C = Nc6*100/n_SO2; mprintf('\n\n (3)The conversion of SO2 to SO3 at 50atm and 850K when SO2:O2 = 1:1 is %f percent',C); legend("1 part","2.(i) part","2.(ii)part","2.(iii).(b)part","2.(iii).(c)part","3 part"); //end
8de52102d5b95dab08cb82cef9658ee627c66867
449d555969bfd7befe906877abab098c6e63a0e8
/1427/CH35/EX35.19/35_19.sce
3b09762d92f1478fdbb6647b4c6a47b1cc7e167e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
201
sce
35_19.sce
//ques-35.19 //Calculating frequency shift from TMS required clc R=1;//resonance order f=500;//frequency (in MHz) shift=R*(f*10^6)*10^-6; printf("The frequency shift required is %d Hz.",shift);
e7157ded64e30c6783537d30e971310dcd7ad4ce
449d555969bfd7befe906877abab098c6e63a0e8
/1574/CH3/EX3.9/M_Ex_3_9.sce
b6119d015168e41c0c17b6b42043c518ac3b0344
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
678
sce
M_Ex_3_9.sce
clc //Chapter3: Modulation, page no 142 //Example3.9 //Given t=0:0.001:10 //e=500*(1+(0.4*sin(3140*t)))*sin(6.28e7*t) //a wc=6.28e7//Carrier angular frequency fc=wc/(2*%pi)// Carrier freq //b wm=3140//Modulating angular freq fm=wm/(2*%pi)//Modulating freq //c Ec=500///peak carrier voltage Pc=(Ec^2)/(2*600)//Carrier power //d Ma=0.4 Pt=Pc*(1+(Ma^2 / 2))//Mean output power //e Rl=600//load resistance Ecp=Ec+(Ma*Ec)//Peak output voltage Ptm=Ecp^2/(2*Rl)//Peak power mprintf('Carrier freq is: %d MHz\nModulating freq is:%d Hz\nCarrier power is: %f watts\nMean output power is: %f watts\nPeak output power is: %f watts',round(fc*1e-6),round(fm),Pc,Pt,Ptm)
06a28466dd45ee7c6371cf7ff4685fd758ebd146
449d555969bfd7befe906877abab098c6e63a0e8
/3422/CH5/EX5.4/Ex5_4.sce
1cb78b61e6695528d73764f1b93f6c939d66a8cb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
511
sce
Ex5_4.sce
//Example 5.4, Page no 110 clc p=400*20*.88*sqrt(3)//input power in watt l=12193.6-10000//in watt, full load loss e=l*60//energy lost per minute ws=(2*%pi*1000)/60//angular frequency j=.5 R=1//resistance in ohm ir R1/R2 El=(0.5*j*ws**2)*(1+R) //disp(El) N=e/El //disp(N) printf("\n The number of starts that can be made is %d ",N) ws=(2*%pi*1500)/60//angular frequency j=.5 R=1//resistance in ohm ir R1/R2 El=(0.5*j*ws**2)*(1+R) //disp(El) N=e/El //disp(N) printf("\n The number of permissible starts is %d ",N)
942e31a20e1039dcc94256c44df14ce8174f939b
449d555969bfd7befe906877abab098c6e63a0e8
/779/CH4/EX4.1/4_1.sce
533a0abe9da0406114e66a07881580d81d0e8cda
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
270
sce
4_1.sce
V1 = 0.3; // Initial volume in m3 V2 = 0.15; // Final volume in m3 P = 0.105e06; // Pressure in Pa Q = -37.6e03; // Heat tranferred in J W = P*(V2-V1); // Work done U = Q-W; // Internal energy change disp("Joule",U,"Change in the internal energy of the system is")
348b88f5cad7e26b9fd3e517fce0ddbfc8e64501
449d555969bfd7befe906877abab098c6e63a0e8
/199/CH2/EX2.1.b/Example_2_1_b.sce
bd7097d03285d1239aee9b03a99d7493e27b3c7e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
336
sce
Example_2_1_b.sce
//Chapter2 //Page.No-45, Figure.No-2.9 //EXAMPLE_2_1_b //Output voltage for open-loop differential amplifier //Given: clear;clc; vin1=10*10^-3;vin2=20*10^-3; // Both input voltages are in volts A=200000; // Voltage gain vo=A*(vin1-vin2); // Output voltage in volts printf("\n Output voltage is vo = %.f V rms \n",vo) // Result
6ed34110b4382d41cfecb495dda89324feda869d
449d555969bfd7befe906877abab098c6e63a0e8
/1847/CH2/EX2.69/Ch02Ex69.sce
52fe7d1136caa55a00935a001f21e59c82217aa7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
478
sce
Ch02Ex69.sce
// Scilab Code Ex2.69:: Page-2.51(2009) clc; clear; R = 100; // Radius of curvature of plano-convex lens, cm D15 = 0.590; // Diameter of 15th dark ring, cm D5 = 0.336; // Diameter of 5th dark ring, cm p = 10; // Order of 10th Newton ring after 5th ring lambda = (D15^2-D5^2)/(4*p*R); // Wavelength of light used, cm printf("\nThe wavelength of light used = %4.0f ansgtrom", lambda/1e-008); // Result // The wavelength of light used = 5880 ansgtrom
7782005d63e8a281ca0d432f6b3b3175025bb72b
449d555969bfd7befe906877abab098c6e63a0e8
/1523/CH2/EX2.31/2_31.sce
60c78c31881557d88f3275118f3706759a14d7f4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
518
sce
2_31.sce
//Network Theorem 1 //page no-2.34 //example2.30 disp("Applying KCL to node a:"); disp("0.5*Va-0.2*Vb = 34.2");....//equation 1 disp("Applying KCL to node b:"); disp("0.1*Va-0.4*Vb = -32.4");...//equation 2 disp("Solving equations 1 and 2");...//solving equations in matrix form A=[0.5 -0.2;0.1 -0.4]; B=[34.2 -32.4]' X=inv(A)*B; disp(X); disp("Va= 112 V"); disp("Vb= 109 V"); x=112; y=109; I1=(120-x)/0.2; I2=(x-y)/0.3; I3=(110-y)/0.1; mprintf("\nI1= %.f A \nI2= %.f A \nI3= %.f A",I1,I2,I3);
9412d2757975efd4dfe76be1f093322498e5c96b
449d555969bfd7befe906877abab098c6e63a0e8
/1938/CH6/EX6.36/6_36.sce
619b67c7438b5b38af0095a6d761fc8fab43ba84
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
643
sce
6_36.sce
clc,clear printf('Example 6.36\n\n') V_L=11000 V_ph=V_L/sqrt(3) VA=2*10^6,phi=acos(0.8) I_FL=VA/(sqrt(3)*V_L) phi_1=acos(0.8) IX_s=(20/100)*V_ph //product of I and X_s X_s=IX_s/I_FL I_1=I_FL BC=I_1*cos(phi_1)*X_s AB=I_1*sin(phi_1)*X_s , OA=V_ph OC=sqrt( (OA+AB)^2+(BC)^2 ) ,E_1=OC E_2=1.25*E_1,OE=E_2 DE=BC AD=sqrt(OE^2-DE^2) -OA //because OE=sqrt( (OA+AD)^2 + (DE)^2 ) I_2sinphi2=AD/X_s I_2cosphi2=I_1*cos(phi) I_2=sqrt( (I_2cosphi2)^2 + (I_2sinphi2)^2 ) phi2=atan( I_2sinphi2/ I_2cosphi2 ) new_pf=cos(phi2) printf('Machine current is %.2f A \n',I_2) printf('Power factor is %.4f lagging',new_pf)
9be626eb325195bfa91ebb83a33ea163ce37b909
607fe53653a19100ed470c4f0b5da1a5cbb0a7f3
/s13102020_2.sce
40cb041e216d2b024bb2a3dbaeced77df7aa0464
[]
no_license
sanjeevphy/ForPhDCourseWork
70b3944e4dce8a5f054ef59b8710923005ca9127
945812099f1f41395daa1b1ceeb33c69b9a07481
refs/heads/main
2023-02-22T04:25:00.575704
2021-01-28T07:00:53
2021-01-28T07:00:53
333,669,242
0
0
null
null
null
null
UTF-8
Scilab
false
false
117
sce
s13102020_2.sce
clf t = 0:.01:2*%pi; polarplot(t,sin(2*t)+cos(2*t)) filename='jitendra'; xs2pdf(1,filename); xs2pdf(gcf(),filename);
a1166d0b3a774cf330e4ac46dbc422d2cc80db71
1bb72df9a084fe4f8c0ec39f778282eb52750801
/test/E03.prev.tst
23e13ddea563601881c64e9cc013aececfbfc3cf
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gfis/ramath
498adfc7a6d353d4775b33020fdf992628e3fbff
b09b48639ddd4709ffb1c729e33f6a4b9ef676b5
refs/heads/master
2023-08-17T00:10:37.092379
2023-08-04T07:48:00
2023-08-04T07:48:00
30,116,803
2
0
null
null
null
null
UTF-8
Scilab
false
false
4,549
tst
E03.prev.tst
EEC run k=3 [3,4,5,6] [1,6,8,9] [3,4,5,6] [1,6,8,9] [3,4,5,6] [3,10,18,19] [7,14,17,20] [3,4,5,6] [4,17,22,25] [1,6,8,9] [18,19,21,28] [11,15,27,29] [3,4,5,6] [1,6,8,9] [3,4,5,6] [3,10,18,19] [7,14,17,20] [2,17,40,41] [6,32,33,41] [3,4,5,6] [16,23,41,44] [1,6,8,9] [3,36,37,46] [27,30,37,46] [3,4,5,6] [4,17,22,25] [29,34,44,53] [12,19,53,54] [1,6,8,9] [3,4,5,6] [18,19,21,28] [3,10,18,19] [11,15,27,29] [15,42,49,58] [7,14,17,20] [3,4,5,6] [1,6,8,9] [3,4,5,6] [22,51,54,67] [36,38,61,69] [7,54,57,70] [14,23,70,71] [34,39,65,72] [1,6,8,9] [3,4,5,6] [4,17,22,25] [38,43,66,75] [3,10,18,19] [31,33,72,76] [3,4,5,6] [7,14,17,20] [25,48,74,81] [1,6,8,9] [2,17,40,41] [19,60,69,82] [6,32,33,41] [28,53,75,84] [3,4,5,6] [18,19,21,28] [50,61,64,85] [11,15,27,29] [20,54,79,87] [38,48,79,87] [26,55,78,87] [25,31,86,88] [21,43,84,88] [16,23,41,44] [17,40,86,89] [25,38,87,90] [1,6,8,9] [3,4,5,6] [58,59,69,90] [3,36,37,46] [27,30,37,46] [32,54,85,93] [3,10,18,19] [19,53,90,96] [3,4,5,6] [45,69,79,97] [1,6,8,9] [4,17,22,25] [7,14,17,20] [3,4,5,6] [12,31,102,103] [33,70,92,105] [29,34,44,53] [12,19,53,54] [13,51,104,108] [1,6,8,9] [3,4,5,6] [15,82,89,108] [29,75,96,110] [16,47,108,111] [18,19,21,28] [50,74,97,113] [3,10,18,19] [3,4,5,6] [3,34,114,115] [11,15,27,29] [15,42,49,58] [23,86,97,116] [1,6,8,9] [9,55,116,120] [7,14,17,20] [3,4,5,6] [49,84,102,121] [19,92,101,122] [2,17,40,41] [44,51,118,123] [6,32,33,41] [4,17,22,25] [1,6,8,9] [23,94,105,126] [3,4,5,6] [13,65,121,127] [38,57,124,129] [5,76,123,132] [16,23,41,44] [3,4,5,6] [3,10,18,19] [22,51,54,67] [86,95,97,134] [1,6,8,9] [44,73,128,137] [36,38,61,69] [3,4,5,6] [3,36,37,46] [27,30,37,46] [94,96,99,139] [7,14,17,20] [7,54,57,70] [18,19,21,28] [72,85,122,141] [14,23,70,71] [31,64,137,142] [1,71,138,144] [34,39,65,72] [1,6,8,9] [3,4,5,6] [12,81,136,145] [11,15,27,29] [22,75,140,147] [71,73,138,150] [4,17,22,25] [38,43,66,75] [3,4,5,6] [46,47,148,151] [3,10,18,19] [31,33,72,76] [1,6,8,9] [65,87,142,156] [3,4,5,6] [29,34,44,53] [3,121,131,159] [7,14,17,20] [69,123,124,160] [12,19,53,54] [25,48,74,81] [59,93,148,162] [1,6,8,9] [3,4,5,6] [2,17,40,41] [69,99,146,164] [19,60,69,82] [6,32,33,41] [12,86,159,167] [28,53,75,84] [3,4,5,6] [18,19,21,28] [96,107,141,170] [50,61,64,85] [54,80,163,171] [3,10,18,19] [1,6,8,9] [107,108,136,171] [1,135,138,172] [47,97,162,174] [11,15,27,29] [20,54,79,87] [38,48,79,87] [26,55,78,87] [15,42,49,58] [3,4,5,6] [4,17,22,25] [25,31,86,88] [21,43,84,88] [25,92,167,176] [16,23,41,44] [48,137,142,177] [17,40,86,89] [48,133,147,178] [17,57,177,179] [25,38,87,90] [1,6,8,9] [7,14,17,20] [3,4,5,6] [58,59,69,90] [108,109,150,181] [3,36,37,46] [27,30,37,46] [57,68,180,185] [68,113,166,185] [32,54,85,93] [18,121,167,186] [3,4,5,6] [58,131,160,187] [115,122,149,188] [21,46,188,189] [1,6,8,9] [3,10,18,19] [56,133,163,190] [39,146,156,191] [19,53,90,96] [34,123,173,192] [3,4,5,6] [25,68,190,193] [45,69,79,97] [18,19,21,28] [53,58,194,197] [27,46,197,198] [1,6,8,9] [73,135,170,198] [3,4,5,6] [6,127,180,199] [4,17,22,25] [7,14,17,20] [45,53,199,201] [22,51,54,67] [76,141,171,202] [85,138,171,202] [11,15,27,29] [81,147,167,203] [3,4,5,6] [2,17,40,41] [6,32,33,41] [108,142,165,205] [12,31,102,103] [35,77,202,206] [5,163,164,206] [1,6,8,9] [36,38,61,69] [3,10,18,19] [57,146,180,209] [113,146,166,209] [42,83,205,210] [33,70,92,105] [3,4,5,6] [7,54,57,70] [29,34,44,53] [14,23,70,71] [56,61,210,213] [16,51,213,214] [58,157,179,214] [12,19,53,54] [13,51,104,108] [34,39,65,72] [1,6,8,9] [3,4,5,6] [15,82,89,108] [46,126,201,217] [93,155,180,218] [140,151,161,218] [50,67,216,219] [51,152,190,219] [67,167,177,219] [108,163,170,219] [16,23,41,44] [29,75,96,110] [7,14,17,20] [16,47,108,111] [3,4,5,6] [18,19,21,28] [31,95,219,225] [1,6,8,9] [4,17,22,25] [38,43,66,75] [50,74,97,113] [3,10,18,19] [31,33,72,76] [18,167,193,228] [3,4,5,6] [76,165,192,229] [102,157,192,229] [3,34,114,115] [3,36,37,46] [27,30,37,46] [56,102,223,231] [98,136,207,231] [103,140,204,231] [85,107,220,232] [11,15,27,29] [15,42,49,58] [23,86,97,116] [1,6,8,9] [123,125,208,234] [3,4,5,6] [54,163,204,235] [96,163,198,235] [78,172,195,235] [147,157,186,238] [15,114,230,239] [23,178,200,239] [9,55,116,120] [7,14,17,20] [3,4,5,6] [113,124,220,241] [49,84,102,121] [25,48,74,81] [1,6,8,9] [73,174,207,244] [19,92,101,122] [2,17,40,41] [44,51,118,123] [19,60,69,82] [113,166,207,246] [3,4,5,6] [6,32,33,41] [3,10,18,19] [4,57,248,249] [4,17,22,25] [6,179,216,251] [28,53,75,84] [1,6,8,9] [23,94,105,126] [3,4,5,6] [18,19,21,28] [13,65,121,127] [163,164,197,254] [50,61,64,85]
d0cf2b15d9a1c152b1856617791ed2aef7c7491f
449d555969bfd7befe906877abab098c6e63a0e8
/2915/CH2/EX2.8/Ex2_8.sce
eaf45f6a442df72226ac6d51c37ff90561b2e668
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
767
sce
Ex2_8.sce
//Example 2.8 //To solve the triangle when 2 sides and opposite angle is given clc,clear a=18 //side oposite to vertex A A=25 //angle at vertex A b=30 //side opposite to vertex B //using law of cosines solving for c c_polynomial=[1 -54.38 576] root_c=roots(c_polynomial) //case 1 c=root_c(1) cos_B = (c^2+a^2-b^2)/(2*c*a) //from law of cosines B= (180/%pi)*acos (cos_B) C=180-(A+B) printf('1st possible answer set\nAngle B=%.1f degree\nAngle C=%.1f degree\nlength of c=%.0f units\n\n',B,C,c) //case 2 c=root_c(2) cos_B = (c^2+a^2-b^2)/(2*c*a) //from law of cosines B=(180/%pi)*acos(cos_B) C=180-(A+B) printf('2nd possible answer set(which is not solved in book)\nAngle B=%.1f degree\nAngle C=%.1f degree\nlength of c=%.0f units\n',B,C,c)
3032d53fa7c003accb4393fcca99f197b8070b2d
449d555969bfd7befe906877abab098c6e63a0e8
/1445/CH7/EX7.2/Ex7_2.sce
02d584db348c6ce672aa3dc20f85119797cb67fb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,631
sce
Ex7_2.sce
//CHAPTER 7- SINGLE PHASE TRANSFORMER //Example 2 clc; disp("CHAPTER 7"); disp("EXAMPLE 2"); // //400/200V transformer //VARIABLE INITIALIZATION v1=400; //primary voltage in Volts v2=200; //secondary voltage in Volts I0=1; //in Amperes pf1=0.4; //power factor in degrees on no load I2=50; //secondary current in Amperes pf2=0.8; //secondary supplies lagging power factor in degrees //SOLUTION //primary current is given by //I1=I0+I2 //function to convert from polar to rectangular form function [x,y]=pol2rect(mag,angle1); x=mag*cos(angle1); y=mag*sin(angle1); endfunction; // phi_0=acos(pf1); // cosine inverse of the power factor which is given phi=acos(pf2); // cosine inverse of the power factor which is given I2_dash=(v2*I2)/v1; //v1.i1=v2.i2 //I0=1 < phi_0 in polar format [x0,y0]=pol2rect(I0,-phi_0); [x2_dash,y2_dash]=pol2rect(I2_dash,-phi); I1_x=x0+x2_dash; //x-component of I1 I1_y=y0+y2_dash; //y-component of I1 disp(sprintf("The primary current in reactangular form is (%.3f-j%.2f) A",I1_x,-I1_y)); // //function to convert from rectangular form to polar form function [I,angle]=rect2pol(x,y); I=sqrt((x^2)+(y^2)); angle=atan(y/x)*(180/%pi); //to convert the angle from radians to degrees endfunction; [I,angle]=rect2pol(I1_x,I1_y); // converting current from rectangular to polar form disp(sprintf("The primary current in polar form is (%.3f <%.2f) A",I,angle)); //END
d29737b71498b2c967a972f7775ecaf21eda37f2
449d555969bfd7befe906877abab098c6e63a0e8
/1358/CH3/EX3.17/Example317.sce
d20119cb3c82a1715ba2c0bd3f50236396318b13
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
699
sce
Example317.sce
// Display mode mode(0); // Display warning for floating point exception ieee(1); clear; clc; disp("Turbomachinery Design and Theory,Rama S. R. Gorla and Aijaz A. Khan, Chapter 3, Example 17") disp("Velocity in casing at inlet to turbine") Q = 7.8; disp("Cc = Discharge/(Cross - sectional area of casing)") Cc = Q/(%pi*1^2 /4) disp("The net head on turbine") disp(" = Pressure head + Head due to turbine position + (Cc^2 - C1^2)/2g") PrHead = 164 TurbHead = 5.4 C1 = 1.6 g = 9.81; Hnet = PrHead + TurbHead + (Cc^2-C1^2)/(2*g) disp("Waterpower supplied to turbine = QgH kW") P = Q * g * Hnet disp("Hence overall efficiency,etao = Shaft Power/Water Power") etao = 12400/P * 100
189580cec3b196f1623c86f4af7b4c697b77bff2
449d555969bfd7befe906877abab098c6e63a0e8
/3507/CH13/EX13.9/Ex13_9.sce
d078898ccee08090bd3717b5a2c6dc5fab9938e0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
260
sce
Ex13_9.sce
//chapter13 //example13.9 //page283 Rc=3 // kilo ohm Rl=6 // kilo ohm Rin=0.5 // kilo ohm Vin=1 // mV gain_beta=50 R_AC=Rc*Rl/(Rc+Rl) Av=gain_beta*R_AC/Rin // since Av=Vout/Vin we get Vout=Av*Vin printf("output voltage = %.3f mV \n",Vout)
553e0517f0d9949016a9bad159bf20a1175d82e6
449d555969bfd7befe906877abab098c6e63a0e8
/1019/CH2/EX2.19/Example_2_19.sce
33ef78828ca67ac83c065bfeeaa675827db128fd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
581
sce
Example_2_19.sce
//Example 2.19 clear; clc; //Given T1=273; //initial temperature in K T2=1073; //final temperature in K w=1;//weight of aluminium taken in kg mp=931;//melting point of aluminium in K delHm=362.3;//enthalpy change during melting process in kJ kg^-1 // To determine delH delH1=(0.9121*(mp-T1))+(2.0083*0.00005*((mp+T1)*(mp-T1)))-(2.0083*0.0001*273*(mp-T1));//enthalpy change in 1st step in kJ delHf=delHm*w;//enthalpy change during melting in kJ delH3=1.0836*(T2-mp);//enthalpy change in last step in kJ delH=delH1+delHf+delH3; mprintf('delH = %f kJ ',delH); //end
da1176a6164c5183b7e8eedfbff081823bf2c9e0
1232196a72221f6cc0ee0a9a47111ef1188dafe9
/sci2blif/create_palette.sce
882c743ef2200c817531886251ac5ce164467655
[]
no_license
sumagin/rasp30
06dc2ee1587a4eaf3cf5fb992375b8589617f882
a11dcffaed22dbac1f93c2f4798a48c7b0b1f795
refs/heads/master
2021-01-24T23:51:54.459864
2016-07-08T22:03:43
2016-07-08T22:03:43
16,685,217
2
3
null
2015-07-23T15:28:49
2014-02-10T05:17:38
C
UTF-8
Scilab
false
false
1,590
sce
create_palette.sce
// clear the console window clc //Turn off the warning messages in the console previousprot = funcprot(1) //integer with possible values 0, 1, 2 returns previous value funcprot(0) //allows the user to specify what scilab will do when such variables are redefined. 0=nothing, 1=warning, 2=error // Import some useful Xcos macros into Scilab. loadXcosLibs(); //Loads all .sci files (containing Scilab functions) defined in the path directory. //Location of all block files getd('/home/ubuntu/RASP_Workspace/block_files/') ; ////////////////////////////////////////////////////////////////////// ////////////////////Commands for Block Appearance///////////////////// ////////////////////////////////////////////////////////////////////// //Create custom palette(s) for all blocks // Reference Websites: // https://help.scilab.org/docs/5.5.1/ru_RU/xcosPal.html // https://help.scilab.org/docs/5.5.1/ru_RU/xcosPalAddBlock.html // https://help.scilab.org/docs/5.5.1/ru_RU/xcosPalAdd.html pal = xcosPal("My Block"); //Instanciate a new xcos palette [Can be a ubcategory] // Add blocks to the palette //Create block icon //Set the style of each icon style= struct(); style.noLabel=0; style.align="center"; style.fontSize=16; style.overflow="fill"; style.displayedLabel="Sample"; pal = xcosPalAddBlock(pal,"newblock",[],style); //Add palettes to Palette Browser xcosPalAdd(pal,["ECE6435"]); //You can change this top level palette name //Turn the warning messages back on to be displayed in console funcprot(previousprot)
4124697dd679997582a5454170d6e26e2e05ef0e
449d555969bfd7befe906877abab098c6e63a0e8
/1664/CH3/EX3.6/Ex3_6.sce
9d541369028710ae37774afe4e718c19f761ef5c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
419
sce
Ex3_6.sce
//Example No.3.6. // Page No.100. //To find refractive idex. clc;clear; NA = 0.26;//Numerical aperture. del = 0.015;//Refractive index difference of the fibre. n1 = sqroot((((NA)^(2))/(2*del)));//Refractive index of the core printf("\nThe refractive index of the core is %.2f",n1); n2 = sqroot((n1^(2))-(NA^(2)));// Refractive index of cladding. printf("\nThe refractive index of cladding is %.3f",n2);