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.

FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

font problem...

Hi everybody!
   I'm experiencing a particular problem.  I'm developing an application for cFP-2020. I control this application from a PC, but application is embedded (it has to be embedded for other reasons).

   In application front panel, I put some image controls, in which I write some messages with vi  "Draw Text At Point.vi".  If I run my application on host PC (not embedded target) I see text, if I deploy application to my cFP-2020, I see the picture elements correctly displayed, except for the text message.

    I know I can select, on "Draw Text At Point.vi", the type of font, among:

     User-specified font
     Application font
     System font
     Dialog font

   I didn't tested the first option, 'cause I'd like to use System font.  but nor system font option, nor Dialog and Application option work.

   Please! Don't tell me to replace image control with text string, because I need exactly picture control, because of customer's requirements!!!

   What should I suppose, that PharLap operating system has no system fonts?!?!?!? Any help would be apreciated!!!

   Have a nice day!

graziano
Download All
0 Kudos
Message 1 of 9
(4,402 Views)

Try to use this VI to configure the "Draw text at point.VI"

Giuna

0 Kudos
Message 2 of 9
(4,376 Views)
Hi Giuna!
   thanks for spending time trying to help me!

   Unfortunately, even with your VI, nothing  happens!  No fonts displayed...

   I didn't try, but I take for granted that running your VI in Wi dows works, my problem is running it in cFP-2020, in embedded-mode.

   Thanks!

graziano
0 Kudos
Message 3 of 9
(4,373 Views)
Hi Graziano, When a VI or stand-alone application runs on an RT target and there is no front panel connection with host LabVIEW, you cannot execute VIs that modify a front panel. For example, you cannot change or read the properties of front panel objects with property nodes because there is no front panel. VIs on the RT target cannot use VIs that leverage Windows only technology. The following features do not work on an RT target: • ActiveX VIs • .NET VIs • VIs that use NI-IVI drivers • Windows Registry Access VIs • TestStand VIs (ActiveX-based) • Report Generation Toolkit VIs • Call Library Nodes that access an operating system API other than Pharlap • Graphics and Sound VIs • Database Connectivity Toolset • XML DOM Parser and G Web Server for CGI Support You can use one of two communication protocols, Front Panel Communication or Network Communication, to provide a user interface for RT target VIs. Thake a look to this manual http://www.ni.com/pdf/manuals/322154e.pdf to find out more information. Giuna
0 Kudos
Message 4 of 9
(4,352 Views)
Hi Giuna,
    I already use a graphic vi, i.e. picture control, and, say, draw rect.vi.  This Vi works, because now  I get  rectangles correctly displayed.  In picture fuinctions palette, the component that seems not to work is onluy the draw text.  I was wondering why...

    And more, it seems to me that graphic VI works (for example, plot VIs), since I've used them in other application, in embedded cFP.

    Ok, here's (attachment) a simple application, in which you have them....

     Any help apreciated....

graziano
0 Kudos
Message 5 of 9
(4,344 Views)

Hi Graziano,

Which version of LV do you use? I will send you some example.

Giuna.

0 Kudos
Message 6 of 9
(4,329 Views)
Hi Giuna,
   I use LV 7.1, with RT module, of course!

   Thanks....

graziano
0 Kudos
Message 7 of 9
(4,322 Views)

how I said, the Graphics and Sound features do not work on an RT target. You have to use for example "notifier function" to send data from CFP to PC HOST.

In attached folder you will find 3 file :

notifica.vi

leggi da nofier.vi

genera stringa.vi

How to run:

-You have to deploy notifica.vi and genera stringa.vi to your CFP.

-TOOL>>>option>>VI server configuration>> choose TCP/IP and set 3363 in "port"

-in leggi da notifier.vi put the IP address in "machine name" item

-run genera stringa.vi and write something in "inserisci stringa" item

-run leggi da notifier.vi

0 Kudos
Message 8 of 9
(4,318 Views)
Sorry, Giuna, but.... I don't have to send data from cFP to host, I have to display some silly graphics, it's a simpler task, even if it involves sending some data betzeen cFP and PC.

More, I don't have to use ports this way, I have to give my application to test tecnicians which don't want to perform too many configurations!

Bye!

graziano
0 Kudos
Message 9 of 9
(4,313 Views)