‎03-28-2014 12:33 AM
Hi..
I am working on a project in which I have to continuously send and recieve serial data..
Again, in my application, I want to use AciveX control to open PDF (Theory related to the project).
PDF can be opened only in USER INTERFACE Execution Mode.
(I dont want to open PDF in Adobe Reader.. I want it inside my application)
But when I use this execution mode, I am unable to transmitt and receive data through VISA.
When I change the Execution mode to STANDERD, all works fine.
Again, I could not change the mode Using Property node.. Shows error that I cant edit the VI in running mode.
How should I get these two works done at a time..
‎03-28-2014 03:13 AM
Hi Avatar,
please attach your VI for more information.
It's hard to follow your "UI Execution Mode" and why your PDF only opens in this mode…
Shows error that I cant edit the VI in running mode.
Well, it's expected you cannot change code while the code is executed…
‎03-28-2014 05:07 AM
Dear GerdW,
I have searched and found that if one wants to open a PDF using activeX, he must change the setting--
VI Properties<<Execution<<Prefered Execution System<< to USER INTERFACE.
Then only a PDF opens.
But at these settings I cant send-receive data trough VISA.
when I change -- VI Properties<<Execution<<Prefered Execution System<< to STANDERD, all things work fine.
what to do??
‎03-28-2014 05:12 AM
‎03-28-2014 05:28 AM
These are some links..
http://forums.ni.com/t5/LabVIEW/Problem-opening-pdf-files-in-labview/td-p/618067
http://objectmix.com/labview/307857-problem-opening-pdf-files-labview.htm
Here I was suggested to change VI Execution to USER INTERFACE.
I need PDFs inside my VI. Is there any other way??
Or programmatically change Execution to UI or STANDERD... which shows error that cant edit a vi in running mode..
‎03-28-2014 06:37 AM - edited ‎03-28-2014 06:38 AM
Hi Avatar,
both links are essentially the same…
I don't have Acrobat installed, so I cannot reproduce the problem or test the VI.
Did you try a different tool? There are other PDF viewers available…
Maybe the MS Webbrowser (available as DotNet) can show PDFs on the frontpanel of your VI…
You cannot change the execution system at runtime as it would require recompiling the VI. Point.
‎03-28-2014 11:35 PM
Thanks ...
But How can I use MS WebBrpwser in my VI ??