06-20-2019 05:20 AM
Hi everyone, I'm desperate of keep searching for the solution. I'm using NX 12 and I tried all the command of if function I found but nothing works.
My case: I'm trying to do this command: if "displacement sensor != 0" then "force == 100" else "force == 0"
What I wrote in Function: IF(Se002 != 0)(100) ELSE (0)
I have also tried: IF(Se002 != 0, 100, 0)
I enter this function creation within a vector force creation. I clicked Vector force, chose the link, base etc., then at Magnitude I chose Function, enter Function Manager, create.
Is there something I don't understand? What kind of Syntax is this? I know Python, Java but this isn't any of them, C++ is also different. And I can't seem to find in Help where they actually show how to use the function
Thanks for reply, I will be very very appreciated
Solved! Go to Solution.
06-20-2019 05:36 AM
Hello,
All functions of the Simcenter 3D Motion solver are documented in the Online Help. Attached you find a document from the OLH explaining the different functions, including the IF function.
Based on the information underneath, I would say you need next function:
IF(Se002,100,0,100)
Regards
06-20-2019 05:45 AM
06-20-2019 05:48 AM
You're right, it should be:
IF(Se002:100,0,100)
Regards
06-20-2019 05:52 AM