07-10-2012 01:13 AM
Solved! Go to Solution.
07-10-2012 05:56 PM
LabVIEW does not use ms windows controls so if this TestComplete is expecting to get handles to the LabVIEW controls, then it would not work. You can use ActiveX and the Ctrl Value.Set/Ctrl Value.Get methods.
07-11-2012 12:48 AM
07-16-2012 01:43 AM
Thanks for your reply. I'm reading data from application X through TC script.
I need to check, how to pass the data from TC to command line and then passing data to LabVIEW application. Mark, can you share some example code to pass data from command line to LabVIEW.
Dennis, I couldn't able to access LabVIEW controls methods in TC.
Regards,
Venkateswaran K
07-16-2012 02:04 PM
In order to pass command line arguments, your VI needs to have the Applications:Command Line Arguments property. There is an example called 'CommandLine.vi' that shows the modifications necessary.
I don't know TestComplete so I cannot comment on why you cannot access the ActiveX control methods.
07-18-2012 01:32 AM
Thanks Dennis, Now its working as expected, solution: we should use ActiveX Rich Text format control and then connect property node of Text to indicator in Labview, In TestComplete use objectspy to access Rich Text format control in labview then u will get code example like below.
set ch0 = Sys.Process("LabVIEW").Window("LVDChild", "ANALOG INPUTS - EVEN CHANNELS", 3).Window("NIContainerClippingWindow", "", 4).WinFormsObject("ControlAxSourcingSite")
then to pass values to labview control use below code
call ch0.Keys("Passing values from TC to LabVIEW")
Regards,
Venkateswaran K
04-25-2018 02:57 AM - edited 04-25-2018 03:04 AM
Hi.
I am facing the similar issue
Can you give me the name of ActiveX we need to add and steps to do after that in TestComplete? This I open in an IE page
I get the recognition string in TestComplete only till LVDChild WndClass object
Sys["Browser"]("iexplore")["Page"]("http://192.168.1.5:8000/CANOpen_Sim.html")["Table"](0)["Cell"](0, 0)["Object"]("LabVIEWControl")["Window"]("LVDChild", "Main RT.vi [Remote Panel] - Controller", 1)
04-26-2018 10:45 AM
Hi SeenaMathew,
This thread is six years old and will most likely not be seen by many people. I suggest you create a new thread so more people can see your question.
Thanks,
Misbah
NI AE