LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our User Interface Code Repository Files or visit the LabVIEW Wiki User Interface Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Coerce Variant to Variant, Setting Control Values via VI Server
JDave
post 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
United States Peru us_california


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?


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Apr 21 2005, 04:48 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post

Reply to this topicStart new topic

 




Time is now: 1st December 2008 - 11:33 PM