USB issues

The dataTaker DT82I is a smart data logger designed especially for industrial applications

USB issues

Postby paddy » Fri Oct 14, 2016 1:37 am

I am looking for advice on an issue i am having with a DT82I it was setup to record data at 0.5 second intervals which was producing to many rows of information for excel to produce a spreadsheet of a weekly download which is how i was hoping it would work, subsequently i have a new oninsert file written and i thought that after inserting this file if i was to remove the usb clear it of files and reinsert it the data taker would then output a file every hour to the usb stick.

unfortunately it is not working i was wondering if anyone could see if there was something wrong with the parameters that have been inputted.

DELALLJOBS

BEGIN"config"
' Generated by dEX Configuration Builder Version 1.29.1924 (Firmware Version 9.08.3932)
' Target device: DT82I-3
password=""

S1=0,2500,0,100

' User defined
200CV=0

RS1S
RA"Schedule_1"("b:",ALARMS:OV:100KB:W60,DATA:OV:900MB)500T:200~CV
LOGONA
1*L(N,"Pressure_1~PSI",LM,S1,NA,100)
1+L(N,"Pressure_2~PSI",LM,S1,NA,100)
1-L(N,"Pressure_3~PSI",LM,S1,NA,100)
1DS("handle",LM)

' User defined
1PE(=1CV,w)


' User defined
2CV(w)=(1CV/4000)


' User defined
2CV("Turns: ",FF3)

RB"USB"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)1H
LOGONB

' User defined
ALARM(9SV>0.5)200CV,1WARN{COPYD start=new dest=a: format=csv archive=y; REMOVEMEDIA}


END
Last edited by paddy on Fri Oct 14, 2016 3:37 pm, edited 1 time in total.
paddy
Newbie
 
Posts: 3
Joined: Fri Oct 14, 2016 1:19 am

Re: USB issues

Postby Rudy Gunawan » Fri Oct 14, 2016 11:23 am

Hi Paddy,

dEX program is not the same as text program, when you want to program dataTaker through USB stick you were using text program.
dEX program recognise only a single job name which is "CONFIG" therefore you can only have one job written in dEX in dataTaker.
While in text program, you can have many jobs with different name as long as there is a free memory.

Your program was written in dEX, which I can see on the job name.
So when you want to re-written the job using the same name "CONFIG" while not deleting the old one, dataTaker will give an error.
Please note if you are doing this overwriting as text program you can no longer access your program via dEX as those two are not interchangeable.

Best regards,
Rudy Gunawan
Rudy Gunawan
Guru
 
Posts: 409
Joined: Sun Apr 29, 2012 12:28 am

Re: USB issues

Postby paddy » Fri Oct 14, 2016 3:08 pm

Rudy,

Thanks for the reply,I need to apologise for a poor copy and paste i have missed a DELALLJOBS at the top of the page, i am aware of the fact that i can't use Dex i don't need to use it if this program is correct i am just interested in the outputted file to USB. i was just wanting some verification that the coding was correct. are you saying that due to this originally being produced in Dex and then manipulating it to suit it won't work as a text program? the issue is that i get an outputted file an hour after this program is running but that is all i get, i had hoped it would send an hourly file to the usb if it was plugged in.

thanks again

Paddy
paddy
Newbie
 
Posts: 3
Joined: Fri Oct 14, 2016 1:19 am

Re: USB issues

Postby Rudy Gunawan » Mon Oct 17, 2016 10:13 am

Hi Paddy,

If you want to have hourly file in your USB stick please remove REMOVEMEDIA from COPYD declaration.
That action will "soft" detach your stick from dataTaker (9SV will turn to 0, similar to safe removal in your PC).
So even physically the stick is still attached, you can't save any data in it.

Rather than using this:
ALARM(9SV>0.5)200CV,1WARN{COPYD start=new dest=a: format=csv archive=y; REMOVEMEDIA}

Please use this
DO{COPYD start=new dest=a: format=csv archive=y}

Best regards,
Rudy Gunawan
Rudy Gunawan
Guru
 
Posts: 409
Joined: Sun Apr 29, 2012 12:28 am

Re: USB issues

Postby paddy » Thu Nov 10, 2016 5:04 pm

Rudy,

Thanks that worked just right.

Paddy
paddy
Newbie
 
Posts: 3
Joined: Fri Oct 14, 2016 1:19 am


Return to DT82I

Who is online

Users browsing this forum: No registered users and 1 guest

cron