04-17-2008 03:44 AM
Hi
I have function call from VB Application which i call ilrd Dev% ,Valuestr,12
Whenever i call this, below command [ usually ilwrt ] get timeout error,
tried giving sleep,timer etc options which was available in net ,Any solutions?? mathew.m@nestgroup.net
Regards
Mathew M
+91-9895519102
04-18-2008 08:05 AM
I have function call from VB Application which i call ilrd Dev% ,Valuestr,12
After i call this command machine takes 10-15 sec and get time out error, my next caommand call is ilwrt ..
Is there any specific settings need to done for ilrd timeout wither on machine or on vb code
Any solutions?? mathew.m@nestgroup.net
Regards
Mathew M
+91-9895519102
04-18-2008 09:02 AM
04-18-2008 09:29 AM
04-21-2008 12:11 AM
Hi Rasheel
Thanks for the repy,please see few section of my vb Call ,my machine is JDS - FITEL, with GPIB0 card ,i amnot sure whether it is hard ware setting, i have onlyproblem in reading not on writing ,its communicating with GPIB for sure
Code Below:: ---- SInce this post allows 1000 characters , only errorCeck is written
StatusDisplay "Switch to Relative Power..." 'Displays Status on Form
ilwrt Dev%, "*A05E" + Chr$(13) + Chr$(10), 7
-- errorCeck
StatusDisplay "Switch to 1.3 for IL..."
ilwrt Dev%, "*A41E" + Chr$(13) + Chr$(10), 7
-- errorCeck
msg = MsgBox("Take Reference value @1310WL", vbOKCancel)
If msg = vbOK Then
ilwrt Dev%, "*TREF" + Chr$(13) + Chr$(10), 7
-- errorCeck
Else
Exit Sub
End If
ilwrt Dev%, "*TDO" + Chr$(13) + Chr$(10), 6
-- errorCeck
'Comments ------> Problem STARTS After this ilrd call,see the write call comments
ilrd Dev%, ValueStr, Len(ValueStr) 'ilrd call
' iltmo T10s, 13
-- errorCeck
sReadData = Left$(ValueStr, ibcntl& - 2)
sReadData = Right$(sReadData, 6)
sMaxIL1310 = sReadData
MsgBox "end reading" + sMaxIL1310
StatusDisplay "starts Switch to 1.5 for IL..."
'Comments ------> Here its take 10- 15 seconds and Show timout error
ilwrt Dev%, "*A05E" + Chr$(13) + Chr$(10), 7
-- errorCeck
ilwrt Dev%, "*A42E" + Chr$(13) + Chr$(10), 7
'- check up to this
------ code continues---
End Sub
Thanks & Regards
Mathew M
04-21-2008 12:16 AM
Hi Dennis
Code Snippets are posted abouve, my machine is JDSU not JGR with GPIB0 Card ,Single channel used for caliberation of cables.
Thanks & Regards
Mathew M
+91-9895519102
04-22-2008 11:06 PM
Dear All,
Any suggesions about my queries??? help needed.
I have problem while i call ilrd function ilrd Dev%, valustr$,Len(valuestr)
its wait for 10-15 seconds then time out error
i believe that its taking values long time for ilrd call, reading from buffer..tried trim/timeout function etc
is it hard ware of software problem?? if i give dummy ilrd call [meana again i call the same ilrd call just below the previous ilrd call] ,it getting faster for the first time ..can't identify the problem still help needed urgently
regards
mathew m - mathew.m@nestgroup.net
04-22-2008 11:18 PM - edited 04-22-2008 11:19 PM
04-24-2008 03:59 AM
Hi Dennis
Sorry for the dealy , TDO sends data out from the device ..but its not the problem yet beacouse i put the ilrd call ont he very fast line after the first ilwrt call result is the same , tried MAX command it s came out with no error, second time i call the ilrd the it does not have any problem ..
ilrd first call wherever in my code is the coause, after that any ilrd call will work smoothly with out timeout error
04-24-2008 06:43 AM - edited 04-24-2008 06:44 AM