can you program PINK variable names?
First week on PINK, it seems to work well.
I am trying to write values to the PINK's variables (Nb_varXX) and the following statement works fine:
SEROUT TX, Baud, [noparse][[/noparse]"!NB0W03:", DEC LightLevel, CLS]
However, i have a bunch of data, enough to fill all 100 variables. Is there any way of coding
SEROUT TX, Baud, [noparse][[/noparse]"!NB0W00:", DEC LightLevel, CLS].....SEROUT TX, Baud, [noparse][[/noparse]"!NB0W99:", DEC LightLevel, CLS]
without have to write this out 100 times?
I am trying to write values to the PINK's variables (Nb_varXX) and the following statement works fine:
SEROUT TX, Baud, [noparse][[/noparse]"!NB0W03:", DEC LightLevel, CLS]
However, i have a bunch of data, enough to fill all 100 variables. Is there any way of coding
SEROUT TX, Baud, [noparse][[/noparse]"!NB0W00:", DEC LightLevel, CLS].....SEROUT TX, Baud, [noparse][[/noparse]"!NB0W99:", DEC LightLevel, CLS]
without have to write this out 100 times?
Comments
where v is the number of the variable you want to write to.
where Nbvar and Nbvar1 = 00-99
I have used this method successfully, the above line I haven't tested for syntax but you get the idea.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
Post Edited (Dgswaner) : 11/5/2007 10:08:35 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
James L
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
James L