LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Visit our LabVIEW Wiki External Code Portal.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Can an EXE use Active to open LV Development Environment?
jgcode
post Jun 12 2008, 06:37 AM
Post #1


Very Active
***

Premium Member
Posts: 214
Joined: 1-January 08
From: Perth, Australia
Member No.: 10325
Using LabVIEW Since:2006
LV:8.5.1 ,8.6 ,.
Australia Poland Nothing Selected


Just like you can open MS Word/Access etc.. with ActiveX can a Labview executable open the LabVIEW development environment using ActiveX
Can anyone post an example?
[I can open using system exec using an absolute path, but want something relative]

Is this the type library to call?
Attached Image

--------------------
all day...


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Jun 12 2008, 06:37 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
SciWare
post Jun 12 2008, 07:16 AM
Post #2


Very Active
***

Premium Member
Posts: 106
Joined: 18-November 04
From: Sydney, NSW
Member No.: 1058
Using LabVIEW Since:1996
LV:8.0.1 ,7.1.1 ,6.1
Australia Nothing Selected Nothing Selected


Try this

Attached File  OpenVI.zip ( 135.51K ) Number of downloads: 49

--------------------
Regards

Kurt Friday


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
jgcode
post Jun 12 2008, 09:36 AM
Post #3


Very Active
***

Premium Member
Posts: 214
Joined: 1-January 08
From: Perth, Australia
Member No.: 10325
Using LabVIEW Since:2006
LV:8.5.1 ,8.6 ,.
Australia Poland Nothing Selected


Thanks Kurt - bloody ripper.

Due to an error I couldn't get past the Automation Open VI when I linked the _Application ref.
I thought I was doing something wrong i.e. maybe due to the object I was linking to!
But your ref is the same and I ran your code and it worked fine!
Attached Image
I have seen this before - I copied an Active X example and their ref worked, I tried to generate one in the same VI and it wouldn't work.

Funnily enough - I can now create a ref that works! throwpc.gif
But my lappy still has the same problem!
I am coding in 8.5, but I just ran a VMWare 8.2 copy and it has the same problem.

1) Has anyone else seen this?
2) Am i doing something wrong?
3) Is there anything I have to do (refresh type library)?

Cheers

JG

--------------------
all day...


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
SciWare
post Jun 12 2008, 11:24 AM
Post #4


Very Active
***

Premium Member
Posts: 106
Joined: 18-November 04
From: Sydney, NSW
Member No.: 1058
Using LabVIEW Since:1996
LV:8.0.1 ,7.1.1 ,6.1
Australia Nothing Selected Nothing Selected


No problem mate

Does the code I posted work on your laptop?

At the moment I'm not sure what the issue could be, could you post that code you displayed?


--------------------
Regards

Kurt Friday


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
jgcode
post Jun 12 2008, 01:56 PM
Post #5


Very Active
***

Premium Member
Posts: 214
Joined: 1-January 08
From: Perth, Australia
Member No.: 10325
Using LabVIEW Since:2006
LV:8.5.1 ,8.6 ,.
Australia Poland Nothing Selected


QUOTE (SciWare @ Jun 12 2008, 07:24 PM) *
No problem mate

Does the code I posted work on your laptop?
At the moment I'm not sure what the issue could be, could you post that code you displayed?


Well, I have explicitly not put it on my laptop as I want to discover the problem (but I am sure if I do it will work).
Funny thing is after I ran your code a few times, my refs that didn't work - worked! frusty.gif

My code was exactly like yours.

<edit>
I have seen weirder things.
I am going with bug?
Have just ran 8.5.1 in VMWare - works fine no problems.
Looks like I will upgrade methinks.

Now I can finally play with Active that works!!

beer_mug.gif dude

</edit>

This post has been edited by jgcode: Jun 12 2008, 02:07 PM

--------------------
all day...


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 19th November 2008 - 11:29 PM