Support Forums
Oninsert

I have a DT80, series 3. I have set up two channels to record data from sensors. i have set up a job and schedule. The DT80 is working fine, reading sensors and recording data. i can view/download data using DTUsb interface. I am now trying to set up a USB flash drive that has Oninsert.dxc file on it to read/download newest data to the flash drive.

I cannot seem to get this to work. the flash drive is FAT32. It was originally 8 GB but i was able to resize it to 2.01GB. The cluster size is 4 KB. this was the only cluster size i could use to reduce the volume size to 2GB.

After plugging the flash drive into the DT80, the LCD screen will display the message "reading USB device" for about 3-5 minutes before prompting me to "Run ONINSERT?". i acknowledge this, it displays "Processing ONINSERT.DXC". it finishes quickly. when i plug the flash drive into my computer to read the data that was downloaded, i find that there is no data. the only file on the flash drive is the ONINSERT.DXC file.
can anyone help me?
thanks.

I have a DT80, series 3. I have set up two channels to record data from sensors. i have set up a job and schedule. The DT80 is working fine, reading sensors and recording data. i can view/download data using DTUsb interface. I am now trying to set up a USB flash drive that has Oninsert.dxc file on it to read/download newest data to the flash drive. I cannot seem to get this to work. the flash drive is FAT32. It was originally 8 GB but i was able to resize it to 2.01GB. The cluster size is 4 KB. this was the only cluster size i could use to reduce the volume size to 2GB. After plugging the flash drive into the DT80, the LCD screen will display the message "reading USB device" for about 3-5 minutes before prompting me to "Run ONINSERT?". i acknowledge this, it displays "Processing ONINSERT.DXC". it finishes quickly. when i plug the flash drive into my computer to read the data that was downloaded, i find that there is no data. the only file on the flash drive is the ONINSERT.DXC file. can anyone help me? thanks.

Hi Joseph,

You may check service log for any error in your ONINSERT.dxc file.
When the logger runs ONINSERT file you can take a peek thr download/ upload process through any terminal interface such as DeTransfer.
If you made a mistake on one of the line, you will see it in dataTaker response.

4kB cluster is a bit hard for dataTaker to cope, I recommend you to use 8kB or more.

Best regards,
Rudy Gunawan

Hi Joseph, You may check service log for any error in your ONINSERT.dxc file. When the logger runs ONINSERT file you can take a peek thr download/ upload process through any terminal interface such as DeTransfer. If you made a mistake on one of the line, you will see it in dataTaker response. 4kB cluster is a bit hard for dataTaker to cope, I recommend you to use 8kB or more. Best regards, Rudy Gunawan

successful at setting cluster size to 8KB.
also resized partition to 1.94GB, FAT32
ONINSERT.DXC still does not work
commands are as follows:
BEGIN "save_data" 'begin job

COPYD dest=a: format=csv start=new archive=n alarms=n
RUNJOB "config"

END

Job "config" is the default job set up using dtusb. two channels are configured and data is logged 1 / hour.

successful at setting cluster size to 8KB. also resized partition to 1.94GB, FAT32 ONINSERT.DXC still does not work commands are as follows: BEGIN "save_data" 'begin job COPYD dest=a: format=csv start=new archive=n alarms=n RUNJOB "config" END Job "config" is the default job set up using dtusb. two channels are configured and data is logged 1 / hour.

Hi Joseph,

It could be non recognisable control characters or byte order mark (BOM). How do you save this file?

BOM will cause an error at the first line, and if the first line is BEGIN then you will lose all program.
You may add one additional line (just define a single letter H for halt) to trap BOM.
Or (if you are using a Notepad ++) make sure you select UTF-8 encoding without BOM.

Notes:
You may try to take a peek into the error by enabling DeTransfer connection when you insert the stick.

Best regards,
Rudy Gunawan

Hi Joseph, It could be non recognisable control characters or byte order mark (BOM). How do you save this file? BOM will cause an error at the first line, and if the first line is BEGIN then you will lose all program. You may add one additional line (just define a single letter H for halt) to trap BOM. Or (if you are using a Notepad ++) make sure you select UTF-8 encoding without BOM. Notes: You may try to take a peek into the error by enabling DeTransfer connection when you insert the stick. Best regards, Rudy Gunawan
75
4
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft