08-08-2012 01:40 PM
I have a program where I read data and analyze it and write out the results to a file. I am trying to do something similar and record the high/low 's of my switches. However, after passing them through the chart (where all is fine, 5's and 0's), trying to write it out to a file using ASCII in the Write module stops the run immediately and gives a "wrong data type" error for that module. What am I doing to cause this problem?
08-08-2012 01:46 PM
The ASCII file format requires that there be a data value for each incoming channel at each time stamp... in other words, in complete rows.
Your worksheet is possibly using a Relay to separate the highs and lows? then you need two files.
If you want to post the worksheet, then we can look at it and figure out what you've done and a way to overcome it.
08-08-2012 01:52 PM
This is how my file looks like. Inside the black box is a bunch of counters that flip when low reaches an inputted value, and vice versa to flip the switch.