08-04-2006 11:10 AM
08-07-2006 02:47 PM
Hello jclark,
I have taken a look at your problem, and I have a couple of suggestions.
Unfortunately, CVI 5 and FieldPoint 1.7 are pretty old, and there is not much
documentation. I did install CVI 5 and FieldPoint 2 on a machine to try
and help you out.
You mentioned that the error seems to be occurring at the FP_Open. If you
look at the FP Open function help you will see the following definition:
IAStatus FP_Open (IAString Configuration_File_Path_Name, IAHandle
*Server_Handle);
If you open your code, is the pathname used in the FP_Open an absolute path
(i.e. c:\myProject\myIak.iak)? If so, have you placed your configuration
file in the exact same location? If not, the FP_Open will return an error.
Also, you mentioned that you can read data from FieldPoint Explorer. Are
you reading expected data, and does the data change?
Regards,
Jesse O.
Applications Engineering
National Instruments
08-07-2006 03:09 PM
08-08-2006 12:40 PM
Hello Jon,
As I mentioned before, I setup a FP-1600 and an analog
input module. I also installed CVI 5 and FP 2.0. In this
configuration I wrote the following code. It is very simple and basic,
but it should give us some useful information. Can you please take the
following text file, and create a CVI project and add the contents of this file
in a .c file. Run this application. It will require you to enter in
some information into the code for the correct channel to open.
I wrote this for you because you mentioned getting "undefined
symbols" errors. I'm thinking there could be something in your code
that is OS specific. It could also be a problem with your software
installation (i.e. not installing the CVI support when you installed the
FieldPoint driver). This code should help isolate the problem.
Please use the attached code in a project to see if you can
use it to communicate with your device.
Regards,
Jesse O.
Applications Engineering
National Instruments
08-08-2006 03:40 PM
08-08-2006 04:10 PM
08-08-2006 04:41 PM
UPDATE: I installed Fieldpoint v5.0, which I downloaded from NI.com and installed it on my XP machine. It seemed to already be pointed at the right IAK file, and so I ran the test program again, the first time with the FP_Open call pointing to a specific path, then using the NULL argument. Here's what I got:
Starting Program
Error: The FieldPoint server initialization failed. Possible causes: 1. Missing or corrupt configuration file; 2. Failed to create callbacks.Error: The specified tag name was not found.Error: An invalid IAHandle was specified. Verify that the configur
ation file is valid and the IAHandle used matches the IAHandle returned by FP_Open.
Completed Program!
Starting Program
Error: The connection to a remote device timed out.
Completed Program!
It looks like the second time it would have worked if I was connected. So maybe I can just use this FieldPoint installation and be done with it...
08-08-2006 04:50 PM
Hello Jon,
Once you have the hardware, installing the newer version of FieldPoint might
correct your problem. When you ran the code, were you running it in CVI
5?
Generally our drivers keep compatibility for 3 versions back, so FieldPoint 5
might not install support for CVI 5. However it looks like you are able
to communicate with the driver ok, so I would give it a try.
Please let me know how this turns out for you.
Regards,
Jesse O.
Applications Engineering
National Instruments
08-09-2006 02:30 PM
Alas, its over...installing FieldPoint 5.0 did the trick. Apparently there are some issues, understandably, between FieldPoint 1.7 and XP. Hopefully that helps someone else out there. Thanks for the help.
Jon