10-16-2024 10:39 AM
I cannot figure out how to convert from Labview mathscript to MatLab script.
I need a reference to do some very simple stuff.
Does anyone know of tutorials that would help with a conversion?
John
10-16-2024 12:52 PM
I cannot look at your VI (only access to LabVIEW 2020 at the moment), but I would start by just copying the text between the two nodes and create connectors as needed.
10-16-2024 11:04 PM
Is there a reason why you chose the Math script way instead of native LabVIEW functions?
10-17-2024 12:12 AM
Please see if this LabVIEW equivalent makes sense (I don't know what you intended with the logic, but this should match your Math script logic)
10-17-2024 08:37 AM
Thank you for the help in this matter.
I am working with some older course material.
I think the professor, at the time, wanted the students to exercise different aspects of LabView.
I started the students using the latest version of LabVIEW (2024) and found that not all previous course material would work.
I am working with other instructors to deliver the Lab material.
I am looking for methods to upgrade the course material and not rock the boat too much.
The intent of the script is to control a servo motor to move forward then reverse to imitate a waving motion. The user would set the values for the speed and the number of waves before initiating the go logic.
John
10-17-2024 10:55 AM
If this is a LabVIEW course, polluting it with Matlab is a distraction that will dramatically complicate things and distracts from the pure beauty of a dataflow language. Santo already showed how it could be implemented in pure g.