FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

[c]FP-20XX vs [c]FP-21XX Serial Problem

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.

 

 Capture1.PNGCapture2.PNG

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, 

0 Kudos
Message 1 of 6
(6,960 Views)

I do not get the same behavior as youI have serial 3.3.4 and VISA 4.5.1, but I don't think that would make a differenceHave you tried formatting the controller and reinstalling softwareAlso have you been able to see this on more than one cFP-20xx?

 

 

VISA.png

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 2 of 6
(6,937 Views)

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.

 

 

0 Kudos
Message 3 of 6
(6,910 Views)
Is the only thing that you add to the code the snippet that you show in the first thread?  And if you remove it does the error go away?
Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 4 of 6
(6,891 Views)

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, 

0 Kudos
Message 5 of 6
(6,887 Views)

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?

0 Kudos
Message 6 of 6
(6,883 Views)