06-12-2019 01:53 PM
What version of LabVIEW do you have? I can save for previous version.
06-12-2019 01:53 PM
This is the VI I have so far. Sorry if the description is too complicated but I don't know how to simplify it. It's a complicated thing I am trying to do.
06-12-2019 02:02 PM
LabView 2015. Thank you.
06-12-2019 02:08 PM
See the attached. This vi could still use a LOT of cleaning up. For instance, instead of the big while loop use a little one so that your not running code unnecessarily. I put the array code in a single FOR loop.
06-12-2019 02:13 PM - edited 06-12-2019 02:30 PM
@lucasphee wrote:
Basically I start with two arrays. One is angles and one is current. When than angle value is 0-180 degrees, and the current corresponding with that angle is negative, I want to multiply it by -1. If it is positive I want to leave it as it is. For 180-360 degrees if it is positive I want to multiply it by -1, and if it is negative I want to leave it as it is.
See if this solves your problem:
It probably can be simplified further.... (Yes, see below!)
06-12-2019 02:18 PM
06-12-2019 02:43 PM
Thank You!
06-13-2019 12:04 PM
Also note the solution does not involve any case structure or Boolean array. A proper question should only state what you want to do, now how you want to do it. Leave the "how" to us. 🙂