From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-06-2015 09:43 AM
Hello everybody,
I would like to run a specific Sequence from a Specific file with the stations default process model. I've managed to wire some blocks together which seem to make sense to me. However the VI is not working as intendet because the "New Execution" always gives me the error -17320, telling me TS was unable to find the Sequence. I am certain, the correct name is passed, so why this error? Are my other parameters incorrect or is this completely the wrong track anyway?
Greetings
Tarik
11-11-2015 09:03 AM
I really would appreciate help with this one, can't even get the example "Execute With Process Model" running. Did I do something wrong or why is noone trying to help me?
11-11-2015 09:35 AM
I guess my question would be: Why are you not using the User Interface as your template? All of the source code is there for you and it ships and installs with TestStand.
Regards,
11-11-2015 09:37 AM
If you aren't familiar, here is a document that talks about the UI:
http://www.ni.com/white-paper/7560/en/
11-11-2015 10:02 AM
The User Interfaces I have seen so far always directly connect the VI-buttons to the TestStand commands. Unfortunately we cannot use this for several reasons and have to work with API only.
So far this has been no problem: I can load sequencefiles and start executions via entry point and run even a single sequence without a process model. I also managed to handle UIMessages but I lack the skill/experience to implement the execution of one sequence from a sequence file with a process model. Will you help me with that?
11-11-2015 10:08 AM
There is an example that demonstrates this called TestStand UI with Native Controls. You can strip a lot of it out to get what you want. It shows how to use the API to dynamically execute sequence files:
C:\Users\Public\Documents\National Instruments\TestStand 2014 (32-bit)\Examples\Modifying User Interfaces\Building a TestStand UI with Native Controls\LabVIEW
It is located there on my machine. Specifically look at the Open Button and Execute cases in the Event Structure.
11-13-2015 06:53 AM
Thanks, but as I wrote, I am able to execute the MainSequence of a SequenceFile. But how do I execute the Sequence XY of the same SequenceFile?
There is an Example under
C:\Users\Public\Documents\National Instruments\TestStand 2014 (32-bit)\Examples\TestStand API\Executing Sequences Using API\LabVIEW called Execute With Process Model.vi which contains the code I think I need, but somehow I fail at implementing it because the block IEngine.NewExecution always returns "file not found".
As you can see I work with the enginereference not the sequencecontext and do not use the block IEnginge.FindFile. Could this be the error?
11-16-2015 09:34 AM
Why are you using Execute With Process Model.vi if you are trying to call a sequence that is not MainSequence?
It shouldn't matter where the engine comes from. As long as it is a valid engine you should be fine.
11-17-2015 01:49 AM
@~jiggawax~ wrote:
Why are you using Execute With Process Model.vi if you are trying to call a sequence that is not MainSequence?
Because I thought that was the whole point of this VI - to run any given sequence with a process model, the same as one can run "Execute Without Process Model" to start any sequence whithout one. Or was that a misunderstanding? If you ask not why this vi but why at all I am trying to do this: I want to implement a single-test, where I just test one function of the device under test.
11-17-2015 07:51 AM
It doesn't make sense to run "any given" sequence with the process model. The reason is that the process model will only invoke callbacks from the client file. So if you try and run a Normal sequence (the teal blue kind) with the process model it will never get called. This is why I asked the question. And to be clear, the process model needs an entire sequence file as the client. It cannot run with just a sequence. If you want to run a sequence by itself then you need to start an interactive execution. That's why I suggest you look at the example with No Process Model. Here is some more info on it: http://zone.ni.com/reference/en-XX/help/370052H-01/tsapiref/infotopics/app_executing_a_sequence/
Hope this helps,