DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I call DIAdem CLIP from LabVIEW or DIAdem

Can you open DIAdem CLIP directly from DIAdem 9.0 or from Labview 7.1?
0 Kudos
Message 1 of 9
(6,168 Views)
hello bossio,

you can open clip from diadem or labview. but the abilities to control clip is limitied.

what do you want to do with clip?

Sven
Message 2 of 9
(6,168 Views)
CLIP is working fine for me showing video and associated data from tests run in LV. I'd like to run a test and then be transferred into CLIP directly to syncronize, present , etc., without going through the Windows interface to open it? I see how DIAdem is opened from LV through the Connectivity VIs but not CLIP. And from DIAdem, LV can be started from a LV icon in the main panel but not CLIP. I would have thought that there would be a thorough connectivity that would run through the add-ons like CLIP also. Or is this a dll issue? Thanks.
0 Kudos
Message 3 of 9
(6,168 Views)
Hello bossbio,

As Sven said, you can open DIAdem-CLIP or DIAdem-INSIGHT from inside DIAdem or LabVIEW. It's not automated, but it's also not hard to do. The way I have have done this is the past is to have a pre-configured DIAdem-CLIP (or DIAdem-INSIGHT) scene/presentation file (*.cis;*.cip;*.sim) which is configured to display my data and visualization.

This command-line works for DIAdem-CLIP or DIAdem-INSIGHT:

<executable> [<scene or presentation>]

<executable> - full path to the DIAdem-CLIP or DIAdem-INSIGHT application EXE.

<scene or presentation> - optional command-line parameter specifying the full path to a DIAdem-CLIP (or DIAdem-INSIGHT) scene/presentation file (*.cis;*.cip;*
.sim).

I have attached two items for you that illustrate this approach:

Launch DIAdem CLIP or INSIGHT.vbs - this VBScript will launch DIAdem-CLIP (or DIAdem-INSIGHT) from inside DIAdem.

Launch DIAdem CLIP or INSIGHT.vi - this LabVIEW 7.0 VI will launch DIAdem-CLIP (or DIAdem-INSIGHT) from inside LabVIEW.

Both the DIAdem VBScript and the LabVIEW VI can optionally be configured to pass the scene or presentation filename so it is automatically opened when the program starts up.


David Mc.
NI Applications Engineer

Message 4 of 9
(6,168 Views)
hi bossbio,

you can prepare a scene in clip, run your test in lv, store the data in a defined directory and overwrite the files from the prepared scene. (the scene file (.cis) references to external datas)

now you can start clip with the ole- (activex-) interface.

you can use the following vbs-file to start clip from the cmd-line:

view.vbs

Option Explicit

Dim oApp
Dim oDoc

Set oApp = CreateObject("Clip.Application")

if typename(oApp) = "nothing" then
MsgBox("Error")
end if

Set oDoc = oApp.LoadScene("E:\test.cis")

MsgBox("press ok to close clip.")


set oApp = nothing

0 Kudos
Message 5 of 9
(6,168 Views)
Excellent. Both solutions work and are direct and easily implemented. These definitely should be included in the CLIP and INSIGHT documentation.
0 Kudos
Message 6 of 9
(6,169 Views)

Within version 10 of DiADEM is there any way of choosing the directories which CLIP opens with?

Or can you load the avi, datafile and graphics directly into CLIP automatically?

I can start Clip with the scene presentation, but I still need to select the output files that I have just created through my DIADEM programme.

Thanks

Stagsden

0 Kudos
Message 7 of 9
(5,759 Views)
Hi Stagsden,

Unfortunately, there is not way to do this automatically at this time, and the only alternatives are both listed above.

Regards,
0 Kudos
Message 8 of 9
(5,736 Views)
Hi Stagsden,

The origin of this thread is rather old and without thinking too much about your usecase I would like to mention that DIAdem 10 offers video synchronization on its own. Perhaps you could evaluate the videos directly in DIAdem VIEW?

Regards,
Ralf
0 Kudos
Message 9 of 9
(5,731 Views)