![YOKOGAWA 704420 User Manual Download Page 124](http://html.mh-extra.com/html/yokogawa/704420/704420_user-manual_911156124.webp)
8-53
IM 704420-01E
Communication Function
8
msg =
"
:CALCULATION:SNUMBER?
"
+ term 'Get Sample Number value
sts = ilwrt(Dev, msg, Len(msg))
If (sts < 0) Then
Call DisplayGPIBError(sts, msg)
GetStatistics = 1
Exit Function
End If
sts = ilrd(Dev, qry, Len(qry))
If (sts < 0) Then
Call DisplayGPIBError(sts, msg)
GetStatistics = 1
Exit Function
End If
Query(10) =
"
Sample Num:
"
+ Left$(qry, ibcntl - 1)
Call ibonl(Dev, 0)
GetStatistics = 0
End Function
——————————————————————————————————————————————————————————————————————————————————————————————————
8.9 Sample Program