LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

physics equations

Hello everyone. I'm trying to create a cole-cole model in labview. The main problem that I'm having is representing the letter "j" (which is square root of -1). Attached is the actual formula, where all other parameters are constants, apart from "j".

 

I tried doing a simple example that has the imaginary part at the denominator but it doesn't really work well, because the imaginary part does to the power of (1-Alpfa). 

 

Any help in this will be most appreciated

 

Thanks

0 Kudos
Message 1 of 11
(3,766 Views)

Your image (moz-screenshot.jpg) is still located on your own computer, so only you can actually see it. You need to attach it.

 

Anyway, why don't you attach your VI. I assume you are using complex datatype (CDB) for all this. Are you?

0 Kudos
Message 2 of 11
(3,741 Views)
In the numeric section of the functions palette there is a complex section. Check if any of those functions help. Using a mathscrip node may be easy also, then you could just type in the equation and matlabs default for the variable 'i' is sqrt(-1)
Message Edited by for(imstuck) on 03-13-2009 10:23 AM
0 Kudos
Message 3 of 11
(3,737 Views)
Isn't it a complex number? If so, simply use values of corresponding types (CSG, CDB, or CXT) and Complex palette (if there is a need).
_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 4 of 11
(3,729 Views)

for(imstuck) wrote:
In the numeric section of the functions palette there is a complex section. Check if any of those functions help.

No need for mathscript. Virtually all math functions (not just the ones in the complex palette) correctly support complex datatype, so just wire your complex number to e.g. x^y and you'll get what you need.

Message 5 of 11
(3,724 Views)

altenbach wrote:

for(imstuck) wrote:
In the numeric section of the functions palette there is a complex section. Check if any of those functions help.

No need for mathscript. Virtually all math functions (not just the ones in the complex palette) correctly support complex datatype, so just wire your complex number to e.g. x^y and you'll get what you need.


I was just thinking an equation like that may be easier to just type in 🙂

0 Kudos
Message 6 of 11
(3,711 Views)

Sorry for the attachment. I thought it worked.I'm reattachning this again.

I'm at the moment in a different computer so I cannot send my failed VI at the moment. However, no matter how I think of it, I cannot come up with a way of rearranging the complex data functions correctly, so that I can isolate "i" and use it how I want.

 

P.S. For these sort of problems, (i.e. simulations of some sort), is it better to use matlab or other script language or LabView. Anyway, my aim is to do thi on Labview.

 

Thanks again.

 

Kas 

Message Edited by zerotolerance on 03-13-2009 10:47 AM
0 Kudos
Message 7 of 11
(3,708 Views)

The i you're missing is just a complex number 0 + 1i.

The rest is, as altenbach says, just math.

 

0 Kudos
Message 8 of 11
(3,678 Views)
Are you familiar with complex datatypes?
-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 9 of 11
(3,640 Views)

I am quite familiar with complex data type, and the labview programming overall. The reason why I can't think of a solution is because of "j", because "j" to the power of 2 or (j^2) becomes -1, and j^3 = 1 and so on. All that I actually require is the sign (+ or -) rather than jumping from real to imaginary and vesa versa.

When I go tomorrow morning home I'll post a Vi that I was working on to give you guys an idea.

 

Once again, thank you for all of your replies.

 

 

Thanks

 

Kas

0 Kudos
Message 10 of 11
(3,620 Views)