Hi James,

I'm glad you've managed to get more working.
It's been some time since I worked on this so I can't remember most of the 
details.
My oscilloscope (HP) is quite old and has a RS232 connection. I do remember 
that I spent quite a lot of time getting it to work correctly, like you, 
fighting CR LF problems. I'm glad  that I did because now I have my own 
software to control the oscilloscope and I use it for everything.
Using TCL directly, with an oscilloscope monitoring the port, was the best way 
to see what was being transmitted and then to try experimenting with fconfigure.
You're using a TCP socket so you won't be able to do that but there is a small 
utility from NirSoft called SmartSniff

        https://www.nirsoft.net/utils/smsniff.html

which you may be able to use to monitor the communications.
It's quite possible that the functions 'puts', 'gets' etc. behave slightly 
differently when they act on a TCP socket rather than a serial port.
Good luck.

Adrian Weeks.
Engineer, Hardware Engineering EMEA.
Office: +44 (0) 2920 528500 | Direct: +44 (0) 2920 528523 
Email: awe...@hidglobal.com


HID Global, 3 Cae Gwrydd, Green Meadow Springs, Cardiff, CF15 7AB , United 
Kingdom
www.hidglobal.com


-----Original Message-----
From: users <users-boun...@lists.scilab.org> On Behalf Of James Holland
Sent: 27 June 2018 08:35
To: users@lists.scilab.org
Subject: Re: [Scilab-users] Sockets in scilab 6.0

Hello Adrian
I have inmode outmode working now, I didn't initially realise that the curly 
brackets are supposed to be included, I suspect there is a bug there because 
binary and lf behave the same, the LF is always appended.
The flush I need because I'm not (or shouldn't be) sending a LF.
I was wondering if the problem is that the scilab script and the TCL are 
executing simultaneously and I need to somehow wait for the TCL to finish. 
I've downloaded TCL now, I will try running the same code directly.



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to