I hope the new functionality will meet your needs. ![]() Special Matrices Introduction to FreeMat 23. More Matrix Operations Introduction to FreeMat 22. Speech + touch The user selects a photo using press and hold, and then says Send photo. Speech + gesture The user points to a product, and then says Add to cart. The help of the function 'which' in freemat (at least in version 4.0) suggest that only the one input version is supported. With multimodal interactions, multiple input methods in sequence are used to complete a single action. It seems reshape only works in the 2 argument version: reshape( M, d0 d1 d2 ). ![]() Could recompile your serial.dll for Win7 64 bits Secondly, I need to manage two or more serial interfaces with the same instance of FreeMat (multiple devices control). the function 'which' can have multiple inputs. In C:/Documents and Settings/clf/Desktop/freemat/trunk/FreeMat/toolbox/funfun/ode45.m(ode45) at line 126 In docli(builtin) at line 16 In base(base) In base() In global() Error: Too many inputs to function reshape. This project is just a quick and dirty way to gain access to a serial port and read data into FreeMat and have FreeMat transmit data over a serial port. More Matrix Operations Try these: Introduction to FreeMat 21. I am a new user of FreeMat and I have tried your serial.dll I figure out that it is properly working with FreeMat 4.2 32 bit, but not with FreeMat 4.2 64 bit. In addition to supporting many MATLAB functions and some IDL functionality, it features a codeless interface to external C, C++, and Fortran code, further parallel distributed algorithm development (via MPI), and has plotting and 3D visualization capabilities. Obviously, this download is called "Serial". FreeMat is a free open-source numerical computing environment and programming language, similar to MATLAB and GNU Octave. The new upload is available at:Īlong with a few other functions I decided to share. To determine the number of input and output arguments in a function definition, use nargin and nargout with the function name at the command prompt. So, today, I added three functions, serialPortBytesAvailable, serialTXString, and serialRXString. It turns out a call to the Windows function ClearCommError returns that data without a communications timeout and without affecting the buffer, so it was perfect for this application. No worries, I liked the functionality myself, and I could think of a use for it if I could get the BytesAvailable without going through a communications timeout for an empty byte. I had been planning on adding a function to return BytesAvailable per your request a few months ago and your latest message prompted me to push it up to the top for the day. Sorry, I didn't put forth the appropriate level of effort earlier. SetPortDTR(0) % Measured -5.91 V on pin 4Įverything appears to work (at least on Windows7 64bit with FreeMat 4.1), if you will simply download it again. SetPortRTS(0) % Measured -5.91 V on pin 7 SetPortRTS(1) % Measured 7.62 V on pin 7 (I did this on a laptop with a 9 pin serial port, so the serial voltages are low) I got out my voltmeter and carefully probed the DTR and RTS lines and observed the successful toggle of the state of those lines from the FreeMat command line: Also, I had not included an update to the newly compiled Serial.dll (the one in the source directory was updated as you observed). Otherwise, only single item selections are allowed. list box - if max-min>1 then multiple item selections are allowed. ![]() The import commands were not correct in the serialload.m file. edit box - if max-min>1 then the text box allows for multiple lines of input. I did a complete testing cycle and found two errors which you've pointed out. % % This function generates a candlestick chart for a given O,H,L,C data % D is dates % O is open % H is high % L is low % C is close % symbol % % Example: % =get_symbol_data('F',150) % gen_chart(D,O,H,L,C,'F') % % % Copyright 2010 EdgeMe % $Revision: 1.0.0.It seems that since I've posted this twice without testing, I'd learn that doesn't work -)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |