f



error-message "can't open file wb" ; strange behavior of scipad in linux (mark/select & [copy &] paste)

I 've got today two error messages, which I've never seen before and
which I don't understand at all. (Maybe there where changes in the
linux-system on the PC, but I don't know...)

Running a scilab-"code" written by myself and used without problems
before, today at first there was something like:
"xinit must be called before any action"

When I then called xinit before the code, I've got at least the message

"can't open file wb"

or both messages.

I didn't find an explanation or solution to the problem, so I deleted
and installed scilab again and somehow its working again.


I've just got another problem:
Before, I used to mark ("select") all the code in scipad (usually using
the shortcut ctrl+/) and to put it into scilex by middle-mouse-click.
Now, this is often (but not always!) impossible.
The code has much less than 16000 characters! Using gedit or other
editors/writers it's no problem to put (the same) code into scilex by
select and middle-mouse-click in the scilex-window..

Alternatively (after pressing ctrl+/ (select all)) i could use the
ctrl+y (evaluate selection) shortcut in scipad instead of
middle-mouse-click in the scilex-window, but unfortunately in this
case, one doesn't see immediately if it works.
I don't understand, why it worked without any problems until now and
now it often (but not always) doesn't work.

0
mey
2/7/2005 5:40:02 PM
comp.soft-sys.math.scilab 12093 articles. 1 followers. d_k (3) is leader. Post Follow

6 Replies
675 Views

Similar Articles

[PageSpeed] 13

using scilab3.0 in linux
(binary tar.gz stable version downloaded in November 2004 from
scilab-homepage)

A scilab-script of mine produces the following error-messages:

scilex-window:
___________________________________________________________

-->
-->end
Can't open file wb
 xinit must be called before any action
  [...
  this line ("xinit ...") 80 times (!), then again
  ...]
Can't open file wb
 xinit must be called before any action
  [...
  this line ("xinit ...") 80 times (!), then again
  ...]
Can't open file wb
 xinit must be called before any action
  [...
  this line ("xinit ...") 80 times (!), then again
  ...]
Can't open file wb
 xinit must be called before any action
  [...
  this line ("xinit ...") 80 times (!)
  then I stopped the running programm
  ...]

-1->abort

-->abort

__________________________________________________________

I didn't find anything concerning a "file wb".
Checking bug-reports and comp.soft-sys.math.scilab I didn'
find anything applicable about xinit-problems and I don't
understand
http://scilabsoft.inria.fr/product/man/html/eng/graphics/xinit.htm
(Man Scilab: xinit).

I didn't need to use the xinit-command ever before - scilab
worked well all the time (also with the script, which now
produces the problem).

I thought, maybe there are problems because of changes in
the linux-system (I don't know).
So yesterday I installed scilab again. Then it worked again.
But today (without any changes in the system) the problem
occured again.

I will check the unstable version and report about the result.

0
mey
2/8/2005 6:59:00 PM
unstable 20050128

same problem

and one more: it's "nearly" impossible to scroll in the scilex-window
:)
[It's impossible to move the scroll bar with the mouse - you have to
click left
(down) or right(up)]

(also the copy&paste-problem with scipad still occurs - is there
another limitation beside the 16000 characters? - I use KWrite now.)

0
mey
2/8/2005 7:21:40 PM
On Mon, 07 Feb 2005 09:40:02 -0800, mey.wer wrote:

> Running a scilab-"code" written by myself and used without problems
> before, today at first there was something like:
> "xinit must be called before any action"
> 
> When I then called xinit before the code, I've got at least the message
> 
> "can't open file wb"
> 
> or both messages.

Such a report doesn't help anybody in tracking the problem. You should
provide a MINIMAL, CONCISE example of the problem code, and details about
when it used to work and when not.


> I've just got another problem:
> Before, I used to mark ("select") all the code in scipad (usually using
> the shortcut ctrl+/) and to put it into scilex by middle-mouse-click.
> Now, this is often (but not always!) impossible.
> The code has much less than 16000 characters! Using gedit or other
> editors/writers it's no problem to put (the same) code into scilex by
> select and middle-mouse-click in the scilex-window..

I'm not aware of any problem here, at least with the gtk2 build.
X-selection copy-paste should logically depend on X and quirks about WM
behaviors etc., not necessarily on scipad. It might help to know if you're
able to copy into scipad instead, or from scipad to another application,
if ANY other X selection can be pasted to scilex, if you're at all able to
copy shorter selections, and so on. Who says btw that 16000 characters
should be a relevant number?

Enrico
0
Enrico
2/9/2005 10:34:30 AM
Concerning the problem with scipad:

> It might help to know if you're able to copy into scipad instead,

possible

> or from scipad to another application,

possible

> if ANY other X selection can be pasted to scilex,

good question - see below

> if you're at all able to copy shorter selections,

possible

> Who says btw that 16000 characters should be a relevant number?

http://scilabsoft.inria.fr/product/man/html/eng/utilities/scipad.htm
(Man Scilab : scipad) says:
"Execute Selection   deals only with selections containing less than
16000 characters."
(_Could_ have been something to do with the copy&paste-problem.)
[By the way: there is an option called "evaluate selection" in the
"execute"-menu of scipad.  :)]

It seems that scipad has a limitation by copying to scilex (trying to
put more it doesn't put anything).
1. but - the restriction is only while copying to scilex.
There seems to be a restriction in scilex: KWrite (or gedit) too puts
only the first 141 lines of a (completely selected/ marked) script,
scipad puts up to 136 lines of the _same_  script (also same number of
empty and passive //-lines). (But scipad puts these lines only if there
aren't selected more lines - in that case it puts nothing) - so there
is a difference (there are two differences) between scipad an KWrite
(or gedit).

(By the way - with another script I found another interisting fact:
using gedit or KWrite it was possible to copy a part of the whole
script like above, but the break was inside a for-end loop. While lines
from the end of the script weren't pasted at all, the closing "end" was
put after the last pasted line automaticaly!)

0
mey
2/9/2005 3:16:21 PM
I found out the problem now.

The directory given in the command
xs2gif(0,''+directory+''+filename+'.gif',1);
didn't exist.

But the error message(s) was (were) really cryptic...
(
I was used to get very comprehensible error messages for the same
problem in a write(...) or read(...) commands like:

-->read('bla.asc',-1,1)
                     !--error   241
File bla.asc does not exist or read access denied 
)

0
mey
2/9/2005 3:39:29 PM
>> Who says btw that 16000 characters should be a relevant number?
> 
> http://scilabsoft.inria.fr/product/man/html/eng/utilities/scipad.htm

Obsolete. The current limit in that respect has been set to 4096 (see
help scipad), but that it is in any case not relevant. It refers to the
string passed to scilab via ScilabEval when issueing an Execute
selection, which is a scipad command, it has no relevance for the
X-selection grab.


> It seems that scipad has a limitation by copying to scilex (trying to
> put more it doesn't put anything).
> 1. but - the restriction is only while copying to scilex. There seems to
> be a restriction in scilex: KWrite (or gedit) too puts only the first
> 141 lines of a (completely selected/ marked) script, scipad puts up to
> 136 lines of the _same_  script (also same number of empty and passive
> //-lines). (But scipad puts these lines only if there aren't selected
> more lines - in that case it puts nothing) - so there is a difference
> (there are two differences) between scipad an KWrite (or gedit).
> (By the way - with another script I found another interisting fact:
> using gedit or KWrite it was possible to copy a part of the whole script
> like above, but the break was inside a for-end loop. While lines from
> the end of the script weren't pasted at all, the closing "end" was put
> after the last pasted line automaticaly!)

It could be a quirk of your X. Something like a maximal
buffer is allocated for X selections, and each program honors differently
grab requests which overfill this buffer. Or more likely a synchronization
problem - the grab is indeed fully dumped to the receiving program, but
too fast so that it chokes it. Consider that while a text editor receiving
data has only to store it, you're asking to scilab to interpret the feed
in real time, which it might be not up to. In that case I would expect
some significant jitter in the number of characters which is transferred
each time, and moreover variations depending on the cpu-intensity of the
commands fed to scilab. I'm no expert of X, however, I'm only guessing.
Have you tried to change WM?

The correct way to go in any case is to execute the file you're writing.
Only in that case you're guaranteed that the feed is correctly scanned and
parsed at scilab's convenience. If it is screen output what you want, you
can always begin the script with a mode(1), omit semicolons, etc etc,


0
Enrico
2/9/2005 4:08:03 PM
Reply:

Similar Artilces:

"Save measurement to file"-VI doesn't obey the "Use next avaible file name" setting
I'm using this express VI to store data. In it's properties, there's the "If a file already exists: Use next avaible file name" radio box which does not work. Instead, it appends everything to the one file it created on the first run. My VI has a while-loop with an embedded flat sequence with the writing-VI being in the last frame of the flat sequence. LV 8.5, Linux Hi There. Could You make a screendump of Your VI? I tried using the Express VI on both LV7 Express (Base,Win), and LV8.5 (Base, Win) , and it works perfectly....   I've attached my VI. Current...

How do I disable the Dialog Box Pop Up when using the "Open/Create/Replace File" VI?
I would simply like to write data in real-time to a file without the operator being prompted by a Dialog Box. Please see attachment for the code I used. &nbsp; Thank you! LabVIEW_Write To File Code.doc: http://forums.ni.com/attachments/ni/170/243833/1/LabVIEW_Write To File Code.doc Try putting the entire path including the file name (and not just the folder) as a path constant (and not use the string to path function) to the file path input. &nbsp; <img src="http://forums.ni.com/attachments/ni/170/243916/1/Open_Create_Replace.PNG"> Message Edited by Dennis Knutson on...

WARNING:UtilitiesC
when i am trying to check syntax of my code in HDL Interface Node following errors had been occured Release&nbsp; - xst J.33Copyright (c) 1995-2007 Xilinx, Inc.&nbsp; All rights reserved.WARNING:UtilitiesC - Message file "Xst.msg" wasn't found.--&gt; WARNING:UtilitiesC - Message file "PersonalityModule.msg" wasn't found.ERROR:PersonalityModule - Unable to open definition file for Personality Module "virtex".&nbsp; Please make sure that it has been correctly installed. Sriveni, &nbsp; Can you post more information so that we can better ...

'&&&&a'="&&&&a."
I need a data step that is equivalent to data _NULL_; file print; put '&&&&&&a=' "&&&&&&a"; run; Yet the number of & is a variable, I need to write a Macro, so far I got only half of the code('&&&&&&a.='), I don't know how to put the other half ("&&&&&&a.") into Macro Thanks. %Macro R(k); data _NULL_; file print; put %do i= 1 %to &k.; '&' %end; 'a=' ; run; %mend; %R(10); ==================================================...

How to define &quot;byte stream type&quot; for &quot;open file&quot;?
Hello, I created some numbers (type "double") in Matlab and stored in a file. What value should I use to specify the "byte stream type" for "open file" in Labview? Should I put something like "DBL" or "I32". I don't know where to find the list of legal "types" in Labiew help. Thanks so much! Felicia Looks like 7.1:<img src="http://forums.ni.com/attachments/ni/170/347924/1/read%20file%207.png"> The Matlab "double" is 64 bits (8 bytes). It doesn't make much sense to use an integer datatype to read ...

&quot;Error 7 occurred at Open File +.vi:Open File&quot; when opening a newly built application
Hello, &nbsp; After successfully building a standalone application in LabView 7.1, I get this error when I try to run my .exe file.&nbsp; I don't think any files are supposed to open upon execution except for my top level VI, which appears to open just fine, so I'm unsure why this error pops up.&nbsp; Does anyone have any ideas that might help or has anyone run into this error&nbsp;before? &nbsp; Thanks in advance! &nbsp; Jason ...

&quot;re-entrant&quot; &quot;file I/O&quot; &quot;QSM_State Machines&quot;
&nbsp; &nbsp; I have trouble with writing (appending) to text file in a QSM that is in an "occurence mode" of operation whereby the queue waits for outside engueue to go ahead and do a task. The task is simply to write to a file a line of text. &nbsp; Outside producers give the queue its go ahead and data is sent along etc... &nbsp; WHat I am seeing in the logging functions are multiple errors (Error 1) Somehow Labview&nbsp;is not noticing that the reference is valid or it is invalidating the reference. &nbsp; Q is Should I just let the QSM loop to keep it ali...

Fatal Error &quot;can't locate DSSetHandleSize&quot;
I?m having problems with one of my applications that I can?t debug.&nbsp; I?ve been having a lot of problems lately with com ports not getting passed to subvis properly so the subvi doesn?t work because the com port isn?t correct.&nbsp; Simply rebuilding the app fixes it but now I can?t even troubleshoot that far.&nbsp; Now, for some reason, this application keeps crashing when I try and do a remote debug.&nbsp; I can open the app using remote debug but when I open the subvi, I get a Fatal Error ?Labview.lib could not locate DSSetHandleSize? on the target computer.&nbs...

How can I connect &quot;Get Date/Time String.vi&quot; to &quot;Write To Spreadsheet File.vi&quot; ?
How can I connect "Get Date/Time String.vi" to "Write To Spreadsheet File.vi" ?&nbsp; I want to write 05/06/2008 to spreadsheet for example. I tried many conversions in vain. I am using LabVIEW 8.0 now. Trying to fit a square into a circle? That VI uses a 1D/2D array of numbers, so why are you trying to feed a date?I suppose you can do this:<img src="http://forums.ni.com/attachments/ni/170/321560/1/Example_VI_BD4.png"> If that actually means anything.Message Edited by smercurio_fc on 05-06-2008 05:15 PM Example_VI_BD4.png: http://forums.ni.com/attach...

Error: channel "stdout" wasn't opened for writing when "exec >&@stdout printenv"
Hello, I am redefining stdout and stderr using channels. It seems to work fine for all cases except the following: exec >&@stdout printenv Which gets an error: Error: channel "stdout" wasn't opened for writing Any ideas how to get the above exec command to work (created from init.tcl) with a redefined stdout channel? Thanks. -William WilliamKF@gmail.com a =E9crit : > Hello, > > I am redefining stdout and stderr using channels. > > It seems to work fine for all cases except the following: > > exec >&@stdout printenv Hi William,...

TI & CCS
I've just recently moved from SHARC & Visual DSP to TIC6713 with Code Composer Studio. I am working through the tutorials and I have met a problem: In the second tutorial "Project Management" I follow the instructions but when I try to build the project I get: ===================================================== ------------------------- maxminlibrary.pjt - Debug ------------------------- Error, Don't know how to build file "C:\ti\tutorial\dsk6713\maxminmath \maxminlibrary.cmd" [maximumvalue.c] "c:\ti\c6000\cgtools\bin\cl6x" -g -q - fr"C...

Should template type deduction try "T &" and "const T &" if "T" fails
GCC gives an error when compiling this: #include <stdio.h> class S { private: S(const S &s); public: S(void) { } }; void print(const S &i) { printf("made it\n"); } template <typename T> void call_print(T t) { print(t); } int main(void) { S s; print(s); call_print(s); return(0); } Seems like, when the instantiation of call_print fails when S is deduced for type parameter T, the compiler could then retry with "S &" for T and then "const S &" for T. Does the Standard prohibit/allow re...

How can I use an iteration value from a &quot;while&quot; (or &quot;for&quot;) loop as part of a filename?
I am using the "Write To Measurement File" function&nbsp; inside a while structure and would like to incorporate the iterative value from the while-loop as part of the file name. I'm not sure how to do it. Any suggestions? &nbsp; ...

I am using compact rio 9004 and get error message &quot;Error 43 occurred at File Dialog&quot;.
I am using compact rio 9004 and get error message "Error 43 occurred at File Dialog" when i try to run the embedded code. Tracing the code i found there is a directory structure that does not exist, so the rt host cannot open the file. This only happened after i reformatted the crio drive, i must of removed any file structure originally there. What i carnt understand is why it hasnt happened earlier, surely a repower would clear the directory it is searching for. Is there any way to copy a directory and files to the rt target so when host runs it opens the file? Can anyone help? Thanks Anthony &nbsp; Thanks for that, very helpful, that solved the error. Have you or anyone got any tips on the following: I am trying to embed the code at start up, it works okay when running from the pc. But not sure if its running at all when running as a stand alone app at start up. I&nbsp; have been using the utility &nbsp;"Debug application or shared library" to&nbsp;debug the app code The following popup displays and as a result i have to restart labview and kill the app: "File dialog needs to be operated on the machine running the app before debugger UI is unlocked". It may be linked to the previous problem in that there is a dialog box open that needs to be closed or something. &nbsp; Hi So you have solved your first problem. Can you download the bit stream file to your controller ? Have youi the appropiate directory&nbsp; setup on y...

"Select" & "Order By" OK- ''WHERE'' Does'nt Work !
Before i post actual code, as i need a speedyish reply. Can i first ask if anyone knows off the top of their head, if there is a likely obvious cause to the following problem. For the moment i've reduced my form request to a simple text string entry, instead of my desired optional parameters. As i have been stuck with a single unfathomable glitch for over a year. Basically, if i enter queries such as ; "select * from table" "select * from table order by artist", it works perfectly. However if i introduce the 'where' option, as in "select * from table where ...

plug-in &quot;not installed&quot; in my LabVIEW project's &quot;Build Specifications&quot;
I moved my LabVIEW project from one computer to another, now when I click on any item under the project's "Build Specifications", I get an error reading "The plug-in for the selected item is not installed on your system." Does anybody know how to fix this? I have no idea what this "plug-in" is.Attached is a screenshot. plug-in error.PNG: http://forums.ni.com/attachments/ni/170/222664/1/plug-in error.PNG ...

Can classes &quot;make&quot; controls and indicators &quot;appear&quot; on the front panel.
This is what I was hoping to do. I would define a parent class called signal that was really just an interface class. All of the child classes, analog in, analog out, digital in, etc. would have to override the VI?s in the signal class. So, the first thing that the program would do is to read a text file line by line, and on each line there would be a tag telling the program which type of signal to create. Next the newly created signal would be casted up to the parent class and put into an array. Once I have my array of signals, on the front panel I would have an array of text boxes. The text ...

Can't print test results as &quot;user&quot;
Hi,I have a program&nbsp; written in Labview 6.1 by another developer. This program runs on a PC with Windows 2000 ver. 5.0 Bld 2195 SP 3. Even though this is a stand alone test station and cannot ever be connected to the internet, we have McAfee virus protection ver. 8.01 installed and running. Test data is written to an Excel spreadsheet. The spreadsheet is then stored on the hard drive and printed on a dedicated printer. When the operator is logged on as a "user" he can run the program but he cannot print or store his test results. Also, I have noticed that all the print vi...

Help me understand strange behavior &quot;Read From Measurement File&quot;
This is related to a previous post (http://forums.ni.com/ni/board/message?board.id=170&amp;thread.id=304755&amp;view=by_date_ascending&amp;page=1).Since I didn't get it resolved I am posting and refrasing the issue, with a more simple/basic question. (you don't need to read the previous post, I made simpler VIs for this question)I have a program called "TakeData" which reads analog voltage from 1 channel, displays the data in a Chart and puts it into a Measurement LVM file "CollectedData"+date&amp;time.* the "Write to measurement file" uses...

Installer &quot;Source file settings&quot;, &quot;VI Settings&quot; problem in 8.2
I have just upgraded from LabVIEW 8.0 to 8.2 and it seems the Installer "Source file settings", "VI Settings" check boxes no longer have any affect on the built application. &nbsp; For example, if I un-check the "Show Menu Bar" boxes for my Main.vi and build, when I run the built application the Main.vi Menu Bar is visible. &nbsp; It seemed to work as expected with 8.0 though. &nbsp; Any help and suggestions are much appreciated. &nbsp; Aaron Hi Seamus, Thanks for that and I look forward to hearing from you again Aaron ...

Why do I receive a &quot;Fatal internal error: &quot;fpsane.cpp&quot; line 399&quot; when saving?
Why do I receive a&nbsp; "Fatal internal error: "fpsane.cpp" line 399" when saving my VI? &nbsp; Thank you. Gustavo Hi Chris, But I could not solve the error that way. Actually, Labview is crashing with this error at any time when I am writing my VI. It simply crashes even if the VI is not running. I think the problem is not in my VI, because&nbsp;it runs normally in another machine, but must be with the Labview installation. I have reinstalled Labview three time already and the error continues. Any other ideas? Thanks, Gustavo hum... not yet. &nbsp; I rei...

what the difference between &quot;Wait Until Next ms Multiple&quot; and &quot;wait&quot; vi's ?
Hi all. &nbsp; 1) What the difference between "Wait Until Next ms Multiple" and&nbsp; "wait"&nbsp;&nbsp; vi's ? 2) If i put thos vi's inside state machine, for example, inside state number 3, when the program reach to this state, the delay will ganerate&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; before or after the execution of other component in this state&nbsp; ? &nbsp; &nbsp; thanks :) Both will start in parallel to all the other nodes in the same frame but they still have different finctionality.&nbsp;You cannot guarant...

JAXM returning '&lt;' and '&gt;' rather than "<" and ">"
Hi guys I'm up against a very annoying problem. I'm tryint to use JAXM to call a simple PHP nuSoap web service. I am using SOAPMessage/SOAPPart/SOAPEnvelope etc, however when i receive the message from the server i get: &lt;symbol&gt;great&lt;/symbol&gt; rather than: <symbol>great</symbol> Does anyone have any idea why its converting '<' to '&lt;'??? Any help would be most appreciated, i've been frustrated by this for hours! (Note the xml just dumps out "<symbol>great</symbol>" - it does not encode it ...

VI &quot;FindInstrumentDrivers.vi&quot; was stopped at node &quot;&quot; at a call to &quot;IDF_WsIdOpen.vi&quot;
This what I get trying to download Instrument Drivers in LabVIEW 8.2. LabVIEW 8.6 doesn't succeed either. any ideas? Could just be an intermittent server problem. Does this happen all the time? At what point does it fail? When you first launch it, after you login? The network traffic indicates that it uses port 3339. Is this being blocked by your firewall? ...

Web resources about - error-message "can't open file wb" ; strange behavior of scipad in linux (mark/select & [copy &] paste) - comp.soft-sys.math.scilab

Resources last updated: 3/7/2016 10:16:04 AM