Re: [Scilab-users] Regex problem

2016-08-26 Thread Gerhard Kreuzer
Hi Jan, that is a nice idea, basically. The meta data (= ascii) coming first and after that I have binary data. Now I can read character by character, as you did and stop at the first non ascii character. Now I only have ascii characters in my strData variable and regex should work. And

[Scilab-users] POWBLK_f displays "a" as exponant instead of real value of UI box

2016-08-26 Thread Perrichon
Hello, Would it be possible, with POWBLK_f block, in a next version of XCOS, to display the real value programmed in the UI box, instead "a" (u^a), which kills the correct reading of schemas? Sincerely Pierre W10 with Scilab/Xcos x64 5.5.2

Re: [Scilab-users] Regex problem

2016-08-26 Thread Jan Åge Langeland
Gerhard Would this work? Read as much as you need as binary and convert the non ascii values to an ascii value, for instance 0. The below is not optimized, and I have no idea why the strsplit is needed, but I got an "unknown error" without it: fid=mopen(datafile,"rb"); btr=1000;

Re: [Scilab-users] Regex problem

2016-08-26 Thread Gerhard Kreuzer
Hi, do some testing: The difference between the two fils (test data / real data) is the first byte after the meta data: The first byte of binary data is 0xFA. When I read in 138 characters, regex is working. This means, I read until

[Scilab-users] Intensive memory allocation when changing plot X axes ticks.

2016-08-26 Thread Grzegorz Skiba
Dear Scilab users, in my application I use plot and custom X axes ticks labes (timestamps). Aplication has to run for at least 24hours, but after few hours Windows terminates Scilab due to low memory. We noticed that chenging plot X labels causes memory allocation which results Scilab

Re: [Scilab-users] Regex problem

2016-08-26 Thread Gerhard Kreuzer
Hi, thanks all for responding. Semms there is some Problem with my account, cause I dont get any Response for days and I am wondering about that. Checking out this issue I see, there is lot of Response, but the notification Fails. Ok, will work through it. New stata: I generated test data and