free42 dm42 MVAR question
|
01-26-2024, 02:58 PM
Post: #1
|
|||
|
|||
free42 dm42 MVAR question
I wrote two simple solver programs XL and XC. Both use a MVAR F (frequency).
After I gave an input for F to one of these and ran one the content of F has changed when I run the the other. Neither of both does change the content of F. Why does it change? As far as I know all MVARs are global, a MVAR of name X used in one prgrm is accessible to a MVAR X used in another prgrm. Is this correct? |
|||
01-28-2024, 12:56 AM
Post: #2
|
|||
|
|||
RE: free42 dm42 MVAR question
MVAR doesn't make a variable global or local. The only thing MVAR does is to declare which names should be listed in the VARMENU, solver, and integrator menus, when the LBL preceding the MVARs is selected.
|
|||
01-28-2024, 05:19 PM
Post: #3
|
|||
|
|||
RE: free42 dm42 MVAR question
Maybe post the code here so we can take a look?
|
|||
01-28-2024, 05:24 PM
Post: #4
|
|||
|
|||
RE: free42 dm42 MVAR question
(01-26-2024 02:58 PM)kladit Wrote: Is this correct? I assume that your programs are similar to these: Code: 00 { 34-Byte Prgm } Code: 00 { 31-Byte Prgm } I use the first one with: SOLVER and select XC. I then entered \(f=60\) and \(C=1E-6\) and calculated \(X_C\): XC=2652.5824 I use the second one with: SOLVER and select XL. Now the variable f still contains 60. This can be verified with: RCL "f" Only when you just hit "f" the frequency might get recalculated based on the values of "L" and "XL". If that doesn't help let us know what exactly you are doing. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)