thewon86
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) ``` 
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  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? 
> > 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...