Sitemap

Amicuk Programming Answers

VARIANT data in TestStand

-0001-11-30   Views:1

Advertisement

I want to control a program using ActiveX in TestStand. I can successfully obtain a reference to the VI object in the program. The server program was written in LabView and allows the Call method of ActiveX to control the program. The Call method req

I want to control a program using ActiveX in TestStand. I can successfully obtain a reference to the VI object in the program. The server program was written in LabView and allows the Call method of ActiveX to control the program. The Call method requires two parameters. Both are of data type VARIANT (parameterNames, parameterValues). The parameterNames are basically strings, but the parameterValues are mixed type(string, int, bool,etc).
Is there a way to create a data type of VARIANT in TestStand to pass data through the ActiveX adapter??
Note that I can do this in LabWindowsCVI, but I was trying to avoid writing a special DLL and use the TestStand Adapter.

The replay answer
Advertisement
Bob asked what you meant by mixed data types. To clarify, the LabVIEW ActiveX server has a call method. It's second parameter is a varaiant array of variants, where the elements can be different (mixed) data types. Each data type corresponds to the LabVIEW control specified in the first parameter of the Call method, which is a variant array of strings.
As Bob explained, the ActiveX automation adapter is able to automatically convert TestStand properties to variants, when the data type of the properties are support ActiveX data types (e.g. most scalars and arrays of these scalars).
For the first parameter of the Call method you can send in an TestStand array of strings. This array will automatically be converted to a variant array of BSTRs be
fore being passed to the Call method.
Currently TestStand does not support a variant data type. Therefore, it is impossible to create an array of variants so that the array can in turn be converted to a variant by the ActiveX Automation adapter.
In general, the ActiveX automation adapter does handle sending data from/to an ActiveX server. The issue of passing arrays of variants has not occurred very often. We have encountered it once internally at NI, but I believe that you are the first customer to ask about passing arrays of variants.
In terms of the big picture, I don't understand why you are calling a VI using the AcitveX automation adapter instead of the the LV adapter. If the vendor has already created a VI to call another VI through the LV ActiveX server (why does he/she do this?), then perhaps you should just call the vendor's VI directly.

Go to See the other 4 answers

VARIANT data in TestStand

Category:DefaultRelease time:-0001-11-30Views:130

I want to control a program using ActiveX in TestStand. I can successfully obtain a reference to the VI object in the program. The server program was written in LabView and allows the Call method of ActiveX to control the program. The Call method req[More]

I have a large number of photos imported into iPhoto with the dates wrong.  How can I adjust multiple photos (with varying dates) to the same, correct, date?

Category:DefaultRelease time:2015-10-11Views:130

I have a large number of photos imported into iPhoto with the dates wrong.  How can I adjust multiple photos (with varying dates) to the same, correct, date?If I understand you correctly, when you enter a date in the Adjust Date and Time window, the[More]

What is the impact of using a variant data type on performance, speed memory demands etc?

Category:DefaultRelease time:2015-10-11Views:130

This is another one of my "lets get this settled once and for all" threads. I have avoided variant data types whenever possible to keep the performance of my apps up. From some observatsions i have made over the years, I am of the opinion that;[More]

How to create a multipage PDF with same template but dynamically varying data?

Category:DefaultRelease time:2015-10-11Views:130

Hello, I need to create a multi-page PDF where I need to use the same template but dynamically varying data. Eg Scenario: 1. I have data for 5 material in my ABAP program. 2. I have a PDF template in SFP which has a 2 page structure. 3. Based on the[More]

TCP Callback function passing data to teststand

Category:DefaultRelease time:2015-10-11Views:130

Hi, I'm trying to pass data via a TCP Callback function to teststand using the TCP steptype that I downloaded from Ni. When I open a connection, container data is passed to the dll on which it creates a connection, the dll in part creates a TCP Callb[More]

Decode variant data w/o using 'Variant To Data' function.

Category:DefaultRelease time:-0001-11-30Views:130

I need to decode variant data w/o having foreknowledge of the type used to create it. That is, I'm using the 'Flattened String To Variant' function which gives me the info I need, but it's all contained within one indicator. I need some way to break[More]

Which table  Variant datas are stored

Category:DefaultRelease time:-0001-11-30Views:130

Hi ,     I need to know where variant datas are stored and in which table they are stored . juts let me know the name of the table alone . Thanks , vinay .Hi again, 1. The contents of the field are NOT STORED    in the manner which u are assuming a)[More]

Find/Change Varying dates..

Category:DefaultRelease time:-0001-11-30Views:130

I have a varied dates that appear throughout a LONG document.. for instance "January 14, 1945" date changes all the time of course.. usually appears at start of a paragraph.. i need to set up a find/change to be able to select it, and I need to[More]

Variant data type? does it exist in jsp?

Category:DefaultRelease time:-0001-11-30Views:130

Is there a variant data type in jsp? public void setRedirect(String page, String error, HttpServletRequest req, HttpServletResponse res, String accountInfo) throws ServletException the method above does the exactly the same thing except 1 takes in a[More]

Variant Data and Data (Type)

Category:DefaultRelease time:-0001-11-30Views:130

I'm on my way to build a XML parser for my program. How do you make Variant display it's Data and Data (Type) like the one on my screenshot? I dont want my data type be a string. I want it to be the same as my cluster. Is there a way to edit the data[More]

Variant data to data

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I am connecting to MySQL server and with SELECT VI from database connectivity kit I am having 2 coloums of data, I have read the documentation it says, If I want to convert this data into labview data I have to use Variant Data to Data VI but whe[More]

Hot
Hi, Oracle Version : 11.2.0.1(standard edition) Operating system : RHEL-5 We are getting the below problem when trying to start the DBCONSOLE but when i check the status it is showing as running as shown below. [[email protected] ~]$ emctl status dbconso [More]
I just purchased a new Win 8.1 laptop and want to authorize it for my iTunes library. I operate this library on a Win 7 desktop. I have three other Windows computers that I no longer own which were authorized under my iTunes account, but I can't unau [More]
Hi Experts, I am getting attached error while installing server tools for Version 9. I am able to connect to sql via TCP/ IP and is working fine. Please help. Regards DeepakHi, Please check this thread: http://scn.sap.com/thread/3376454 Thanks & Rega [More]
Hello This is my 1st thread so idk if this fits here, but i hope you can help me There is my Scenario: my company implemented an ODA (Oracle Database Appliance), we have a VM with  Oracle Linux 6 in which we are installing SAP ERP 6.0 EHP7 but when i [More]
I have been using Final Cut Studio 7.0.3 on my Mac Pro under Snow Leopard for the past four or five years. It has always worked flawlessly. Suddenly three days ago everything has fallen apart. First it would freeze on launch. I tried removing all pre [More]
My iPod Touch 2G froze on the homescreen. I restarted my iPod by holding down the Home Button and the Power Button. Now when my iPod boots up, it just gets to the Apple Logo and stops there. I tried connecting my iPod to my computer, but iTunes could [More]
Two switches, not stacked, but connected together via 802.1q trunk. Server with four NICs, capable of trunking and LACP. Can the switches be setup to have an etherchannel between the two switches and the server?Hi, In short NO You would need to conne [More]
my iphone 4s used to connect to wifi now all of a sudden it wont and i havent changed any settings can anyone help?troubleshooting wifi http://support.apple.com/kb/TS1398 you can try powering off your router, then your phone, then power up your route [More]
I have a documentary project of which the majority was shot with the EX-1 at 1080 24p and I have been editing that footage contained in a 1080 24p ProRes (standard quality) timeline. We have some extra interviews that were shot with a Panasonic Varic [More]
I have an old 3GS that I want to restore to factory settings. I gave it to a friend and they tried unlocking the phone online without success. They gave me the phone back, but now I can't even use it for an iPod or games or anything as I need to rest [More]