LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[HowTo]Use Pane method "SetScaling" in runtime engine

Hi all,

In LabVIEW help it is write that "Set Scaling Mode is available in Run-Time Engine (in read and write)...

I try to use this method and :

- 1 - With teh first code (see ScalingFirstMethod.png)
* It's working well in LabVIEW execution
* It's NOT working in RunTime Engine execution (you obtain error 1044 --> VI is locked)

- 2 - With teh second code (see ScalingSecondMethod.png)
* You don't have error in LabVIEW execution
* You don't have error in RunTime Engine execution
--> But in the 2 cases the mode set is NOT apply !!!!!


If anyone as a solution... This method is essential for my UI, so...

Thanks in advance,

OJO

PS : Config : LabVIEW 8.2.1 + Windows XP

Message Edité par ojo le 06-26-2007 12:35 PM


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn

Stop writing your LabVIEW code documentation, use Antidoc!
Download All
0 Kudos
Message 1 of 5
(3,699 Views)

Hi Ojo,

The error 1044 are documented on the web :

Error 1044: The VI is locked
When running as a standalone application, a Property Node in the VI might return error 1044, which causes the called VI not to be opened and the application to run incorrectly. However, the application runs correctly in the development environment. You might experience this warning with various different properties, such as Front Panel Window:Auto Center. To avoid the error, you must set these properties in the VI before building an application. Setting properties like this is considered editing the VI, and editing VIs is not allowed when the VI is built into an application. (http://digital.ni.com/public.nsf/allkb/E1B8CA0B546A803486256A33005AF221?OpenDocument)

You can try to add "open reference" function, that can be resolve this problem.

Can you post the two LabVIEW exampel you have made, it's more easy to find a workaround with your application.

Regards,

Christophe S.
Account Manager East of France І Certified LabVIEW Associate Developer І National Instruments France

0 Kudos
Message 2 of 5
(3,667 Views)
Hi, thanks for the answer.
Like I wrote in my first post (cf attachment nammed ScalingSecondmethod.png) I already tryed to add open ref... Unfortunatly scaling mode is not applyed...

I add the two examples, if you find a workaround...

Regards,

OJO

Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn

Stop writing your LabVIEW code documentation, use Antidoc!
Download All
0 Kudos
Message 3 of 5
(3,651 Views)

Hi Ojo,

There is no workaround for your problem because, this property can't be write in a EXE, this property can be only read in a EXE and write in edit mode. You can try to delete the first property (there write the data) into the loop, and you can see no error.

I have found another forum with similar problem :

http://forums.ni.com/ni/board/message?board.id=170&message.id=204804&requireLogin=False

Regards,

Christophe S.
Account Manager East of France І Certified LabVIEW Associate Developer І National Instruments France

0 Kudos
Message 4 of 5
(3,641 Views)
you have the same conclusion than me... and it confirm that the LabVIEW help is incorrect 😞

Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn

Stop writing your LabVIEW code documentation, use Antidoc!
0 Kudos
Message 5 of 5
(3,636 Views)