03-13-2009 09:53 AM
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
03-13-2009 10:19 AM
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?
03-13-2009 10:21 AM - edited 03-13-2009 10:23 AM
03-13-2009 10:28 AM
03-13-2009 10:31 AM
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.
03-13-2009 10:44 AM
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 🙂
03-13-2009 10:44 AM - edited 03-13-2009 10:47 AM
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
03-13-2009 11:23 AM
The i you're missing is just a complex number 0 + 1i.
The rest is, as altenbach says, just math.
03-13-2009 01:13 PM
03-13-2009 03:19 PM
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