We are having trouble opening the RS232 serial port on the new CRIO-FRC II. Using the exact same code, we were able to successfully open the port and use read/writes on the older 8-slot CRIO-FRC version 1. However, with the new 2012 4-slot version we are seeing an error upon initialization:
Using port: ASRL1::INSTR
error code: -1073807246
We have tried the NI serial port VISA module as well as the WPI version, with similar failures. Has anyone else encountered this problem?
Not really sure what the answer is, but I looked up the error code (you can do that in Help->Explain Error) and got:
Error -1073807246 occurred at an unidentified location
Possible reason(s):
VISA: (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.
Ok, thank you, we picked up a null modem cable adapter at our local Radio Shack. Does anyone know how to read in values from the serial port on the cRIO? We are using HyperTerminal to emulate a device that will send data to the cRIO via serial port. We know that the HyperTerminal is sending the data, and we know that the data is successfully being transferred down the cable. We are using C++ and we have yet to figure out the logic to reading the values from the buffer with the Read method.