03-02-2007 12:14 PM
03-05-2007 05:17 PM
03-05-2007 05:29 PM
Thank you Steven.
The FP API (CNiFieldPointNetworkModule ) has been absoleted in MStudio 7.1 or later. See the link
http://digital.ni.com/public.nsf/websearch/EF9D2EC43BC132C986256EEE00771477?OpenDocument
Somewhere it is suggested that use DataSockets instead. But the artiacle also mentioned that you can use only ~26 sockets because of the memory limitation on the FP network module.
I pretty much understand how the CVI API works. But still didn't get how this DataSocket works. Do you have any sample code ?
More over if I have more than 26 IOs, what is the best method to use, CVI ? or Datasocket ?
thx,
raju
03-05-2007 06:25 PM
Hi steven,
My h/w configuration is : FP-1601 ethernet module is connected to 9 FP modules (AI-110, AI-210 and DI-401). The 1601 is connected to host PC. May be I didn't mention before, I don't have neither LAbwindows/CVI nor MeasurementStudio. I downloaded the evaluation copies of these. I need to find which tool is suitable to me. So that I can buy one.
I really appreciate your quick help.
thx,
raju
03-06-2007 01:34 PM
03-06-2007 01:39 PM
Thanks again Steven. We have LabView 7.1, and we have prototype LabView applicaations running. But we need greater control to build an automation application.
raju
03-08-2007 12:53 PM
Hi Steven,
I was able to talk to FieldPoint modules using the .NET DataSocket using the following url.
"opc://localhost/National Instruments.OPCFieldPoint/FP @ 192_168_1_9\\FP-AI-110 @1\\Channel 1"
I have around 9 FPs (AI/AO, DI/DO) connected to FP1601 ethernet module. So I have around ~70 IO points on all the modules. Can I create 70 DataSockets ? If not how do I read all of these IO points ? Is it possible to connect to one FP module and read all the channels at once ?
Appreciate any help
thx,
raj
03-12-2007 12:05 AM
03-12-2007 12:00 PM
Hi Steven,
I believe the VB code still uses 16 DataSockets to get the all the 16 channel values. Somewhere in the message board I read that the "All" channel just returns the value of the first channel, instead of returning an array of values for all the channels. Moreover I am not a VB programmer. Any C# code would be great, if not C++ is ok.
The other question I have is the MAX studio's .iak file. I like to be able to read all the FP module names and channel names from my C# programme, so that there will be only one h/w configuration file. I understand the .iak file format is internal to NI and is not published. My questions are 1) is there any API to browse and get all the channel names and module names ? 2) if 1 is not possible, is there a way I can export the module and channel definitions to an XML file, so that my programme can read the channel definitions.
appreciate your quick response.
thx,
raj
03-15-2007 09:47 PM - edited 03-15-2007 09:47 PM
Message Edited by Steven C on 03-15-2007 09:48 PM