FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

CompactFieldPoint controller locks up on file I/O to multiple locations... Why?

I'm trying to write an embedded LabVIEW program to do control and datalogging on a compact FieldPoint 2020 controller with a flash card. The program works perfectly, so long as I only try to write data to either the internal nonvolatile memory or the flash card, but if I do anything with both, the entire controller freezes--the program is clearly not operating, and the 2020 will not respond to any network requests, including FTP and FieldPoint Explorer.

Specifically, what I'm trying to do is read from a preference file stored on the built-in memory, drive "C" (using the preference vis) at startup, then check the free space on the flash card, drive "D", and if there's enough, open a file
and begin writing data to it. The program never gets past the free space check, however, before locking up the cFP controller.

Ideally, the program would also use the internal storage as a fallback if the flash card fills up, which is the main reason I'd like to be able to write different files to different locations.

If I target both operations at either the C: or 😧 drives, the program works fine, and creates the appropriate files.

Finally, if I target directly to the cFP controller, rather than embedding an auto-start application on it, and run a similar version of the program successfully, the suspect program will apparently run properly, which is even more confusing to me.

Doing everything on the flash card is a workaround solution, but at the very least I'm wondering if I'm doing something wrong, or misunderstanding cFP file I/O. I've so far been unable to get a simplified test case to fail completely, so I don't have an example to offer.

I'm running LabVIEW 6.1
with the 6.1 RT module, and ver 3.0.2 of the fieldpoint software.
0 Kudos
Message 1 of 2
(3,195 Views)
Mako,

I wrote a little test program that writes a configuration file to the C drive and also checks the free space on the D drive. I didn't have any problems with it at all. I ran it targeted from LabVIEW as well as built an embedded executable. I was using a cFP-2020, LabVIEW 7.1, and NI FieldPoint 4.1. However, I doubt it is an issue with the differences in software versions.

Just as you are currently doing, I recommend trying to nail down a small application that demonstrates the issue if possible. At this time it doesn't seem like a memory issue since you can run it several other ways without having an issue.

Ames
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(3,195 Views)