Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Interpreting Values for the ncWaitForState Function or ncWaitForState.vi (Formerly ncWait.vi)

Hardware: Industrial Communications>>CAN

Problem:
How do I interpret the value to be written or returned by the ncWaitForState function or ncWaitForState.vi?

Solution:
The ncWaitForState function or ncWaitForState.vi returns a value indicating that one or more of the following events occurred:
  1. Read Available (at least one frame is available to read; 0x01)
  2. Write Success (all frames provided to via the write function or vi have been successfully transmitted onto the network; 0x02)
  3. Remote Wakeup (a remote wakeup occurred and Transceiver Mode has changed from sleep to normal; 0x04)
  4. Read Multiple (a specified number of frames is available for reading; 0x08)

The hexadecimal values indicated in parentheses above correspond to values used to set or used to interpret the value returned for the ncWaitForState() function or ncWaitForState.vi.  Below is an example:


For more information please reference the function description of the ncWait VI or the ncWaitForState() function in chapter 10 or 11 of the NI-CAN Hardware and Software Manual linked below.

Related Links:
Product Manuals: NI-CAN Hardware and Software Manual

Attachments:





Report Date: 09/24/2004
Last Updated: 03/27/2009
Document ID: 3DNBCA4B

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit