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
.PRINT AC VM(1)
.END
Now my code in CpLua 0.9 is
statusbar("EE_pro")
require("cas")
local element,i,switch,j
element={}
i,switch=1,1
while(switch==1) do
keypad(1)
element[i]=inpunt("element" .. i .. ":")
if(element[i]==".exit") then
switch=0
end
i=i+1
end
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
String
Started by
Colombia
, Nov 02 2006 01:48 PM
1 reply to this topic
#1
Posted 02 November 2006 - 01:48 PM
#2
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.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users