This example shows only the block diagram and the code. Complete the following steps to create a CIN that compares two single-precision numbers.
![]() |
Note LabVIEW must be installed on the computer you use to create the CIN. |

/*
* CIN source file
*/
#include "extcode.h"
CIN MgErr CINRun(float32 *A, float32 *B,
LVBoolean *compare);
CIN MgErr CINRun(float32 *A, float32 *B,
LVBoolean *compare) {
if (*A == *B)
*compare = LVTRUE;
else
*compare= LVFALSE;
return noErr;
}
Refer to the Determine if two numbers are equal VI in the labview\examples\cins\aequalb directory for an example of a CIN that compares two numbers.