09-13-2006 06:36 AM
Thanks Simon,
1. How should I be "opening" the file. I tried many variations and this was the one which seemed to work. Maybe I shouldn't be using the while loop? I found that if I tried to open the file outside of the case it wanted to open a new file on every scan.
2. Perhaps I misunderstood the purpose of the "stop" input on the DAQ assistant. I have since noticed that this vi runs the same if the input is not wired. Also I thought that acquiring N samples would do just that. I wanted to capture for an indeterminant amount of time, depending on how long the machine is in motion. Therefore I do not know how many samples I need to acquire.
3. I want to write one file for each movement. If it takes 2 minutes, I still want it all in one file. What is the source of these "gaps" you speak of? Does it have to do with the way the case passes data out to the write binary.vi? I don't understand where else I could have placed the "write" in relation to the DAQ assistant.
4. I'll try the wait function to see how it affects the operation.
I want to thank all of you for your help. I have spent many years programming PLC's, but they did not use loops. Based on the comments I am seeing I need to study the operation of loops to better understand what happens. Most of this feedback suggests ways of doing things that I have not even considered. Back to the books....
Thanks
technomage
09-13-2006 11:04 PM