< | Help Index | >
Automation |
In some cases it may be desirable to control the Mistral using something besides the keyboard or mouse. You may also have another system that needs to know when the Mistral is looking for a switch to be pressed or whether a keypad tested good or bad. In these situations the Mistral software can communicate with external hardware or another test system using a digital input/output card installed in the computer or an external USB module.
The Mistral supports products manufactured by Measurement Computing . We are currently recommending the following internal cards and external USB modules, although any Measurement Computing device with digital inputs and/or outputs should work. You will need to select a product that interfaces with the equipment you plan to use.
External USB Module | ||
USB-DIO24 | 8 TTL outputs, 8 TTL inputs | |
Internal PCI Bus Card | ||
PCI-PDISO8 | 8 relay outputs, 8 isolated inputs | |
Internal ISA Bus Card | ||
CIO-PDIS08 | 8 relay outputs, 8 isolated inputs | |
CIO-RELAY08 | 8 relay outputs | |
CIO-DIO24 | 8 TTL outputs, 8 TTL inputs |
Install the card or module following the instructions provided Measurement Computing. You will need to run the Instacal software included with the device to install the "board" before it will be recognized by the Mistral software.
Before using automation, the Mistral needs to know which I/O device you are using and how the external hardware will work. Select "Mistral Options..." from the "File" menu to open the Mistral Options window and choose the Automation tab. Note the "Mistral Options..." menu item will not be available if there is an edit mode password and it was not entered when the program was launched or you are in the middle of testing keypads.
|
In addition to setting up the automation features in the Mistral Options window, you will need to enable automation in each Keypad File. See Edit Info window for information on enabling automation for a Keypad File.
Output signals are on the first port of devices with multiple I/O ports (usually Port A).
For relay output devices the common (C) pin is connected to the normally open (N.O.) pin when the output is "active". For devices with TTL outputs, the output is high when active.
|
For devices with multiple I/O ports, inputs will be on the second port (usually Port B). On I/O devices with TTL level inputs, inputs are active high (5VDC) and all unused inputs must be tied to ground. For devices with isolated inputs, an input is active when voltage is applied and unused inputs can be left unconnected. All inputs that duplicate program buttons do not work unless the corresponding button is enabled.
|
When switch timing is being controlled by external hardware, testing of a Keypad can end automatically for several reasons.
When the Mistral is controlling switch timing, testing of a Keypad will end automatically for the following reasons.
For both modes of operation the test can also be stopped immediately if a short, LED or permanent connection error or a bad switch is found by checking the corresponding item in the Mistral Options.
Setting up your own automation system requires an external PLC or other controller that will monitor and respond to signals from the I/O device. Several examples may help illustrate how this communication could work.
Example 1: External hardware controls switch press/release timing - The keypad you are testing has three switches labeled S1, S2 and S3. Your test hardware's controller is connected to three pneumatic plungers. The controller will begin pressing switches when "Scanning for switches" goes active. It will press each switch once by activating the corresponding plunger for a preprogrammed amount of time and then move on to the next switch in the sequence.
Set the Automation Mode to "External hardware controls switch press/release timing" in Mistral Options.
The timing diagram below shows the state of the output signals during the test of one Keypad. A description of what is happening at each of the numbered times follows.
Example 1 Timing Diagram
The Mistral begins by scanning for shorts, LEDs and permanent connections. The output "Scanning for shorts, LEDs and permanent connections" goes active.
"Scanning for switches" goes active indicating the Mistral has completed scanning for shorts, etc. and has begun looking for switch presses.
The controller should recognize that "Scanning for switches" has gone active and lower the plunger for S1, the first switch in the sequence.
After the amount of time programmed into the controller passes, S1 should be released.
"Scanning for switches" is still active so the controller should press S2.
The controller releases S2. The switch resistance measured by the Mistral was bad so the Mistral asserts "Keypad Failed".
The controller lowers the plunger for S3.
The controller releases S3. At this point the controller must wait for "Scanning for switches" to go inactive. It should not start the sequence over again. This is because if a switch was defective and the Mistral did not detect it when pressed, the controller will need to wait for the Mistral to time out before it will recognize the test is complete.
The Mistral has detected that each switch has been pressed at least once so the test is complete. It makes "Scanning for switches" inactive and "Test Complete" active. Note that since one of the switches failed, "Keypad Failed" is still asserted. These two signals will remain active until the "Test Next Keypad" button is pressed, either using the mouse or keyboard or through the "Test First Keypad/Test Next Keypad" automation input.
Note that if you set up your Mistral to fail a Keypad as soon as a bad switch is detected, the test could stop in the middle at which time "Scanning for switches" would go inactive. Your controller should stop pressing switches and wait for "Scanning for switches" signal to go active again. If "Switches must be pressed in sequence" is checked in the Edit Info window your controller should reset to the first switch each time the "Scanning for switches" signal to goes active.
Example 2: Mistral controls switch press/release timing - The keypad you are testing has three switches labeled S1, S2 and S3. Your test hardware's controller is connected to three pneumatic plungers. You want to test as rapidly as possible so your controller will monitor "Next Switch Down" and "Same Switch Down".
Set the Automation Mode in Mistral Options to "Mistral controls switch press/release timing" and check "Retry failed switches", setting the number of Retries to 2.
The timing diagram below shows the state of the output signals during the test of one Keypad. A description of what is happening at each of the numbered times follows.
Example 2 Timing Diagram
The Mistral begins by scanning for shorts, LEDs and permanent connections. The output "Scanning for shorts, LEDs and permanent connections" goes active.
The Mistral has completed scanning for shorts, etc. and has begun scanning for switches ("Scanning for switches" is active) and asserts "Next Switch Down". The controller should lower the plunger for one of the switches, say S1. Note it doesn't matter which switch is pressed first as long as they are all pressed in sequence.
The Mistral makes "Next Switch Down" inactive. The controller should raise the plunger for S1.
The Mistral asserts "Next Switch Down" again. This means that the Mistral has decided S1 is good. The controller should press S2.
The Mistral makes "Next Switch Down" inactive. The controller should raise the plunger for S2.
"Same Switch Down" is asserted. This means the Mistral did not get a good value for S2. The controller should lower the plunger for S2 again.
The Mistral makes "Same Switch Down" inactive. The controller should raise the plunger for S2.
The Mistral asserts "Same Switch Down" again. This means the Mistral did not get a good value for S2 the second time it was tried and it would like to try it one more time. The controller should lower the plunger for S2 again.
The Mistral makes "Same Switch Down" inactive. The controller should raise the plunger for S2.
"Next Switch Down" goes active. Since "Keypad Failed" was not asserted and this was the last time this switch would be tried the Mistral must have got a good result for S2. The controller should press S3.
The Mistral makes "Next Switch Down" inactive. The controller should raise the plunger for S3.
The Mistral is done scanning for switches ("Scanning for switches" inactive) and has completed testing the Keypad ("Test Complete" is active). Since all the switches passed, "Keypad Passed" has been asserted.
Note that if you set up your Mistral to fail a Keypad as soon as a bad switch is detected, the test could stop in the middle of testing. Again your controller program doesn't need to care as long as "Switches must be pressed in sequence" is not checked in the Edit Info window. Just make sure that if the last switch you pressed was S3 and you see "Next Switch Down" go active, you lower the plunger on S1. If "Switches must be pressed in sequence" is checked in the Edit Info window, your controller should reset to the first switch each time the "Scanning for switches" signal to goes active.
< | Help Index | >
< | Index de Ayuda | >
Automatización |
En unos casos es deseable controlar el Mistral usando algo en lugar del teclado o el mouse. Tambien puede tener otro sistema que necesita cuando el Mistral está buscando por un interruptor para oprimir o si un teclado pasó o falló. En estas situaciones el software Mistral puede comunicar con hardware exterior u otro sistema de pruebas usando una tarjeta I/O digital instalada en la computadora o un módulo externo de USB.
El Mistral soporta productor producidos por Measurement Computing. Actualmente estamos recomendando la siguientes tarjetas internas y módulos externos de USB, a pesar de que cualquier dispositivo de Measurement Computing con I/O digital debe funcionar. Necesita seleccionar un producto que interface con el equipo que planea en usar.
Módulo Externo USB | ||
USB-DIO24 | 8 TTL outputs, 8 TTL inputs | |
Tarjeta Interna PCI | ||
PCI-PDISO8 | 8 relay outputs, 8 isolated inputs | |
Tarjeta Interna ISA | ||
CIO-PDIS08 | 8 relay outputs, 8 isolated inputs | |
CIO-RELAY08 | 8 relay outputs | |
CIO-DIO24 | 8 TTL outputs, 8 TTL inputs |
Instale la tarjeta or el módulo siguiendo las instrucciones de Measurement Computing. Necesitará correr el software Instacal incluido con el dispositivo para instalar la "tarjeta" antes de ser reconocido por el software Mistral.
Antes de usar automatización, el Mistral necesita saber cual dispositivo I/O está usando y como el hardware externo trabajará. Seleccione "Mistral Opciones..." bajo el menú Archivo para abrir la ventana de opciones y escoja el tab Automatización. Nota que el menú "Mistral Opciones..." no va ser disponible si hay una clave para editar y no se ha entrado cuando el programa comenzó o está en medio de una prueba.
|
En adición en fijar las caracteristicas de automatización en la ventana Opciones Mistral, necesitará habilitar automatización en cada Archivo Teclado. Vea Editar Info para información en como habilitar automatización para un Archivo Teclado.
Señales de salida están en el primer puerto de dispositivos con varios puertos de I/O (regularmente Puerto A).
Para dispositivos para retransmitir el pin común (C) es conectado al pin normalmente abierto (N.A.) cuando la salida es "activa". Para dispositivos con salidas TTL, la salida es alta cuando es activa.
|
Para dispositivos con varios puertos de I/O, las entradas van a estar en el segunco puerto (normalmente Puerto B). En dispositivos I/O con entradas TTL, las entradas son activas alto (5V DC) y todos las entradas no usadas deben estar conectadas a tierra. Para dispositivos con entradas aisladas, la entrada es activa cuando el voltaje es aplicado y entradas no usadas se pueden dejar desconectadas. Todas las entradas que duplican botones del programa no funcionan solo que el correspondiente botón es habilitado.
|
Cuando el ritmo es controlado por hardware externo, las pruebas de los Teclados pueden parar automáticamente por varias razones.
Cuando el Mistral está controlando el ritmo de los interruptores, la prueba de un Teclado puede terminar automáticamente por las siguientes razones.
Para los dos modos de operación la prueba tambien puede parar inmediatamente si un corto, error de LED o conexión permanente o un mal interruptor es encontrado de acuerdo con las directrices en las Opciones Mistral.
Creando tu propio sistema de automatización requiere un externo PLC u otro controlador que observa y responde a señales del dispositivo I/O. Varios ejemplos muestran como funciona esta comunicación.
Ejemplo 1: Hardware externo controla el ritmo del interruptor (oprimir/soltar) - El Teclado que pruebas tiene tres interruptores S1, S2 y S3. El controlador de su probador tiene tres émbolos neumáticos. El controlador empieza oprimiendo interruptores cuando "Escaneando por Interruptores" es activo. Oprime cada interruptor una vez activando el émbolo correspondiente por un tiempo preprogramado y luego se mueve al siguiente interruptor en la secuencia.
Fije el Mode Automatización a "Hardware exterior controla ritmo de oprimir/soltar de interruptor" bajo Mistral Opciones.
El diagrama de tiempo abajo muestra el estado de las salidas durante la prueba de un Teclado. Una descripción de los eventos enumerados sigue.
Ejemplo 1 Diagrama de Tiempo
El Mistral comienza escaneando por cortos, LEDs y conexiones permanentes. La salida "Escaneando por cortos, LEDs y conexiones permanentes" se activa.
"Escaneando por interruptores" se activa indicando que el Mistral ha completado escaneando por cortos, etc. y ha comenzado buscando por interrupciones.
El controlador debe reconocer que "Escaneando por interruptores" es activo y debe bajar el émbolo para S1, el primer interruptor en la secuencia.
Después que el tiempo programado pasa, S1 debe ser soltado.
"Escaneando por interruptores" sigue activo y el controlador debe oprimir S2.
El controlador suelta S2. La resistencia del interruptor medida por el Mistral fue mala y por eso el Mistral afirma "Teclado Falló".
El controlador oprime S3.
El controlador suelta S3. A este punto el controlador debe esperar por "Escaneando por interruptores" sea deactivado. No debe empezar la secuencia de nuevo. Esto es porque si un interruptor tiene defecto y el Mistral no lo detectó cuando fue oprimido, el controlador debe esperar que el Mistral esté fuera de tiempo antes de reconocer que la prueba ha terminado.
El Mistral ha detectado que cada interruptor ha sido oprimido de menos una vez y la prueba ha terminado. "Escaneando por interruptores" se deactiva y "Prueba Completa" se activa. Nota que como uno de los interruptores falló, "Teclado Falló" es afirmado. Estas dos señales permanecerán activas hasta que "Prueba Siguiente Teclado" es oprimido, usando el mouse o el teclado de la PC o por medio de la entrada "Probar Primer Teclado/Probar Siguiente Teclado".
Nota que si fija su Mistral a fallar un Teclado cuando encuentre un mal interruptor, la prueba puede para en la mitad en cual tiempo "Escaneando por interruptores" es deactivado. Su controlador debe parar de oprimir interruptores y esperar que "Escanear por interruptores" sea reactivado otra vez. Si "Interruptores deben ser oprimidos en secuencia" es seleccionado en la ventana Editar Info su controlador debe reiniciar al primer interruptor cada vez que "Escanear por interruptores" es activo.
Ejemplo 2: Mistral controla el ritmo del interruptor (oprimir/soltar) - El Teclado que estás probando tiene tres interruptores S1, S2, y S3. El controlador de su probador tiene tres émbolos neumáticos. Quieres probar lo más rápido posible por eso su controlador debe observar "Siguiente Interruptor" y "Mismo Interruptor".
Fije el Modo Automatización en Opciones Mistral a "Mistral controla el rithmo de interrupción" y seleccione "Rever interruptores fallados" fijando el número a 2.
El diagrama de tiempo abajo muestra el estado de las salidas durante la prueba de un Teclado. Una descripción de los eventos enumerados sigue.
Ejemplo 2 Diagrama de Tiempo
El Mistral comienza escaneando por cortos, LEDs y conexiones permanentes. La salida "Escaneando por cortos, LEDs y conexiones permanentes" se activa.
El Mistral ha completado escaneando por cortos, etc., y empieza a scanear pof interruptores ("Escaneando por interruptores" se activa) y afirma "Siguiente Interruptor". El controlador debe bajar el émbolo para sobre uno de los interruptores, digamos S1. Nota que no importa cual interruptor es oprimido primero mientras todos son oprimidos en secuencia.
El Mistral deactiva "Siguiente Interruptor". El controlador debe soltar S1.
El Mistral afirma "Siguiente Interruptor" de nuevo. Eso significa que el Mistral ha decidido que S1 es bueno. El controlador debe oprimir S2.
El Mistral deactiva "Siguiente Interruptor". El controlador debe soltar S2.
"Mismo Interruptor" es afirmado. Esto significa que el Mistral no recibió un buen valor para S2. El controlador debe oprimir S2 de nuevo.
El Mistral deactiva "Mismo Interruptor". El controlador debe soltar S2.
El Mistral afirma "Mismo Interruptor" de nuevo. Esto significa que el mistral no recibió un buen valor para S2 la segunda vez y va a provar una vez más. El controlador debe oprimir S2 de nuevo.
El Mistral deactiva "Mismo Interruptor". El controlador debe soltar S2.
"Siguiente Interruptor" es activado. Como "Teclado Falló" no fue afirmado y esta es la última vez este interruptor puede ser probado, el Mistral debe haber recibido un buen resultado para S2. El controlador debe oprimir S3.
El Mistral deactiva "Siguiente Interruptor". El controlador debe soltar S3.
El Mistral terminó escaneando por interruptores ("Escaneando por interruptores" deactivado) y ha completado las pruebas del Teclado ("Prueba Completa" es activado). Como todos los interruptores pasaron, "Teclado Pasó" es afirmado.
Nota que si fijas el Mistral a que falle un Teclado cuando encuentre un mal interruptor, la prueba puede parar en la mitad. De nuevo su controlador no necesita preocuparse mientras "Interruptores deben ser oprimidos en secuencia" no es seleccionado en la ventana Editar Info. Nomás asegure que el último interruptor oprimido fue S3 y que vea "Siguiente Interruptor" sea activado, luego debe oprimir S1. Si "Interruptores deben ser oprimidos en secuencia" es seleccionado, su controlador debe reiniciar al primer interruptor cada vez que "Escaneando por interruptores" es activado.
< | Index de Ayuda | >