LabVIEW-DCAF / MotionModule

The DCAF Softmotion module is aimed towards simplifying the experience of creating embedded motion systems.
Apache License 2.0
2 stars 1 forks source link

Moved Read and Check Faults outside of the main state #71

Closed SimonRPSM closed 6 years ago

SimonRPSM commented 6 years ago

Created Read utility (Fixes #62)

Moved the Fast Read and Full Read outside of the main structure. This allows for reading the position, velocity, IO, etc in any of the non-startup states.

Furthermore, moved the Check Faults logic to within the Full Read. If bit 13 is True, then it will Check Faults for every axis. This is a long process, so it's likely for the system to run late during the iteration.

This fixes #42 - somewhat. I may return to this to optimize for speed.

Between these, this also fixes #46

Finally, also fixes #47

DCAF-Builder commented 6 years ago

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

MotionModule runtime.lvclass--input.vi.png: capture

MotionModule runtime.lvclass--output.vi.png: capture

MotionModule runtime.lvclass--process.vi.png: capture

MotionModule runtime.lvclass--user initialization.vi.png: capture

MotionModule runtime.lvclass--user process.vi.png: capture

SoftmotionAxis.lvclass--CheckFaults.vi.png: capture

SoftmotionAxis.lvclass--ClearFaults.vi.png: capture

SoftmotionAxis.lvclass--Read_Fast.vi.png: capture

SoftmotionAxis.lvclass--Read_Full.vi.png: capture

SoftmotionAxis.lvclass--Stop.vi.png: capture

SoftmotionAxis.lvclass--Update_Results.vi.png: capture

WordManipulationLibrary.lvlib--Controlword_CommandToWord.vi.png: capture

WordManipulationLibrary.lvlib--Controlword_ReadMode.vi.png: capture

WordManipulationLibrary.lvlib--Controlword_WordToCommand.vi.png: capture

WordManipulationLibrary.lvlib--Parameters_Get_Mode.vi.png: capture

WordManipulationLibrary.lvlib--Parameters_Get_Position.vi.png: capture

WordManipulationLibrary.lvlib--Parameters_Get_Reference.vi.png: capture

WordManipulationLibrary.lvlib--Parameters_Get_Stop.vi.png: capture

WordManipulationLibrary.lvlib--Results_Get_ReadFull.vi.png: capture

WordManipulationLibrary.lvlib--Statusword_StateToWord.vi.png: capture

WordManipulationTests.lvlib--Test_ReadFast.vi.png: capture