Where Is the StatusByteRequestedEventHandler in NI-Device 1.4 (or Later)?
Primary Software: Driver Software>>NI-Device
Primary Software Version: 1.4
Primary Software Fixed Version: N/A
Secondary Software: N/A
Problem: I have been using the StatusByteRequestedEventHandler to respond to serial polls from the controller. I recently upgraded to NI-Device 1.4, and it seems that this event handler is no longer supported. Is this event handler still available?. If not, what should I use instead?
Solution: The
StatusByteResquestedEventHandler has been removed from the NI-Device API 1.4 due to technical reasons. This change is meant to simplify the handling of the status byte.
You have two options:
- Upgrade to NI-Device 1.5, which restores the StatusByteResquestedEventHandler and contains additional enhancements to NI-Device. See the related KnowledgeBase link below for further information.
- You can use the UpdateStatusByte method to manage the status byte of your device. This mechanism was available also in NI-Device 1.3 and prior. The change in the NI-Device 1.4 or later API was to make this the only available mechanism to manage the status byte. You should call UpdateStatusByte anytime your device changes it state and needs to reflect that on the Status Byte (Message Available, for example). When the controller serial polls the device, NI-Device will send the latest copy of the Status Byte pasts to the UpdateStatusByte method.<\ol>
Related Links: KnowledgeBase 2BHDDVXY: What Is NI-Device and When Should I Use It?
Attachments:
Report Date: 11/14/2003
Last Updated: 07/13/2004
Document ID: 33DA7U2Y