vignesh90 Posted November 2, 2016 Share Posted November 2, 2016 I'm relatively new to LabVIEW and PMACPanelPro2 so pardon my ignorance. I move a motor with the "Jog To" button in the Motor Jog Control Cluster. The mechanical action of the button is set to Latch when Pressed. I need to synchronize the motor movement with a data logging operation. I use a 'Save' button to start logging, which is set to Switch when Pressed. I want to start the motor movement 2 seconds after the logging starts. The flow I want is Run VI -> click Save -> wait for 2 seconds -> programmatically click "Jog To" -> Stop VI after motion is complete. How do I go about programming the click action for the "Jog To" button? Uploaded the code 'Force_triggered.vi' here: https://www.dropbox.com/s/qwxq7hdkvgnidfb/Force_triggered.vi?dl=0 To explain a little better: I'm working with an NI DAQ and a Turbo PMAC. I need some sort of a trigger for the Jog. Currently, in the 'Force_triggered.vi' , I use the Motor Status Jog Cluster to trigger saving the data from DAQ. What I want to do is to start logging the data and then automatically Jog the motor, a few seconds after "Save" is pushed. I tried state machine. Uploaded the code 'Force_delay.vi' here: https://www.dropbox.com/s/d5hwzfzl651fb3k/Force_delay.vi?dl=0 The 2 second delay seems to generate a DAQ buffer error. Attached a screenshot of the error as well. I've never worked with state machine before, so again, pardon my ignorance. Any help would be greatly appreciated! Thanks! Link to comment Share on other sites More sharing options...
steve.milici Posted November 10, 2016 Share Posted November 10, 2016 This appears to be an error generated by the National Instruments’’ LabVIEW product. I would suggest contacting their technical support for more information on the error. We can help with any direct issues with one of our VIs. Link to comment Share on other sites More sharing options...
Recommended Posts