02-13-2009 01:07 AM
Solved! Go to Solution.
02-13-2009 04:46 PM
Hi alexart,
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!
02-16-2009 04:04 AM
02-17-2009 11:50 AM - edited 02-17-2009 11:52 AM
Hey,
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.
02-18-2009 07:57 AM
Hello!!!
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,
Alexander A/
02-18-2009 08:57 AM
Hello,
What serial hardware are you using in the cRIO you have? Is it the NI-9870 serial module?
02-18-2009 09:29 AM
02-18-2009 12:34 PM - edited 02-18-2009 12:35 PM
Hi Alexart,
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.
02-24-2009 02:29 AM
Hello!!!
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.