Multiple Interface Command Environment Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: MICE.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Brian Mearns (View more)

Multiple Interface Command Environment script description:




Publisher review:
Multiple Interface Command Environment - Quick send/receive commands to an interface without so much typing. 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 >> instrhelpNOTE: 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 theCommand 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:$>:quitTo find out what the current device is from the MATLAB CE, like this:::>:device currentAnd to send the identity query to the current interface from the program CE::>$*IDN?Easy breasy. Requirements: · MATLAB Release: R13 · Instrument Control Toolbox
Multiple Interface Command Environment is a Matlab script for Development Tools scripts design by Brian Mearns. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5