DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot write to file, wrong data type.

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?

0 Kudos
Message 1 of 4
(6,409 Views)

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.

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 2 of 4
(6,408 Views)

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.

0 Kudos
Message 3 of 4
(6,406 Views)

Can you post the *.dsb, or private message it to me? 

The image doesn't tell me what the module settings are... I'm suspecting the counter, however.

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 4 of 4
(6,380 Views)