Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

tkds5000 Getting Started.vi crashes

When I try to run the tkds5000 Getting Started.vi, it gives me the following error message:

"Error -1073807297 occurred at tkds5000 Configure Channel.vi

Possible reason(s):
Driver Status: (Hex 0xBFFF003F) A format specifier in the format string is invalid.

Primary Error: (Hex 0xBFFF003F) A format specifier in the format string is invalid.
Secondary Error: (Hex 0xBFFC0003) Parameter 3 out of range, or error occurred while setting Parameter 3.
Elaboration: Range"

It doesn't seem to matter what I insert for the vertical range, I still get this error.
0 Kudos
Message 1 of 9
(4,883 Views)
This error suggests that the input parameter is in invalid format, check the format of the string you entered and also it would be helpful if you can find the instrument's user manual and find out what should be the range of this parameter.

If you still have trouble with this error, you can paste the configurations here so we can see what you put for this input.
0 Kudos
Message 2 of 9
(4,862 Views)
Hi,

Which version of VISA are you using? Which version of firmware is in your TDS?

Driver can read following settings, when you are changing range (for channel1)?
":CH1:PRO:GAIN?", ":CH1:PROBEFunc:EXTatten?", "CH1:TER?"
I did not find any error in the code. If you need help, please attach spy log.

How make spy log:
1) Start>>All Programs>>National Instruments>>NI SPY
2) Start Capture (Pres blue arrow or F8)
3) Run getting started
4) Stop Capture (in NI-SPY should be all IVI and VISA function calls). Please Save this reprort in spy format and attach to forum.

Zdenek
Message 3 of 9
(4,855 Views)
Sorry,
smiles are : P without space
Message 4 of 9
(4,848 Views)
VISA version is 3.0.1. The TDS firmware is 1.0.9.

The command ":CH1: PRO:GAIN?" returns 100.0000e-3.
The command ":CH1: PROBEFunc:EXTatten?" returns 1.0000.
The command ":CH1:TER?" returns 1.0000e+6

I've attached the spy log you requested.

Thanks!
0 Kudos
Message 5 of 9
(4,846 Views)
Hi,

Please try attached DLL. Search for all tkds5000_32.dll (should be one) and replace it with new one. For sure backup your old DLL to some zip file.

I hope that I solved it, please let me know (I did not try, I don't have instrument) and we will make a new release. The problem is that your instrument returns for comand "CH1: PRO:GAIN?" value "CH1: PROBE:GAIN 100.0000E-3" instead of "100.0000E-3".

Zdenek
Message 6 of 9
(4,838 Views)
It still doesn't work. I get the same error message.

I replaced Tkds5000_32.dll in the following two places:

C:/Program Files/IVI/bin
C:/VXIPNP/WinNT/bin

I have captured another SPY session for you to examine.

Thanks,

David
0 Kudos
Message 7 of 9
(4,799 Views)
Hi David,

the problem is that driver doees not send "HEAD OFF" to TDS when driver is initialized. May be is difference between your firmware and firmware which has been available for driver development. It looks that your instrument has default value ":HEAD ON" instead of ":HEAD OFF".

I added command "HEAD OFF" to driver and made DLL. Please let me know if the DLL will works correctly and we'll make a new release of the driver.

Zdenek
Message 8 of 9
(4,770 Views)
Okay, it works now. Thanks for your help!
0 Kudos
Message 9 of 9
(4,764 Views)