02-27-2018 11:02 AM
Hi,
I want to deploy a test stand executable to run a teststand sequence which calls some LabVIEW code(LV2017 f2). I have used teststand 2016 SP1 for development.
TS build deployment seem to work fine, I have added the simple UI to be used for executing teststand seq-files.
I start the installer on customer PC and it installs fine.
The LabVIEW RTE and Teststand Base Deployment Engine is installed separate, so it is not part of my teststand installer deployment. Neither is any LV drivers. They are also installed separately.
The first LV call in my teststand sequence is to "VISA Configure Serial Port" with an empty VISA resource name. The input is configured to accept undefined names.
So during execution I get an Run-Time error witwh code -1073807343 stating "Insufficient location information or the device or resource is not present in system".
Perhaps I'm missing something in my testand deployment utility configuration, I don't know. I have tried adding the neccessary LV drivers in the deployment, both VISA runtime and NI-Serial runtime, but it does not help.
If I create a LabVIEW executable containing the same .vi:s as the teststand sequence and run it, it works fine, so obviously the call to "VISA Configure Serial Port" seem to work as far as LabVIEW is concerned.
Any tips or tricks on what I should do?
Thanks
Stefan
02-28-2018 01:59 AM
Stefan,
when passing an emtpy VISA resource name to VISA Configure Serial Portm you should get warning 1: Invalid parameter.
You will get the error -1073807343 when the VISA resource name is NOT EMPTY but a device with such name is not configured. A simple bank e.g. is already enough to create this behavior but is hard to see when looking at variable values. Also, ASCII defines symbols which are not meant for display (e.g. '\n' which is new line). I assume that you got one of these symbols in your VISA resource name in your deployment.
02-28-2018 12:59 PM
Thanks for the info Norbert.
I will get back to you with my findings when I have it.
BR
Stefan
03-04-2018 04:54 AM
Thanks Norbert, I got it to work.
I had the VISA input with a default value of COM3 in my LabVIEW .vi.
In my teststand seq I configured this input to read an empty string from a StationGlobal variable. Obviously not working.
Setting the VISA input to empty by default and calling it from my teststand seq with default setting, it worked fine.
BR
Stefan