LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

appending to text file

Hello everyone

I am working on a galil motor controller for a stepper motor. I have a fully functioning code for the stepper motor but I am now trying to create a data file to log the motors activity. I have created two attempts at appending to a file everytime the motor changes position. One of my attempts was a shift register using a while loop, it works the only problem with it is that it is constantly running. This makes the motor run constantly so if I set an angle itll try to keep setting it as long as the while loop is running.

Attached is my VI I have worked very hard at this. Please let me know how i could fix it

Thanks

0 Kudos
Message 1 of 2
(2,285 Views)

You write to the file before setting the pointer to the end.  Here, I made a very simple edit that should get you going.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,282 Views)