07-18-2013 10:28 PM
Instead of an Excel file, try writing to a Text file.
07-19-2013 03:23 PM
I tried writing it to a measurement file and it did work. It gave me the times at which I was switching the relay and the respective ones that were switched. I have one issue though. The only problem I have with this is that the timer starts from the moment I activate a relay instead of the moment I run the VI. I would rather have an output file that starts its timer from the moment I run the VI.
I am attaching the VI which is a slight modification of one of the VIs posted in the thread. Note that I am using two separate 'write to measurement file' palletes because integrating them to one is giving me some issues. I am relatively new to LabVIEW and would appreciate any help with regards to this. Thank you.
07-19-2013 10:08 PM
The timer is based on the system clock. It starts when you turn on your PC and increments every millisecond. It isn't tied to your first relay switch or to the start of the VI.
If you want it based on the starting time of the VI, place a trick count function in outside of the loop and wire that into the loop. Now subtract that value from the value coming out from the timer data node. Now you'll have milliseconds since your VI started.