Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
.Net VCL for Delphi 1.0.0.0
ASP. NET C# PDF Software 4.5
LinqConnect Professional 4.8
CAD VCL: 2D/3D CAD in Delphi/C++Builder 14
wolfSSL 3.15.7
CAD DLL 14
AnyStock Stock and Financial JS Charts 8.4.2
ODBC Driver for SQLite 2.4
dotConnect for SugarCRM 1.7
dbForge SQL Complete 5.9
dbForge Studio for MySQL 8.0
.Net Runtime Library for Delphi 6.0.4.0
Scimbo 1.64
AnyMap JS Maps 8.4.2
GetOrgChart 2.5.3
Top Code
Cookie Monsters
Huffman Coding and Decoding for Text Compression 1.1
Faculty Evaluation System 1.1
College Management System Script 1.0.4
IFS fractal dimension calculation using box counting method
clunx 1.0
Member Login by PHPJabbers 3.2
3D World (OpenGL walk through city) Script 1.1
WETON: Javanese calendar 1.0
GUI for fuzzy based Washing Machine 1.0
Justdial Clone Script 2.0.1
Nevron User Interface for .NET Q1 2006
swfmill for XML Tools 1.1
Rich Text Editor for Classic ASP 8.0
Money Transfer 1.0
Top Rated
Paste phpSoftPro 1.4.1
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
Multiple Interface Command Environment (MICE) 1.0
File ID: 81891






Multiple Interface Command Environment (MICE) 1.0
Download Multiple Interface Command Environment (MICE) 1.0http://www.mathworks.comReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 1
Submit Rating:
Multiple Interface Command Environment (MICE) 1.0 Description
Description: Tested in R13!!!
================

This app is designed to allow easier interfacing with interfaces such as GPIB, Serial, and others (though honestly I've never tried it on anything other than an iotech GPIB.)For information on interfaces, check out

>> instrhelp

NOTE: In this app, I refer to interfaces as devices, because they interface to a physical device, like a multimeter or an O-scope, etc.

In it's present state, this app has 3 Command Environments, each has a different prompt, and responds differently to commands.

Device ($>) in the device command environment (ce), commands that you type at the prompt are sent directly to the current interface using fprintf. fscanf is then called on the interface, and the results are displayed on the console (Command Window).

Please note that because of this, by default, all new interfaces created in this program are created with a Timeout of 1 (second). You can change the default value for any new interfaces created during the runtime by typing 'default Timeout' in the Program CE. You can also change the value of the variable defaultTimeout in the beginning of this code, to change the startup value for default Timeout. use intrhelp to find out how to st a custom Timeout.

FUTURE PLANS: I plan to add a simple way of opting out of calling fscanf, on a onetime basis and on a toggle basis. I hope to introduce a new CE which will allow you to use MATLAB code for strings (indexing, and concatenating, and casteing, etc) to send commands, e.g., instead of:
$>MATH1:DEFINE "CH1 + CH2"

You could use:
:$>['MATH1:DEFINE ','"CH1 + CH2"'];

I understand in the above situation, there's no point, by ideally, you could use variables instead of string literals Program (:>) This CE simply allows access to basic commands specific to MICE.

Commands like quit, cls, new device, device list, etc. Feel free to hardcode your own commands into the Program Section (feel free to do it anywhere, but it will be a little harder anywhere else).

If you have any good ideas of commands you want to see, let me know. To get a complete list of Program CE commands, get out a pen and paper and write down all the cases in the switch command of the program section.

MATLAB (::>)

In theory, the MATLAB CE works just like you're typing in the
Command Window. I'm not going to gurauntee that, but that's the premise.

Switching Command Environments
==============================
To switch from one CE to another, simply type the prompt at any of the CEs' prompts. E.g., to switch from the MATLAB CE, to the device CE, it would look like this:
::>$>

Simple enough.
To do a CE override, in otherwords, send a single command to another CE without actually switching to that CE, simply type the prompt of the target CE, without the > at the end. So if you wanted to quit MICE (but honestly, I mean why would you?) from the device CE, it goes like this:

$>:quit

To find out what the current device is from the MATLAB CE, like this:

::>:device current

And to send the identity query to the current interface from the program CE:

:>$*IDN?

Easy breasy.

=================
"A Bug is a feature that has yet to be documented."

License: Freeware

Related: Access, Basic, Simply, literals, ideally, variables, String, specific, micecommands, elseif, Ideas, Complete, harder, hardcode, Section, Point, there039s

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 1



More Similar Code

A Graphical User Interface Development Environment for OpenGL, and associated OpenGL Widget set.



XML IDL preprocessor for generating C/C++ object prototypes. It allows use object oriented and component oriented programming for plain C programming language. Single object inheritance and multiple interface inheritance are supported.



Format, clean-up, beautify and standardize your php code with a comprehensive set of 34 options. A single 50Kb file that will highly improve the quality of your code. 3 operation modes: web interface, command line and PSPad integration.



Tsm Command is an interface to Tivoli Storage Manager.



Displays the percentage done of a job to the command line interface.



RCommand is a generic way for ruby scripts to present a full-featured command interface to users, complete with command history and tab completion.



a simple quiz game with a command line interface



Interface Traffic Indicator, a graph utility to measure incoming and outgoing traffic on an interface in bytes or bits/sec. Works on all SNMP-capable interfaces (computers, NICs, switches, routers, etc.) with adjustable poll intervall down to...



RCoaster Music System is an advanced playlist manager and play controller.

MP3s and Oggs can be added and queued using one of two web interfaces, or a shell scripting interface, enabling you to integrate with any environment. A GNOME...



Complete PDF Command-line (CMD) tool designed to enable developers to create 100% standard and adobe compatible PDF documents and perform wide range of operations on PDF files. Flexible XML based command file system enables you to programmatically...

User Review for Multiple Interface Command Environment (MICE)
- required fields
     

Please enter text on the image