This article applies to:
E-Prime 3.0
E-Prime 2.0
Symptoms
The .txt file you generate from the Chronos AnalogInRecord Task Event incorrectly populates the values in each row with the column headers for the .txt file, instead of the recorded analog input data.
Detail
You can record Chronos analog input data to a text file for later review. There are two means to do so that E-Prime supports: the ChronosAnalogInChannel.Record method in E-Basic script and the AnalogInRecord Task Event. Both methods require you to specify the analog in channel (1 through 5) for the input you want to record.
This image shows an example of an AnalogInRecord Task Event for Analog In Channel 2 in which you specify the channel number in the Custom field:
Workaround
Workaround 1:
Use the ChronosAnalogInChannel.Record method in E-Basic script instead of the equivalent AnalogInRecord Task Event.
For example, the line of code below is the equivalent analog input recording command for Channel 2 in E-Basic script:
'Specify the analog input channel number (1-5) within the parentheses.
Chronos.AnalogIn(2).Record
Workaround 2:
Manually copy and paste the Column Headings into the Row Definition field and vice versa for the Analog In Channel in your experiment's Chronos device settings. This image shows the default values for both fields:
This image shows the values after being manually switched so the generated .txt file contains the correct recorded analog input values:
See Also:
Using Chronos Analog Input with our Slider Accessory [34381]
INFO: Using Chronos Analog Input with a Force Sensing Resistor (FSR) [34291]
Comments
0 comments
Please sign in to leave a comment.