Jump to content



  • Please log in to reply
1 reply to this topic

#1 Colombia


    Casio Addict

  • Members
  • PipPipPip
  • 94 posts
  • Gender:Male
  • Location:Venezuela

  • Calculators:
    algebra FX 2.0 plus
    Classpad 300

Posted 02 November 2006 - 01:48 PM

I?m trying to make my personal EE_pro. Of curse I`m studing electrical engeneering.

I want to make the same style as Pspice.

An example in Pspice is:

RF 3 1 50k
RG 5 0 50k
RI1 2 3 5k
RI2 2 5 5k
EOA 1 0 5 4 1.0E8
RIN 4 5 1E8
ECM 4 3 5 0 3.1546E-5
VIN 2 0 AC 0.2
.AC LIN 1 60 60

Now my code in CpLua 0.9 is

local element,i,switch,j
while(switch==1) do
element[i]=inpunt("element" .. i .. ":")
if(element[i]==".exit") then

with this code the user will be able to see what his/her is writting, but my question is
How can I tell to CpLua0.9 read character by character for each line.

I mean, if thw user write the same element as Pspice example,
The programer( me in this case) need read just the character 3 in the first line, and the read just the character 1 in the same line and so on. The programmer need this to do the specific calculations.

Thanks for the help!!!!!!!!!!!!!!!!!!!1

#2 The_AFX_Master


    Casio Overlord

  • [Legends]
  • PipPipPipPipPipPipPip
  • 519 posts
  • Gender:Male
  • Location:Black Mesa Research Facility (sector C)
  • Interests:BASIC +FORTRAN 90+ C++.....and HALF LIFE

  • Calculators:
    Casio Algebra FX 2.0 Plus, Casio fx 570 ms, Classpad 300, And a crowbar

Posted 03 November 2006 - 01:17 AM

Colombia.. Tengo entendido que eres de la USB. Si quieres ayuda en cuanto a CPLUA.. puedes preguntarme en la universidad si quieres. Estoy casi todos los dias en el laboratorio de dinamica de maquinas, o en la cueva de FSAE.. preguntas por Angelo. Yo estoy haciendo una version mejorada de ME_pro con un compa?ero del foro. te podria servir parte de lo que sabemos.. sobre todo con los strings.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users