Doc. # 1-0002139
Date Updated 07-27-2005 Date Created 07-27-2000
Document Type Knowledge Base Related OS
Related Product GeniDAQ
Is there a way to display the high and low alarm status of ADAM-4011D separately in VisiDAQ?
Solution:
In fact, the hardware alarm block is designed to send signal from the hardware when the high or low alarm occurs to make some warning. Nowadays, it is recommended that User Programmable Block, a block which allows for both input (up to 8 channels) and output (ut to 8 channels), can be adopted. Please connect the output of Hardware Alarm Block to the input of User Programmable Block. After that, you can write a program that acts on the input blocks as variables, with one or many lines in the program. Please refer to the on-line help about the block. For example, you can use the statement of output which allows you to output an expression to the next block (connected to this block's output ). The output data form can be an integer, floating point value (real number), or string. Here is an example. if (ALM == 1) output(#0, "Low alarm"); // output a string from channel 0 when low alarm is set by ADAM-4014D, ALM is the value of the output from Hardware Alarm Block. if (ALM == 2) output(#1, "High alarm"); // output a string from channel 1 when high alarm is set by ADAM-4014D, ALM is the value of the output from Hardware Alarm Block. By means of this block, the result of alarm can be separate into two devices.