Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Help: can not communicate with TDS210 through RS232-RS232

I use the example"Tektronix TDS 200 1000 2000 Series Acquire Waveform.vi" from downloaded driver.

RS232 port tested ok.

The connection is ok.( RS232(PC)---RS232(Tektronix TDS210) )

Error is attached.

 

Please help. Thanks.

0 Kudos
Message 1 of 13
(5,661 Views)

Did you select the VISA resource name from the pulldown menu?

0 Kudos
Message 2 of 13
(5,643 Views)

Yes, I have selected com1, which connect to TDS210.

0 Kudos
Message 3 of 13
(5,631 Views)

1. Find TDS210 in MAX;

 

2.When error 1073807346 occured, the reason maybe:

 

LabVIEW provides you a configurable option to close VISA sessions. The Automatically close VISA sessions option allows open VISA sessions to close automatically when the top-level VI goes idle. This option helps you avoid potential problems the next time you run the VI. As a result, when you try to access that VISA session using a global variable, you can get an invalid VISA session error if you have the option enabled.

In LabVIEW 6.x and later, the Automatically close VISA sessions option is disabled by default. If you receive this error, check if you have this option enabled in LabVIEW. To disable the feature and eliminate the error message, you can follow the instructions below pertaining to your version of LabVIEW:

  • In LabVIEW 6.x and 7.x, select Tools»Options to display the Options dialog box and select Miscellaneous from the Category list page. To disable the option, remove the checkmark from the Automatically close VISA sessions checkbox and click the OK button.

  • In LabVIEW 8.x, select Tools»Options to display the Options dialog box and select Environment from the Category list page. To disable the option, remove the checkmark from the Automatically close VISA sessions checkbox and click the OK button.

 

0 Kudos
Message 4 of 13
(5,621 Views)

Thanks Ryan.

I will check Automatically close VISA sessions. My version is Labview 8.6. 

 

I connect TDS210 to my PC(Original COM port) through RS232(DB9). TDS210 can not be found in MAX when connected through RS232, Right?

0 Kudos
Message 5 of 13
(5,616 Views)

Absolutely NO!

 

TDS210 could be found in MAX if the driver has been installled properly. Therefore, it is the first step to find the card in MAX.

 

And then, you could test communication with TDS210 with the VISA test panel in MAX. If it could work, try the examples you find

0 Kudos
Message 6 of 13
(5,614 Views)

Driver was downloaded from NI website, should be ok. But I still can not find TDS210 in MAX, only can see COM port. Please kindly help to fix. Thanks.

 

1.JPG

0 Kudos
Message 7 of 13
(5,612 Views)

@RyanWhite wrote:

Absolutely NO!

 

TDS210 could be found in MAX if the driver has been installled properly. Therefore, it is the first step to find the card in MAX.

 

And then, you could test communication with TDS210 with the VISA test panel in MAX. If it could work, try the examples you find


That is just incorrect. You will never, ever see a specific instrument in MAX when it is connected to a com port. As navy1979 says, all you will see in MAX is the com port.

 

navy1979,

 

In MAX, are you able to right click on the com port and select 'Open VISA Test Panel'? If so, can you go to the Basic I/O tab, select vIWrite and do that without getting the error?

 

One last question. Is NI-VISA the only VISA you have installed? Or did you perhaps also install Tek-VISA?

0 Kudos
Message 8 of 13
(5,608 Views)

Thanks Dennis for the clarification.

 

I can select 'Open VISA Test Panel'. The test result is like below. viWrite has no error, viRead has error "BFFF0015".

 

NI-VISA is the only VISA installed in my PC, NO Tek-VISA. Please help.

 

max1.JPG

0 Kudos
Message 9 of 13
(5,597 Views)

error "BFFF0015" means timeout. To solve it ,you might try as following:

 

Run "Write" command first, and then "Read" command within 10s, because the default timeout value is 10s. Set it in I/O setting if you wanna change the time.

0 Kudos
Message 10 of 13
(5,519 Views)