03-27-2024 09:14 AM
Hi, there is an error in the initialization vi in library "Tektronix TBS 2000 Series", version 2020 and 2021, check the expected response form *idn? query
03-28-2024 07:56 AM
My first response would be that you are missing the return character during the NI-VISA write.
Next, you need to add probes:
This should provide you with insight as to where the issue may be occurring.
03-28-2024 08:22 AM
The instruments respond at "*idn?" query, but the prefix string in the subvi (TEKTRONIX,TBS1072C\nTEKTRONIX,TBS1072C\n) is wrong, must be "TEKTRONIX,TBS1072C"
03-28-2024 08:35 AM
That code is using an asynchronous VISA Read and as such will NOT gather anything after the termination character which would include the newline (\n) character. You will need to update the value in the Array.
It would be easier if the array was built through a config file rather than needing to update the code each time a new instrument is added.