AnsweredAssumed Answered

Agilent 34970A measuring multiple channels without a scanlist

Question asked by konrad on Feb 25, 2016
Hi Experts,

I am trying to measure three channels manualy, without a defined scanlist. This is the code I am using:

If frmMain.cbxAgilent.Checked = True Then
                    excelRow = Array.IndexOf(tc_test, "2.6") + 1
                    frmMain.SerialPort3.WriteLine("MEASure:VOLTage:DC? (@112)")    
                    Helper.Sleep(1500)
                    frmMain.agilent_value = frmMain.SerialPort3.ReadExisting()
                    frmMain.dc_voltage = Math.Round(Val(frmMain.agilent_value), 2)
                    frmMain.xlWorksheetActive.Cells(excelRow, 8) = frmMain.dc_voltage
                End If

                '*************** TC2.7 *******************************
                If frmMain.cbxAgilent.Checked = True Then
                    excelRow = Array.IndexOf(tc_test, "2.7") + 1
                    frmMain.SerialPort3.WriteLine("MEASure:VOLTage:DC? (@113)")     
                    Helper.Sleep(1500)
                    frmMain.agilent_value = frmMain.SerialPort3.ReadExisting()
                    frmMain.dc_voltage = Math.Round(Val(frmMain.agilent_value), 2)
                    frmMain.xlWorksheetActive.Cells(excelRow, 8) = frmMain.dc_voltage
                End If

               '*************** TC2.8 *******************************
                If frmMain.cbxAgilent.Checked = True Then
                    excelRow = Array.IndexOf(tc_test, "2.8") + 1
                    frmMain.SerialPort3.WriteLine("MEASure:VOLTage:DC? (@114)")    
                    Helper.Sleep(1500)
                    frmMain.agilent_value = frmMain.SerialPort3.ReadExisting()
                    frmMain.dc_voltage = Math.Round(Val(frmMain.agilent_value), 2)
                    frmMain.xlWorksheetActive.Cells(excelRow, 8) = frmMain.dc_voltage
                End If

This code works, but only with the  Helper.Sleep(1500)-Call. Otherwise den Logger generates the error "521
Communications: input buffer overflow".

Isn't it possible to measure more than one channel withou a scanlist? Whay does I have to use the sleep time between the measurements ?

Thank you for your help!  

Outcomes