LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cant transmitt and Recieve data when USER INTERFACE Execution Mode selected

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..

0 Kudos
Message 1 of 7
(3,080 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(3,054 Views)

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??

0 Kudos
Message 3 of 7
(3,045 Views)

Hi,

 

where did you found and read that information?

 

When everything works fine in standard settings you should not change them!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(3,041 Views)

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..

0 Kudos
Message 5 of 7
(3,037 Views)

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.

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(3,025 Views)

Thanks ...

But How can  I use MS WebBrpwser in my VI ??

0 Kudos
Message 7 of 7
(3,003 Views)