NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Abort or Terminate Step

Hello,

 

I am using the IVI Scope Step (within a separate threat) to wait for a trigger event. In case an other event appears, I have to stop the scope step (or the whole threat where this step is in) but I don't know how to do this. Terminate() and TerminateAll() doesn't work.

 

Cheers Frank

 

0 Kudos
Message 1 of 11
(4,607 Views)

Hi Frank,

 

I think stopping the Ni-IviStep will not work, because you have to monitor the termination state in the step itself

and this is not implemented.

If you like to do this you have to rewrite the source of Ivi Steptype.

http://forums.ni.com/ni/board/message?board.id=330&message.id=2149&query.id=155821#M2149 

 

 

There is a old thread from Ray dealing with thread and executions 

http://forums.ni.com/ni/board/message?board.id=330&message.id=1554&query.id=154411#M1554

I think here you will find the answer on stopping theads and executions Smiley Wink

 

 

Hope this helps

 

juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 2 of 11
(4,587 Views)

Thanks juergen!

 

 

How can I rewrite IVI steps? Where can I find the source code? 

0 Kudos
Message 3 of 11
(4,585 Views)

Hi,

 

If you are using TS4.0

you will find it under:C:\Programme\National Instruments\TestStand 4.0\Components\NI\StepTypes\IVISteps\Scope

It is written in Basic. 

 

An other thing you could think about is to obtain the current IVI-Handle for the Scope.

If you get this you could use your favourite CodemoduleAdapter and write your own special code.

 

But i never tried this.

Maybe other people out there know how to extract the IVI handle from IVI StepType.

 

 

Lets wait

 

Juergen

 

 

 

 

 

  

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 11
(4,573 Views)

Hi,

I am using TestStand 4.1.1 and there is no folder like you described. I have a folder:

C:\Programme\National Instruments\TestStand 4.1.1\Components\StepTypes\IVISteps but there is no basic code or other source code.

 

It seems that there is no source code for the IVI steps in my TS Version.

 

Frank

0 Kudos
Message 5 of 11
(4,558 Views)

Is there nobody who knows to stop the scope while it waits for the trigger event?

0 Kudos
Message 6 of 11
(4,518 Views)

Hi Frank,

 

Which Hardware are you using?

Maybe the IVI-Steptype is the wrong feature for you.

 

Greetings

 

Juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 7 of 11
(4,513 Views)

I am using an Agilent Scope series DSO3000 which is connected via GBIP.

 

I was thinking about to write a small script which checks the trigger status.

But then I can't interchange the instrument as easy as before.

0 Kudos
Message 8 of 11
(4,510 Views)

Hi Frank,

 

Yes you are right! Interchangeabitiliy is THE feature of ivi.

So i would suggest to use instead of the ag3000_32 .dll (thats why i asked for the hardware) the iviscope.dll

 

you can use it with the Dll-Adapter in TestStand.

So you can write your script in TS.

 

Juergen

 

 

 

 

 

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 9 of 11
(4,497 Views)

Have you tried running the IVI Scope Abort function when the sequence is terminated?

 

Or, instead of modifying the IVI step, use the IVI Scope class in a code module. You can still interchange instruments and you can monitor the termination status.

0 Kudos
Message 10 of 11
(4,480 Views)