From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Activex problems

Hello,
This one was submitted to Ni guys but if you've any idea...

I'm currently writing an app which should display a nice graph (chart) on
its front panel. I choose to use MSGraph8 ActiveX from Microsoft, which is
furnished with the Office suite.

To do this, I've placed a container on my front panel, and in the window
'select activex object', I'm going to the 'Create Object' item in the
droplist and choose "Graphique MS Graph 97" (in french).

It works quite well, but :

1) It seems creating this document launches MSGraph8, as I see in the task
list when ctrl-alt-deleting; and that this Msgraph DON'T CLOSE when closing
the VI !! In other words, after some time, the VI hangs. I need you help
please ! How do I close this Msgraph ? I hop
e it's possible.

2) Using the properties & Method, I manipulate this object. Some Properties
return an object, which I use to define properties of this new object, ok ?
The problem is that some _Methods_ that should return an object refnum
returns a variant ! I tried to use the "To G data" function, but it can't
help. What should I do to convert this variant to an object refnum ?

I send you a copy of my VI, with some comments inside it. Thanks for your
help.

PS/ I'm french speaking if you want.

--
Matthieu Gaillet MGaillet.ccrm@euronet.be
Technicien R&D

C.C.R.M
Rue des Belles-Pierres 5
1421 Ophain
http://users.skynet.be/ccrm




[Attachment Occupation - Dépouillement.zip, see below]


[See first answer for additional information]
0 Kudos
Message 1 of 7
(3,155 Views)
[Attachment(s) for question]
0 Kudos
Message 2 of 7
(3,155 Views)
I looked at the VI you provided and was able to correct the problem. Since the Method Chart Axes
has 3 options of what to return, the return type has to be a variant. I just clicked on your
automation refnum above the Convert To G function and selected Graph.Axis (Microsoft Graph 8.0 ->
Axis). That is the desired return type for the xlValue selection. The Property control wired to
the Convert then showed the full range of properties.

-Michael
--
Michael Munroe Mailto:mmunroe@abcdefirm.com
A Better Complete Development Engineering Firm
San Mateo, CA 94403 http://www.abcdefirm.com
Get shirts at http://www.stitchofclass.com
Get Clarity at http://www.symmcorp.com/mmunroe

Matthieu Gaillet wrote:

> Hello,
> This one was submitted to Ni guys but if you've any idea...
>
> I'm currently writing an app which should display a nice graph (chart) on
> its front panel. I choose to use MSGraph8 ActiveX from Microsoft, which is
> furnished with the Office suite.
>
> To do this, I've placed a container on my front panel, and in the window
> 'select activex object', I'm going to the 'Create Object' item in the
> droplist and choose "Graphique MS Graph 97" (in french).
>
> It works quite well, but :
>
> 1) It seems creating this document launches MSGraph8, as I see in the task
> list when ctrl-alt-deleting; and that this Msgraph DON'T CLOSE when closing
> the VI !! In other words, after some time, the VI hangs. I need you help
> please ! How do I close this Msgraph ? I hope it's possible.
>
> 2) Using the properties & Method, I manipulate this object. Some Properties
> return an object, which I use to define properties of this new object, ok ?
> The problem is that some _Methods_ that should return an object refnum
> returns a variant ! I tried to use the "To G data" function, but it can't
> help. What should I do to convert this variant to an object refnum ?
>
> I send you a copy of my VI, with some comments inside it. Thanks for your
> help.
>
> PS/ I'm french speaking if you want.
>
> --
> Matthieu Gaillet MGaillet.ccrm@euronet.be
> Technicien R&D
>
> C.C.R.M
> Rue des Belles-Pierres 5
> 1421 Ophain
> http://users.skynet.be/ccrm
>
> Name: Occupation - D�pouillement.zip
> Occupation - D�pouillement.zip Type: Zip Compressed Data (application/x-zip-compressed)
> Encoding: x-uuencode
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.0, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 3 of 7
(3,155 Views)
Thank you really for your help ! It was simple... But not obvious ! 🙂
I'll try this & tell you if it ok.

MG


Michael Munroe a �crit dans le message :
39490EFD.65709935@abcdefirm.com...
> I looked at the VI you provided and was able to correct the problem.
Since the Method Chart Axes
> has 3 options of what to return, the return type has to be a variant. I
just clicked on your
> automation refnum above the Convert To G function and selected Graph.Axis
(Microsoft Graph 8.0 ->
> Axis). That is the desired return type for the xlValue selection. The
Property control wired to
> the Convert then showed the full range of properties.
>
> -Michael
> --
> Michael Munroe Mailto:mmunroe@abcdefirm.com
> A Better Complete Development Engineering Firm
> San Mateo, CA 94403 http://www.abcdefirm.com
> Get shirts at http://www.stitchofclass.com
> Get Clarity at http://www.symmcorp.com/mmunroe
>
> Matthieu Gaillet wrote:
>
> > Hello,
> > This one was submitted to Ni guys but if you've any idea...
> >
> > I'm currently writing an app which should display a nice graph (chart)
on
> > its front panel. I choose to use MSGraph8 ActiveX from Microsoft, which
is
> > furnished with the Office suite.
> >
> > To do this, I've placed a container on my front panel, and in the window
> > 'select activex object', I'm going to the 'Create Object' item in the
> > droplist and choose "Graphique MS Graph 97" (in french).
> >
> > It works quite well, but :
> >
> > 1) It seems creating this document launches MSGraph8, as I see in the
task
> > list when ctrl-alt-deleting; and that this Msgraph DON'T CLOSE when
closing
> > the VI !! In other words, after some time, the VI hangs. I need you help
> > please ! How do I close this Msgraph ? I hope it's possible.
> >
> > 2) Using the properties & Method, I manipulate this object. Some
Properties
> > return an object, which I use to define properties of this new object,
ok ?
> > The problem is that some _Methods_ that should return an object refnum
> > returns a variant ! I tried to use the "To G data" function, but it
can't
> > help. What should I do to convert this variant to an object refnum ?
> >
> > I send you a copy of my VI, with some comments inside it. Thanks for
your
> > help.
> >
> > PS/ I'm french speaking if you want.
> >
> > --
> > Matthieu Gaillet MGaillet.ccrm@euronet.be
> > Technicien R&D
> >
> > C.C.R.M
> > Rue des Belles-Pierres 5
> > 1421 Ophain
> > http://users.skynet.be/ccrm
> >
> > Name: Occupation -
D�pouillement.zip
> > Occupation - D�pouillement.zip Type: Zip Compressed Data
(application/x-zip-compressed)
> > Encoding: x-uuencode
>
>
>
>
0 Kudos
Message 5 of 7
(3,155 Views)
MS Graph has method Quit so you might try invoking it after modifying graph
to stop MS Graph from running.

"Matthieu Gaillet" wrote in message
news:3949c98a@newsgroups.ni.com...
> Thank you really for your help ! It was simple... But not obvious ! 🙂
> I'll try this & tell you if it ok.
>
> MG
>
>
> Michael Munroe a �crit dans le message :
> 39490EFD.65709935@abcdefirm.com...
> > I looked at the VI you provided and was able to correct the problem.
> Since the Method Chart Axes
> > has 3 options of what to return, the return type has to be a variant. I
> just clicked on your
> > automation refnum above the Convert To G function and selected
Graph.Axis
> (Microsoft Graph 8.0 ->
> > Axis). That is the desired return type for the xlValue selection. The
> Property control wired to
> > the Convert then showed the full range of properties.
> >
> > -Michael
> > --
> > Michael Munroe Mailto:mmunroe@abcdefirm.com
> > A Better Complete Development Engineering Firm
> > San Mateo, CA 94403 http://www.abcdefirm.com
> > Get shirts at http://www.stitchofclass.com
> > Get Clarity at http://www.symmcorp.com/mmunroe
> >
> > Matthieu Gaillet wrote:
> >
> > > Hello,
> > > This one was submitted to Ni guys but if you've any idea...
> > >
> > > I'm currently writing an app which should display a nice graph (chart)
> on
> > > its front panel. I choose to use MSGraph8 ActiveX from Microsoft,
which
> is
> > > furnished with the Office suite.
> > >
> > > To do this, I've placed a container on my front panel, and in the
window
> > > 'select activex object', I'm going to the 'Create Object' item in the
> > > droplist and choose "Graphique MS Graph 97" (in french).
> > >
> > > It works quite well, but :
> > >
> > > 1) It seems creating this document launches MSGraph8, as I see in the
> task
> > > list when ctrl-alt-deleting; and that this Msgraph DON'T CLOSE when
> closing
> > > the VI !! In other words, after some time, the VI hangs. I need you
help
> > > please ! How do I close this Msgraph ? I hope it's possible.
> > >
> > > 2) Using the properties & Method, I manipulate this object. Some
> Properties
> > > return an object, which I use to define properties of this new object,
> ok ?
> > > The problem is that some _Methods_ that should return an object refnum
> > > returns a variant ! I tried to use the "To G data" function, but it
> can't
> > > help. What should I do to convert this variant to an object refnum ?
> > >
> > > I send you a copy of my VI, with some comments inside it. Thanks for
> your
> > > help.
> > >
> > > PS/ I'm french speaking if you want.
> > >
> > > --
> > > Matthieu Gaillet MGaillet.ccrm@euronet.be
> > > Technicien R&D
> > >
> > > C.C.R.M
> > > Rue des Belles-Pierres 5
> > > 1421 Ophain
> > > http://users.skynet.be/ccrm
> > >
> > > Name: Occupation -
> D�pouillement.zip
> > > Occupation - D�pouillement.zip Type: Zip Compressed Data
> (application/x-zip-compressed)
> > > Encoding: x-uuencode
> >
> >
> >
> >
>
>




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
0 Kudos
Message 7 of 7
(3,155 Views)
To get objects refnum to be connected to the conert to G data do following:
1) Create a new ActiveX refnum control on the front pannel
2) Right click, and go to browse and search for MS Graph Object Library
3) Once you pick it, selection box will be empty, so uncheck "Show Creatable
Objects only" box
4) There should be an option to select Axes object.
Why it keeps on running I have no idea since I cannot run your example, I
have newer version MS Graph, and wires are broken, and I am too lazy at the
moment.

Reinis Kanders


"Matthieu Gaillet" wrote in message
news:3948a3f4@newsgroups.ni.com...
> Hello,
> This one was submitted to Ni guys but if you've any idea...
>
> I'm currently writing an app which should display a nice graph (chart) on
> its front panel. I choose to use MSGraph8 ActiveX from Microsoft, which is
> furnished with the Office suite.
>
> To do this, I've placed a container on my front panel, and in the window
> 'select activex object', I'm going to the 'Create Object' item in the
> droplist and choose "Graphique MS Graph 97" (in french).
>
> It works quite well, but :
>
> 1) It seems creating this document launches MSGraph8, as I see in the task
> list when ctrl-alt-deleting; and that this Msgraph DON'T CLOSE when
closing
> the VI !! In other words, after some time, the VI hangs. I need you help
> please ! How do I close this Msgraph ? I hope it's possible.
>
> 2) Using the properties & Method, I manipulate this object. Some
Properties
> return an object, which I use to define properties of this new object, ok
?
> The problem is that some _Methods_ that should return an object refnum
> returns a variant ! I tried to use the "To G data" function, but it can't
> help. What should I do to convert this variant to an object refnum ?
>
> I send you a copy of my VI, with some comments inside it. Thanks for your
> help.
>
> PS/ I'm french speaking if you want.
>
> --
> Matthieu Gaillet MGaillet.ccrm@euronet.be
> Technicien R&D
>
> C.C.R.M
> Rue des Belles-Pierres 5
> 1421 Ophain
> http://users.skynet.be/ccrm
>
>
>
>




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
0 Kudos
Message 4 of 7
(3,155 Views)
Exactly the answer of the NI support ! Well done. Thanks you for your help !
🙂

MG

Reinis Kanders a �crit dans le message :
39492291_4@goliath.newsfeeds.com...
> To get objects refnum to be connected to the conert to G data do
following:
> 1) Create a new ActiveX refnum control on the front pannel
> 2) Right click, and go to browse and search for MS Graph Object Library
> 3) Once you pick it, selection box will be empty, so uncheck "Show
Creatable
> Objects only" box
> 4) There should be an option to select Axes object.
> Why it keeps on running I have no idea since I cannot run your example, I
> have newer version MS Graph, and wires are broken, and I am too lazy at
the
> moment.
>
> Reinis Kanders
>
>
> "Matthieu Gaillet" wrote in message
> news:3948a3f4@newsgroups.ni.com...
> > Hello,
> > This one was submitted to Ni guys but if you've any idea...
> >
> > I'm currently writing an app which should display a nice graph (chart)
on
> > its front panel. I choose to use MSGraph8 ActiveX from Microsoft, which
is
> > furnished with the Office suite.
> >
> > To do this, I've placed a container on my front panel, and in the window
> > 'select activex object', I'm going to the 'Create Object' item in the
> > droplist and choose "Graphique MS Graph 97" (in french).
> >
> > It works quite well, but :
> >
> > 1) It seems creating this document launches MSGraph8, as I see in the
task
> > list when ctrl-alt-deleting; and that this Msgraph DON'T CLOSE when
> closing
> > the VI !! In other words, after some time, the VI hangs. I need you help
> > please ! How do I close this Msgraph ? I hope it's possible.
> >
> > 2) Using the properties & Method, I manipulate this object. Some
> Properties
> > return an object, which I use to define properties of this new object,
ok
> ?
> > The problem is that some _Methods_ that should return an object refnum
> > returns a variant ! I tried to use the "To G data" function, but it
can't
> > help. What should I do to convert this variant to an object refnum ?
> >
> > I send you a copy of my VI, with some comments inside it. Thanks for
your
> > help.
> >
> > PS/ I'm french speaking if you want.
> >
> > --
> > Matthieu Gaillet MGaillet.ccrm@euronet.be
> > Technicien R&D
> >
> > C.C.R.M
> > Rue des Belles-Pierres 5
> > 1421 Ophain
> > http://users.skynet.be/ccrm
> >
> >
> >
> >
>
>
>
>
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----== Over 80,000 Newsgroups - 16 Different Servers! =-----
0 Kudos
Message 6 of 7
(3,155 Views)