NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX Aktion Command don't works

I want to use the ActiveX command to oben an configuration in Canalyzer from Vektor.
If I use a VBScript like this
Set App = CreateObject( "CANalyzer.Application")

App.Open ("D:\TestSeq\canal.cfg")

Set App = Nothing

cananlyzer opens the canal.cfg configuration,
but if I use the TestStand ActiveX Action it don't
works.
0 Kudos
Message 1 of 3
(3,126 Views)
I'm unable to see your bmp because winzip gives me an error when I try to unpack it, but it should be possible to do what you are trying to do. I have a feeling the problem might be the path string that you are passing to App.Open() in teststand. If you are passing "d:\teststand\canal.cfg" then that could very well be the problem. In teststand string constants in an expression use the backslash character as an escape character similar to how they work in C and other programming languages. Therefore to actually have a backslash in the resulting string you will need to pass "d:\\teststand\\canal.cfg". Hope this helps, if not, please provide more information to explain exactly how it is not working, or try to attach the bmp again.

Doug Melamed
National Instruments, Te
stStand
Message 2 of 3
(3,126 Views)
Thanks it works
0 Kudos
Message 3 of 3
(3,126 Views)