• RE: 2636B can't write test data to computer file

    Thank you for taking your valuable time to respond to my question!
    Yes, I need to use it in conjunction with several devices, so automatically storing the test data to the computer's hard disk is a must, is there a good way to do this please?
  • Device connectivity and C libraries

    How to realize the operation of 2636B power supply with c language
    As well as, how to use Lan to connect to the device and operate this power supply through normal compiler or system command line without the help of TSB and the accompanying Keithley software, I would like to synchronize the operation and running with the rest of the device under linux, 
    I hope to reply as soon as possible, thank you very much!
  • 2636B can't write test data to computer file

    My device is 2636B, with TSB, lua programming can be operated, but I need to realize the data obtained from the test (in the buffer) written to a file to facilitate the subsequent call, repeated errors, I have tried to change the permissions, change the absolute path of the file and other operations, I wrote a simple code here in the lua compiler SciTE can be run normally, but not in the TSB! I have written a simple code here, it works fine in lua compiler SciTE, but not in TSB, what could be the reason for this, I desperately want to solve this problem,
     I look forward to an early reply, thank you very much!
    Here is my code


    local file = io.open("numbers.txt", "w")

    if file then

        local success, error_message = file:write("123\n456\n789\n")

        if success then
            print("Numbers have been successfully written to the file.")
        else
            print("Error writing to file: " .. error_message)
        end

        io.close(file)
    else
        print("Error opening file")
    end