Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Making LabVIEW Recognize a CIN as Thread Safe

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

The CIN on the block diagram is orange if you have not set the node to be thread safe. A thread safe node is yellow. Complete the following steps to make LabVIEW recognize a CIN node as thread safe.

  1. Add the CINProperties function to your CIN code in the prototypes section of your .c source file, as shown in the following example code:

    CIN MgErr CINProperties(int32 prop, void *data);
  2. Add the following function statement to the functions section of your .c source file:

    CIN MgErr CINProperties(int32 prop, void *data)

{

switch (prop) {

case kCINIsReentrant:

*(Bool32 *)data = TRUE;

return noErr;

}

return mgNotSupported;

}


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit