+1 vote
103 views
ago in Software by Gabriel Bernardes (13 points)

Hello. I've recently been creating a schematic in Typhoon HIL control center, and I've come across a problem during validation. The following error appears:

"ERROR in 'post_resolve' handler registered on component 'Triangular Wave Source1', line 18 (' if max_val_len != out_size:'): can't multiply sequence by non-int of type 'str'"

It's related to a triangular signal source that I'm using for my modulator. Below is the schematic that I'm trying to implement. I've tried changing the output type of the triangular source, but there's no such option. How can I resolve this?

2 Answers

0 votes
ago by Jovan Zelic (168 points)
Hi Gabriel,

Can you share what the values for the properties on the component mask are? It seems that value of one of those is not appropriately set.
+1 vote
ago by Predrag Nuždić (26 points)

Hi Gabriel,

This error most commonly occurs in python when you try to multiply 2 string type variables. You would usually solve this by casting those variables to a numeric type such as float with 'float(my_var)'. Based on the error, you haven't set the properties of the Triangular wave source correctly, but it would be best if you've could share your schematic as it would help us solve the issue more easily. 

The output for the triangular wave source is a scalar or a vector of types int, uint, or real so keep that in mind when designing your system. You can read more about it here .

Best regards,

Predrag.

...