thewon86

Results 41 comments of thewon86

Thanks to @veeso [std::io::copy](https://github.com/veeso/suppaftp/issues/47#issuecomment-1606716995) ``` ftp.retr("84402.ISO", |stream| { let mut iso = OpenOptions::new() .write(true) .create(true) .truncate(true) .open("84402.ISO").unwrap(); std::io::copy(stream, &mut iso).map_err(|e| FtpError::ConnectionError(e)) }).unwrap(); ```

as the same, the script removed last character '\n' ``` psu = lxi_connect("192.168.2.56", nil, nil, 2000, "VXI11") respond = lxi_scpi(psu, "*IDN?\n") print(respond) lxi_disconnect(psu) ``` ![Image](https://github.com/user-attachments/assets/68489a26-0b22-4270-bba4-1725081648ec)

Maybe there is mistake. ``` psu = lxi_connect("192.168.2.56", nil, nil, 2000, "VXI11") respond = lxi_scpi(psu, "*IDN?\n") print(respond) lxi_disconnect(psu) ``` This is my lua script, it write command "*IDN?\n" with char...

`respond = lxi_scpi(psu, "*IDN?\n6")` If i add one more char, such as "*IDN?\n6" there. will got ![Image](https://github.com/user-attachments/assets/99d31f81-577e-458e-afda-263fab92f6f3) It's pretty sure that somewhere removed the last character '\n' in command string.

I'd test 2.7 in linux(Fedora), whick installed with dnf and 2.8-5-g482af29 in Win10. Thay are the some. The second thing, how could i input '\n' into command line? ![Image](https://github.com/user-attachments/assets/eea6dac7-e55a-4992-a545-5f1097c60f94)

> > The second thing, how could i input '\n' into command line? > > You can't. The gui is not meant to be a low level interface like that....

> Yes, we could add that to the preferences dialog. It should only apply to RAW though. May VXI11 need it also. you known, when we click the button "search",...

As far as I know, whether an EOL (End of Line) is required or whether the EOL is '\r', '\n' or '\r\n' depends on the instrument's SCPI parser itself. Most...

> [@thewon86](https://github.com/thewon86) you can try new windows lxi tools. https://github.com/lxi-tools/lxi-tools-windows-installer/releases/tag/v2.8-4-g2a2dbe8 when i open a example and run it, it seems ok. but, just open the app, open file "connect-vxi11.lua" with...

> [@thewon86](https://github.com/thewon86) you can try new windows lxi tools. https://github.com/lxi-tools/lxi-tools-windows-installer/releases/tag/v2.8-4-g2a2dbe8 when i open a example and run it, it seems ok. but, just open the app, open file "connect-vxi11.lua" with...