Guest
Hi,
I have been playing around with ILLabels in schematics and symbols a
bit.
If I use the schCreateNoteLabel() function it is possible to specify
its function as ILLabel. I put something like
schHiCreateNoteLabel( "asiGetCurrentSession()" "lowerLeft" "swedish"
0.0625 "ILLabel" )
in CIW and get to place a label in my current schematic, which is
opened in Analog Artist environment. Now the label is placed and I see
"asiGetCurrentSession()" on screen. If I select the label and press q
to se the object properties, I notice that the value is "nil". I did
expect an object, but anyhow a start. I add another label, this time
change the asiGetCurrentSession() to 7 + 3 and in the object
properties I get 10 for value. Now that seems to be good. I cannot
find out how to get the return value of the label shown instead of the
label itself.
Motivated by this I create a cell called coollabel with only a symbol.
In this symbol I place a label that I define as a ILLabel and write
(plus 3 7), save it and place the coollabel symbol in my schematic.
Now the return value 10 is shown. Motivated by this I try to get
something like a (printf "result is %L" (plus 3 7)) but this time I
get only t. Ok, return value. I then try a simple (list "Result is: "
(plus 3 7)) but this time I get a nil. In frustration I try a (strcat
"result is: " (plus 3 7)) but as expected (plus 3 7) is not a string
so I get a warning.
I try to experiment with the L label but that one is pure text and is
not being evaluated. I really look for a way to write small
interpreted labels that I can place on strategic places in my
schematic so that I can use an ocean backend call to get particular
values from the database.
The nice thing with the L label is that I can attach it to a symbol so
that the labels are moved together with the symbols.
Anybody having experimented with ILLabels that have some experience to
share?
--
Svenn
I have been playing around with ILLabels in schematics and symbols a
bit.
If I use the schCreateNoteLabel() function it is possible to specify
its function as ILLabel. I put something like
schHiCreateNoteLabel( "asiGetCurrentSession()" "lowerLeft" "swedish"
0.0625 "ILLabel" )
in CIW and get to place a label in my current schematic, which is
opened in Analog Artist environment. Now the label is placed and I see
"asiGetCurrentSession()" on screen. If I select the label and press q
to se the object properties, I notice that the value is "nil". I did
expect an object, but anyhow a start. I add another label, this time
change the asiGetCurrentSession() to 7 + 3 and in the object
properties I get 10 for value. Now that seems to be good. I cannot
find out how to get the return value of the label shown instead of the
label itself.
Motivated by this I create a cell called coollabel with only a symbol.
In this symbol I place a label that I define as a ILLabel and write
(plus 3 7), save it and place the coollabel symbol in my schematic.
Now the return value 10 is shown. Motivated by this I try to get
something like a (printf "result is %L" (plus 3 7)) but this time I
get only t. Ok, return value. I then try a simple (list "Result is: "
(plus 3 7)) but this time I get a nil. In frustration I try a (strcat
"result is: " (plus 3 7)) but as expected (plus 3 7) is not a string
so I get a warning.
I try to experiment with the L label but that one is pure text and is
not being evaluated. I really look for a way to write small
interpreted labels that I can place on strategic places in my
schematic so that I can use an ocean backend call to get particular
values from the database.
The nice thing with the L label is that I can attach it to a symbol so
that the labels are moved together with the symbols.
Anybody having experimented with ILLabels that have some experience to
share?
--
Svenn