LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I find DDE execute vi

Hi all,
 
I need to communicate with an third party software (OPUS). The communication available is DDE Based.
With the example, there's a connect vi, close connection, request and poke vi but no execute one.
Where can I find that?
 
Thanx
 
Dai
Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 1 of 11
(4,948 Views)
It's in the same place you found the others - \LabVIEW\vi.lib\platform\dde.llb. Don't try to find any DDE functions on the palette. Even though they still ship, NI removed all DDE functions from the palette a long time ago due to Microsoft dropping support for DDE and so few applications supported it.
0 Kudos
Message 2 of 11
(4,936 Views)
Oups,
 
Thank you very much, I did not look in this library. I searched for dde files and did
not looked at this one I suppose.
 
Unfortunately, OPUS only support DDE. It is possible to access OPUS through
OPUS Process via OPC but the communication is very limited. You cannot
access all the functions...
 
Thanks
Dai

LV 7.1 - WIN XP - RT - FP
Message 3 of 11
(4,929 Views)
For anyone still looking to control OPUS with labview, note that an ActiveX interface is available free of charge (via e-mail) if you talk to one of their support folks.


0 Kudos
Message 4 of 11
(4,792 Views)

Could you please send me this ActiveX interface?

Thank you

0 Kudos
Message 5 of 11
(4,619 Views)
Hi eruvi,

I believe the ActiveX interface would be available from Opus software itself, www.opussoftware.com. 
LabVIEW's ActiveX VIs can be found in the Connectivity palette.
Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 6 of 11
(4,575 Views)

Hi geremy_B

May you have any example code of controlling OPUS via Labview? it's really can help me

Thank you

Tomer

0 Kudos
Message 7 of 11
(4,559 Views)
Hi Tomer,

We do not have any example code unfortunately (that I am aware of).

Here's a link to an intro on using ActiveX with LabVIEW, hopefully it might help you out: http://zone.ni.com/devzone/cda/tut/p/id/2983
Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 8 of 11
(4,545 Views)
Once you are comfortable with Labview and ActiveX (and have downloaded the OpusCMD package), the code should be pretty striaght forward

 TakeBackground a = new OpusCMD334.TakeBackground();
 QuickSample q = new QuickSample();
 bool error = a.TakeReference(XPMFile); //XPMFile is the filename for a scan method you've created
 bool error = q.QuickSample(XPMFile);

Your data is now in q.DataArray, which is a 2D array of double.

That's in C#, but it should point you in the right direction for what to call in Labview.

Don't forget to read the documentation that comes with the package. It's a bit wordy, but all the info you need is there.

-Jay


Message Edited by JayK. on 08-06-2008 11:32 AM
0 Kudos
Message 9 of 11
(4,543 Views)

Thank you very much

 

0 Kudos
Message 10 of 11
(4,531 Views)