LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DDE server connect / disconnect

Hi,

 

I have a few flowmeters in system. Each of them is sitting at different DDE server, named FlowDDE, FlowDDE2, etc. 5 in total.

I'm connecting through: 

ConnectToDDEServer (&hConv, "FlowDDE", "C(1)", DDECallback, 0);

ConnectToDDEServer (&hConv, "FlowDDE2", "C(1)", DDECallback, 0); etc.

and everything works well.

To disconnect there is command:  DisconnectFromDDEServer (0);

 

However, it's not exactly what I want to do... this command breaks all connections with specification.

So my question: is there any command with specification for disconnection? or is there any way to specify server name into DisconnectFromDDEServer ?

 

Thank you,

Alexey.

 

UPDATE: /Solved/

 

I recognised, that I can add different unsigned int

 

static unsigned int hConv, hConv2;

ConnectToDDEServer (&hConv, "FlowDDE", "C(1)", DDECallback, 0); 

DisconnectFromDDEServer (hConv);

 

ConnectToDDEServer (&hConv2, "FlowDDE2", "C(1)", DDECallback, 0); 

DisconnectFromDDEServer (hConv2);

 

works well. 

0 Kudos
Message 1 of 3
(3,590 Views)

Hi ALL

 

Can someone put a simple example for call a specific parameter into specific node?

 

For instance,  Measure or setpoint.

 

Thanks in advance

 

Jose

 

 

0 Kudos
Message 2 of 3
(3,251 Views)

Hi Jose, 

 

It looks like you have posted on a very old thread.  I think you might find more luck getting replies if you try to start a new post.  Also, it might help if you elaborate a little more in your question, or post a suggestion and ask for comments.  

 

Best wishes!

Amanda B.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(3,238 Views)