Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline marcofk  
#1 Posted : 07 October 2013 11:08:51(UTC)
marcofk


Rank: Member

Groups: Registered
Joined: 01/02/2012(UTC)
Posts: 19
Location: UK

Was thanked: 8 time(s) in 4 post(s)
Hello all, I've been battling for a couple of days with this calculation sheet. I've got three problems:

1) in the Util block, the function freq_list returns an error message (red box and
Quote:
nWonderct not defined
), even if I can still get the results that I want. (I can't get rid of the smiley, but it's "no _ oct" without the spaces)
2) in the Propagation Constant section I still get the red box, but if I check the results, they are there.
3) in the Impedance section, despite it being a copy and paste of the Propagation Constant section, I get a "Syntax Error" message.

Any suggestions?

Edited by user 07 October 2013 11:11:36(UTC)  | Reason: Not specified

File Attachment(s):
Frommhold - Impedance.sm (49kb) downloaded 24 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 07 October 2013 13:44:16(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
Done Good

About the first issue:
- line() uses the last placeholder to output the result on the "layer above" (the canvas in this case); so don't use a single line but a two line line() and place in the last placeholder anything that is already defined (the last placeholder works like an eval, in some way)

About other issues there's a bug that involves the linear indexing and the assignments (I don't remember if was already reported here), so use the two-indices syntax to replace the Switch elements



regards,

Davide

Edited by user 07 October 2013 16:02:58(UTC)  | Reason: Not specified

File Attachment(s):
Frommhold - Impedance (debug).sm (50kb) downloaded 18 time(s).
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline marcofk  
#3 Posted : 07 October 2013 14:25:33(UTC)
marcofk


Rank: Member

Groups: Registered
Joined: 01/02/2012(UTC)
Posts: 19
Location: UK

Was thanked: 8 time(s) in 4 post(s)
Can't get the thanks button to work on the forum, but: thanks very much!

P.S. I'm writing in English for the benefit of all Forum users, but I'm also Italian, albeit living abroad.
Offline Davide Carpi  
#4 Posted : 07 October 2013 16:06:56(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
You're welcome Good

P.S. I think that Andrey can solve the thank issue, if you contact him via pm
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.