在 11-14-2007 10:41 AM
在 11-14-2007 03:09 PM
在 11-14-2007 05:56 PM
在 11-14-2007 07:02 PM
Sometime last week, I downloaded a version of my app as a "startup DLL". At the beginning of this week, I used the file copy utility to "Toggle Startup DLL" - so that it was NOT marked startup. But I left it in the NI-RT\CVI directory. It seems like whenever I clicked debug while the dll on my development machine was up-to-date, it either did not download the newest dll, or it ran the one in the NI-RT\CVI directory first. I'm not sure I always saw the download popup. At some point I will try to reproduce this.
But for now, I have removed the dll from the NI-RT\CVI directroy, and now I am consistently debugging with my latest version.
So I'm back to being stuck on a communications issue.
I have an multi-threaded application, where one thread writes a command stream to a serial port, and another thread recieves the commands and sends back responses. (The second thread is a simulator of our real hardware, at some point I will replace it with the actual item..). This application works perfectly when I use COM ports 1 and 2 - which are RS232. If I make one change - to use ports 3 and 4 - which are RS422 - the application runs for a second or two, then seems to freeze. I suspect that it is hanging on the ComWrt function, but I'm not certain of that.
I know the connection between ports 3 and 4 is good - I was able to run a version of the "Messages" example which used both ports. It worked using the same baud and other serial parameters as my application.
Any ideas about the differences between RS232 and 422 that would cause an application to freeze when doing RS422 writes?
Thanks for the help so far,
-Adam
在 11-15-2007 11:04 AM