Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

cFP-1804 and Measurement Studio

I have a cFP-1804 (Firmware 6.05) with a DI-304 a DO-403 and a PF-522 Module installed in the Network. I can read and set the IOs with MAX, but now i want to control the unit with Measurement studio (8.1.1 with VS2005 c#).
I haven't an idea how to start. Speed isn't important, it should only work.
Where can I find an example?
Thanks!
0 Kudos
Message 1 of 3
(3,573 Views)
Hi Lukas_S,

check out the following links, they sure might come in handy:

Can I Use Microsoft Visual C++ 6.0 and/or Visual C++ .NET with My FieldPoint Modules?
http://digital.ni.com/public.nsf/websearch/8F5FA4560356E3EC86256B9F005A2CC2?OpenDocument

Reading Data from an OPC Server using DataSocket in Visual Basic
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EB1156A4E034080020E74861&p_node=DZ52133&p_source=External

Creating a DataSocket Reader/Writer with Measurement Studio ActiveX Controls in Visual C#
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E43956A4E034080020E74861&p_node=174961&p_source=External

Developing Industrial Automation Applications using Visual Basic .NET and OPC
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=FD3B0CA8E12E3219E0340003BA7CCD71&p_node=174961&p_source=External

Developing an OPC Client Application Using Visual Basic
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E84F56A4E034080020E74861&p_node=DZ52133&p_source=External

Daniel
NIG
0 Kudos
Message 2 of 3
(3,564 Views)

Thanks for the Links! But I need aditional Help 😞
I have tried with DataSockets.

dataSocketRead.Connect("lookout://10.10.0.99/FP/2DI/00", AccessMode.Read); //Connects to Channel 0 from the cFP-DI-304

dataSocketWrite.Connect("lookout://10.10.0.99/FP/3DO/00", AccessMode.Write); //Connects to Channel 0 from the cFP-DO-403

It works with the DO-403 and DI-304 Module.

Now I have 2 questions:
Is it necessary to use a dataSocket for each channel or can I somehow read / Write the entire 16 or 32 Channels with one connection? Speed isn't important.

The other question is how (syntax?) can I write Commands to a Module (PG-522)

 

Lukas

0 Kudos
Message 3 of 3
(3,555 Views)