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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

Presentation of values

Snowshoeman
12-Amethyst

Presentation of values

I attached abbreviated work sheets. Question regards echo sheet.

 

How do I pass secondary ohms to the matrix?  I can't seem to define the values as ohm(sec) in the matrix.  Secondary ohms are (ohms value) multiplied by (CTRW/PTRY).  I have a hunch that I don't have units set correctly in the definitions area.

 

I made an attempt at showing values using the table function.  That was a train wreck except I can set units as secondary ohms.

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:Snowshoeman)

Hmmm, why do you let us to jump through loops and make it so tedious for us to help?

We have to load all 3 sheets, have to find out the hard way which one is the main sheet calling the other two, We have to change the paths to the included files and finally are presented with a lot of irritating errors! Thats annoying.

It was just the pdf you posted which showed the array and explained what you actually want to achieve.

It would have been so easy if you just would have set up one small and simple demo worksheet: Define a new unit like Ohm_new : = 3* Ohm.

Define a matrix includíng text strings, values in Ohm_new and also values which are either unit less or have applied other units. Display this matrix and explain that you would like see Ohm_new instead of Ohm. That's all that's needed.

 

The short answer to your question is "You can't do it!".

Prime still does not allow to change the units for values inside a matrix.

 

You can change the unit for the whole matrix by using the unit place holder right after the matrix. But this would affect ALL entries of the matrix. So the unit-less 600 would show as 180 S - even worse, the matrix would not display at all as the unit you apply for the whole matrix would also be applied to the text strings in the matrix. And because you can't apply a unit to a string, you would get an error and nothing would be displayed.

 

To get at least approximately what you want to achieve you have to resort to workarounds and none of them are really satisfactory.

 

First workaround is to use unit-less values in the table by dividing the quantities by the desired unit and state the unit in the header of the appropriate column or row. Will only work OK if a whole column or a whole row as in your case consists of quantities of the same unit.

And, no, you can't use subscripts in strings.

Werner_E_0-1752563409260.png

 

A second workaround I could think of is turning the number to be presented into a string which includes the unit.

You may use a small utility program to do the job. Unfortunately Prime does not provide a function which would convert a variable or unit name into a string and so we have to provide both unit and name as function arguments, You also may consider making the precision (her fixed to 3 decimals) a fourth function argument:

Werner_E_1-1752563695095.png

 

As already mentioned - both workarounds are inadequate crutches and by no means provide a satisfactory result.

And splitting up the individual matrix areas is hardly an alternative that will be seriously considered here.

Werner_E_2-1752564163644.png

 

Prime 11 sheet attached

 

View solution in original post

8 REPLIES 8
ppal
17-Peridot
(To:Snowshoeman)

There is no units change going from Primary to Secondary reach values . CTR/PTR is unitless. 

 

You have errors 

ppal_0-1752544397634.png

And CTR primary and secondary should be inputs   CTpri= 600. CTSEc= 1 or 5    CTR. No need to define j    Just write 1j

ppal_1-1752544556999.png

 

ppal_4-1752544888541.png

no need to define kVA

Hope this helps

Snowshoeman
12-Amethyst
(To:ppal)

My real issue is that I'm getting Ohms.  I want Ohms secondary to show in the matrix at the bottom of the echo sheet.

All:  See attached screen shot.

ppal
17-Peridot
(To:Snowshoeman)

ppal_0-1752562469308.png

 

Werner_E
25-Diamond I
(To:ppal)


@ppal wrote:

ppal_0-1752562469308.png

 


Ouch!!! That hurts! 😉
The values in the table are not in Ohm and so the table would show wrong and misleading quantities!

Your suggestion is similar to the following

Werner_E_1-1752566146908.png

I could hardly agree with that.

Werner_E
25-Diamond I
(To:Snowshoeman)

Hmmm, why do you let us to jump through loops and make it so tedious for us to help?

We have to load all 3 sheets, have to find out the hard way which one is the main sheet calling the other two, We have to change the paths to the included files and finally are presented with a lot of irritating errors! Thats annoying.

It was just the pdf you posted which showed the array and explained what you actually want to achieve.

It would have been so easy if you just would have set up one small and simple demo worksheet: Define a new unit like Ohm_new : = 3* Ohm.

Define a matrix includíng text strings, values in Ohm_new and also values which are either unit less or have applied other units. Display this matrix and explain that you would like see Ohm_new instead of Ohm. That's all that's needed.

 

The short answer to your question is "You can't do it!".

Prime still does not allow to change the units for values inside a matrix.

 

You can change the unit for the whole matrix by using the unit place holder right after the matrix. But this would affect ALL entries of the matrix. So the unit-less 600 would show as 180 S - even worse, the matrix would not display at all as the unit you apply for the whole matrix would also be applied to the text strings in the matrix. And because you can't apply a unit to a string, you would get an error and nothing would be displayed.

 

To get at least approximately what you want to achieve you have to resort to workarounds and none of them are really satisfactory.

 

First workaround is to use unit-less values in the table by dividing the quantities by the desired unit and state the unit in the header of the appropriate column or row. Will only work OK if a whole column or a whole row as in your case consists of quantities of the same unit.

And, no, you can't use subscripts in strings.

Werner_E_0-1752563409260.png

 

A second workaround I could think of is turning the number to be presented into a string which includes the unit.

You may use a small utility program to do the job. Unfortunately Prime does not provide a function which would convert a variable or unit name into a string and so we have to provide both unit and name as function arguments, You also may consider making the precision (her fixed to 3 decimals) a fourth function argument:

Werner_E_1-1752563695095.png

 

As already mentioned - both workarounds are inadequate crutches and by no means provide a satisfactory result.

And splitting up the individual matrix areas is hardly an alternative that will be seriously considered here.

Werner_E_2-1752564163644.png

 

Prime 11 sheet attached

 

I included all three work sheet as I thought I might be carrying or complicating an issue with multiple definition areas in each sheet.  I wanted to show the whole picture.  I will simplify next time.

 

I very much wish that I could show units with subscripts in the matrix, I guess that not here today.  One program I use regularly gives values in ohms.  But the program that we input values into use secondary ohms.  So it is extremely important what units of ohms are represented.

 

Thanks again!

I guess I should have said subscripts in strings....

Announcements

Top Tags