04-01-2010 10:35 AM
I am running several fieldpoint controllers, some FP-20xx, some FP-21xx, some cFP-20xx and some cFP-21xx. I am trying to set the state of the RTS, DTS lines on the serial port and then trying to read the RI state. On the [c]FP-21xx the code works fine. On the [c]FP-20xx I get an error and then the controller starts acting funny (web page sometimes will not load, trying to redeploy will lock up the controller, etc.). I am using LV RT 8.5.1 (because the FP-2XXX will not allow anything higher) and Serial 3.3.0 and Visa 4.3.
Here is a snippet of the code I am using, and the Front Panel Error I am getting. To get started I am just setting the RTS state. I have tried it with and without the VISA serial configure, and with and without a VISA serial open.
Any ideas?
Thanks,
04-02-2010 12:14 PM
I do not get the same behavior as you. I have serial 3.3.4 and VISA 4.5.1, but I don't think that would make a difference. Have you tried formatting the controller and reinstalling software? Also have you been able to see this on more than one cFP-20xx?
04-05-2010 10:49 AM
Yes, I also found that it works on both controllers. I have an old program that works in both controllers. When I added this bit of code to add more functionality, it worked fine on the one controllers and not on the other controllers. So I thought it was the added code. But if i remove the original program and use just this added code it works in both controllers.
So let me attach the whole program.
Tell me what you think.
04-06-2010 09:26 AM
04-06-2010 09:36 AM
I added the publish data stuff at the bottom along with the Serial stuff. But if I remove the serial stuff, the rest works fine on both controllers. When I add the serial stuff, it only works on the one controller and the other controller gives me the error message stated above. So since added and removing the serial stuff causes and fixes the problem, I assume that the problem is with the serial stuff. But maybe it is some sort of interaction between the serial, the rest of the code and the controller hardware.
Am advice would be appreciated. I will try to remove sections of code with the serial stuff in place and find out if there is another combination of software that works. Then maybe I can find which two things are interfering with each other.
Any other advice? Things to try? App notes?
Thanks,
04-06-2010 10:29 AM
AC is me,
Double check the version of NI-VISA installed on your cFP-20xx modules. The cFP-20xx family has less memory that the cFP-21xx family. Any chance you are running out of memory?