Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VBA automation to get the selected channel in oscilloscope

Hello,

 

I am trying to get which channel (1 or 2 or 3 or 4) is selected in Oscilloscope?
I tried to get the View property of the channels like below:

     app.Acquisition.C1.View // but there can be multiple channels whose view property is also true.

 

 

My problem is there can be more than 1 channels whose view property is also True (depend on if you toggle the channel or not). So I am unable to identify which channel is selected . (Here selected means - light on)

 

Thanks in Advance

Rahul

0 Kudos
Message 1 of 3
(4,487 Views)

Hi Rahul,

 

please ask your question in the forum. PMs aren't the proper way to go here!

 

Is your question related to any NI hardware or software?

 

Your thread title mentions VBA, so you should ask in a Microsoft forum dedicated to VBA!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(4,456 Views)

@rahulkantyadav wrote:

Hello,

 

I am trying to get which channel (1 or 2 or 3 or 4) is selected in Oscilloscope?
I tried to get the View property of the channels like below:

     app.Acquisition.C1.View // but there can be multiple channels whose view property is also true.

 

 

My problem is there can be more than 1 channels whose view property is also True (depend on if you toggle the channel or not). So I am unable to identify which channel is selected . (Here selected means - light on)

 

Thanks in Advance

Rahul


Read the programmer's manual for that model of oscilloscope.

 

 

0 Kudos
Message 3 of 3
(4,441 Views)