Check out our User Interface Code Repository Files or visit the LabVIEW Wiki User Interface Portal
Tags |
(This content has not been tagged yet)
|
![]() |
Apr 21 2005, 04:48 PM
Post
#1
|
|||
|
Extremely Active Premium Member ![]() Posts: 430 Joined: 2-February 05 From: Southern California Member No.: 1519 Using LabVIEW Since:2004 LV:8.20 ,7.1.1 ,8.0.1
|
There was a thread a while back that discussed setting control values on a separate VI using the VI Server Invoke Node. I have created generic "Call VI" that can accept initialization values to write to the controls of the called VI, but it naturally gives an error if an INT is sent to a DOUBLE control. Being able to coerce the data being written would be very nice.
The values coming in are variant, but they need to be typecast to a variant that is of the type of the control. Has anyone ever written a VI to change one type of variant to another? Either the Variant data itself or the type descriptor would be available from "Get Control Value" in order to do the coercion. Any ideas?
|
||
|
|
|||
| Ad |
Apr 21 2005, 04:48 PM
Post
#
|
||
|
|
|
||
|
|
|||
![]() ![]() |
| Time is now: 1st December 2008 - 11:33 PM |