cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

plotting issue -this variable is undefined

Marius_P
6-Contributor

plotting issue -this variable is undefined

Hello,

 

I have some difficulties to plot on a XY axes system, the efficiency of a voltage converter. I want to have on the x-ax the output current in Amps, and on the y-ax the result in % for a specific switching frequency value.

The error that I got is related to the fact that the variable from the x-ax is undefined.

Could you help me please to understand what is wrong?

 

Thank you!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Its not a good idea to omit units as its one of the strengths of Prime to be able to naturally deal with units.

Instead of using Io dimensionless and adding the unit Ampère just when you call the function, you should rather use a range variable with units for Io.

You may also consider formatting the function values as percent instead of multiplying with 100.

For further questions you sure should attach your Prime worksheet (and state which version you are using) instead of posting just pictures.

View solution in original post

6 REPLIES 6

Hi,

you picture contains large white area. Please use Snip&Sketch application to get picture of specific screen area.

Also upload Mathcad file if it is possible.


Martin Hanák
Marius_P
6-Contributor
(To:MartinHanak)

Hello Martin,

 

Please find attached the capture using snip & sketch tool.

Hi,

also upload Mathcad file if it is possible.


Martin Hanák

Because you are using units on variable "Io" you can't use the quickplot feature of Prime.

You have to define a "Io" as a range to be used for plotting in front of the plot. Something like Io:=0A, 0.1A .. 120A.

Marius_P
6-Contributor
(To:Werner_E)

Hello Werner,

 

Yes, I noticed that the units have an influence, and I did a small change, please see it attached.

 

Thank you!

Its not a good idea to omit units as its one of the strengths of Prime to be able to naturally deal with units.

Instead of using Io dimensionless and adding the unit Ampère just when you call the function, you should rather use a range variable with units for Io.

You may also consider formatting the function values as percent instead of multiplying with 100.

For further questions you sure should attach your Prime worksheet (and state which version you are using) instead of posting just pictures.

Top Tags