Error -1074384753 Using the nxWait Function on LabWindows™/CVI™

Updated Apr 10, 2019

Reported In

Software

  • LabWindows/CVI
  • LabVIEW

Issue Details

In my LabWindows/CVI program, I create a CAN session, I write some data and then I use the nxWait function as shown on the following picture:
 

When I launch my program, the following error appears at the nxWait function. what do I do wrong?

Library function error (return value == -1074384753 [0xbff6308f]
NI-XNET: (Hex 0xBFF6308F) The function you called is not defined for the session mode (e.g. you called a frame I/O function on a signal I/O session).

Solution

Using the nxWait function with the parameter nxCondition_TransmitComplete will not work if the session mode in is single point (nxMode_FrameOutSinglePoint). You must change it to nxMode_FrameOutQueued. By using a queue, the function will verify if all the values have been transmitted or not. With the single point mode, the values are not buffered so it is not possible to check if the transmission is complete.