Can you give me a bit more information about your issue? One, with what device are you trying to communicate with, and how are you communicating with it? Are you using our VISA Interactive Control? Are you referring to a specific VISA command, or are you saying that you are unable to send any VISA command if it contains an odd number of bytes? Your responses to these questions will be extremely helpful for me to help resolve your issue. Thanks!
So from your description, it sounds like your desktop computer is not able to see data being sent from the COM port of your cRIO hardware? You mentioned not having any flow control enabled and your string also doesn't contain any carriage returns or LF bytes. But the biggest concern you have is why strings with an odd number of bytes don't send but other strings of an even number of bytes send fine? You also referenced that the VISA operation for writing sent data on the subsequent write but not the initial for the string with the odd byte count? I want to make sure your issue is fully explained so that any solutions we offer will be beneficial.
I use C-prorramm on PC to listen COM-port. I run it in debug mode step by step. I wait read procedure on PC and have'nt any bytes, if I write odd bytes to Com port on Crio first time after initialization com-port
Wth best regards,
What serial hardware are you using in the cRIO you have? Is it the NI-9870 serial module?
I tried to duplicate this behavior but I could not. Attached is a project with a cRIO.
Under the PC, I have a VI "readonpc" that, when running, monitors the PC serial port and updates it's text box with the received data when it sees bytes waiting at the port.
Under the cRIO I have a VI "writeonrio" that, when run, writes the contents of its text box out the cRIO serial port.
You will have to change this projects cRIO target to match the 9014 you are using.
Thank You for help.
I am sorry, but I can't replay that situation, wich I ask. May be I use another cRio, or may be I make mistake. I don't know what reason, but all working,
I am sorry and thanks again.