Creating and Running Algorithms 189
Chapter 6
Example Scan
Verification Algorithms
Following are some simple examples demonstrating the use of scan
verification in an algorithm.
By using S1xx in an algorithm, various results for control or data acquisition
applications can be achieved. Assuming that one is interested in monitoring
the scan state of an RSCU at VT1422A channel 25, the following can be
done:
1. In the VT1422A algorithm:
if( S125 != 0) {
/* User application specific algorithm code for shutting down critical hardware or
reporting. Such as:
*/
O156 = 5.0 ;
/* send 5.0 volts to output chan, then open relay */
writecvt(S125, cvt_loc);
/* for reporting */
interrupt();
/* force a VXI bus interrupt. */
}
2. In the application:
S1xx states can also be achieved by using various
Plug&Play
functions or
SCPI commands, such as:
alg:scal? 'algn','S125'
Timing Impact
One of the tradeoffs for runtime scan verification is an impact on the overall
scan rate. The total time spent in scan verification depends on the number of
unique S1xx locations that are referenced in the algorithms. The total time
in scan verification can be determined by the following formula:
Total Time in scan verification:
= 0 when no S1xx locations are referenced.
= 230
μ
s + 40
μ
s*(number of unique S1xx identifiers referenced in
algorithms).
max time = 870
μ
s, if all sixteen S1xx locations are referenced.
Thus, the flexibility to make tradeoffs between maximum scan rate and scan
status checking is achieved.
The impact of using scan verification on the overall scan rate depends on
both the number of channels in the analog input scan list and the number of
channels in status list. In a system which uses the maximum number of
512 analog input channels and the maximum sixteen status channels, the
total timing overhead will be 870/(512*40) = 4.24%.
Also, if the status information is used to make decisions within an algorithm,
additional time will also be required. The timing impact in an algorithm will
depend on its complexity.
Summary of Contents for VT1422A
Page 2: ...This page is blank...
Page 8: ...8 Notes...
Page 22: ...22 Support...
Page 57: ...Field Wiring 57 Chapter 2...
Page 58: ...58 Field Wiring Chapter 2...
Page 96: ...94 Programming the VT1422A VT1529A B for Remote Strain Measurement Chapter 3...
Page 162: ...160 Programming the VT1422A for Data Acquisition and Control Chapter 4...
Page 224: ...222 Creating and Running Algorithms Chapter 6...
Page 419: ...VT1422A Command Reference 417 Chapter 7 Notes...
Page 420: ...418 VT1422A Command Reference Chapter 7 Notes...
Page 425: ...Specifications 423 Appendix A Thermocouple Type E 200 800 C SCPs VT1501 02 03A...
Page 426: ...424 Specifications Appendix A Thermocouple Type E 200 800 C SCPs VT1508 09A...
Page 427: ...Specifications 425 Appendix A Thermocouple Type E 0 800 C SCPs VT1501A 02A 03A...
Page 428: ...426 Specifications Appendix A Thermocouple Type E 0 800 C SCPs VT1508A 09A...
Page 429: ...Specifications 427 Appendix A Thermocouple Type E Extended SCPs VT1501A 02A 03A...
Page 430: ...428 Specifications Appendix A Thermocouple Type E Extended SCPs VT1508A 09A...
Page 431: ...Specifications 429 Appendix A Thermocouple Type J SCPs VT1501A 02A 03A...
Page 432: ...430 Specifications Appendix A Thermocouple Type J SCPs VT1508A 09A...
Page 433: ...Specifications 431 Appendix A Thermocouple Type K SCPs VT1501A 02A 03A...
Page 434: ...432 Specifications Appendix A Thermocouple Type R SCPs VT1501A 02A 03A...
Page 435: ...Specifications 433 Appendix A Thermocouple Type R SCPs VT1508A 09A...
Page 436: ...434 Specifications Appendix A Thermocouple Type S SCPs VT1501A 02A 03A...
Page 437: ...Specifications 435 Appendix A Thermocouple Type S SCPs VT1508A 09A...
Page 438: ...436 Specifications Appendix A Thermocouple Type T SCPs VT1501A 02A 03A...
Page 439: ...Specifications 437 Appendix A Thermocouple Type T SCPs VT1508A 09A...
Page 440: ...438 Specifications Appendix A 5k Thermistor Reference SCPs VT1501A 02A 03A...
Page 441: ...Specifications 439 Appendix A 5k Thermistor Reference SCPs VT1508A 09A...
Page 442: ...440 Specifications Appendix A RTD Reference SCPs VT1501A 02A 03A...
Page 443: ...Specifications 441 Appendix A RTD SCPs VT1501A 02A 03A...
Page 444: ...442 Specifications Appendix A RTD SCPs VT1508A 09A...
Page 445: ...Specifications 443 Appendix A 2250 Thermistor SCPs VT1501A 02A 03A...
Page 446: ...444 Specifications Appendix A 2250 Thermistor SCPs VT1508A 09A...
Page 447: ...Specifications 445 Appendix A 5k Thermistor SCPs VT1501A 02A 03A...
Page 448: ...446 Specifications Appendix A 5k Thermistor SCPs VT1508A 09A...
Page 449: ...Specifications 447 Appendix A 10k Thermistor SCPs VT1501A 02A 03A...
Page 450: ...448 Specifications Appendix A 10k Thermistor SCPs VT1508A 09A...
Page 454: ...452 Specifications Appendix A...
Page 480: ...478 VT1529A B Verification Calibration Appendix C...
Page 484: ...482 Glossary Appendix D Notes...