NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Instrument identification in process model

Hi All,

I have a set of Instrument using LXI,VXI,PXI,MXI and GPIB buses. I have the code module in Labview to indentify and initialize the instruments. I need to identify the instuments every time the Test sequence is loaded,hence i'm thinking to modify the process model to do the same.

But i don have any idea,where to integrate my code module in process model. I require some suggestions for the same.

Thanks in advance

Regards
VDC
0 Kudos
Message 1 of 6
(3,490 Views)

Hi VDC,

it is possible to use the process model. But i you wrote you want to initialize everytime you load the seqence file. There is a Engine Callback: SequenceFileLoad. This sequence is called every time you load the sequence. You will find it under Edit->Sequence File Callback..

Greetings and Merry Christmas
from the lake of Constance, Germany

Juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 6
(3,476 Views)
Hi  j_dodek  ,

Thanks alot for reply. But as Engine Callbacks are called everytime the step to test the UUT e xecuted. But i wan't to initialize the Instrument only once when the Test sequence is loaded.

Merry Christmas
VDC
0 Kudos
Message 3 of 6
(3,467 Views)
Hi  j_dodek,

In addition to what i have commented in the last message,can't i call the Instrument Initialization utility in the "PreUUTLoop" Model callback. Its gets executed everytime a new UUT is tested, and hence the overhead to execute after each step is saved,as in engine Callback.

Regards
VDC
0 Kudos
Message 4 of 6
(3,463 Views)
You need to read up a little on callbacks. All callbacks are not called every time. The sequence load callback is only called when the sequence is first loaded.
0 Kudos
Message 5 of 6
(3,458 Views)

Hi VDC,

I have tried the mentioned Callbacks. All workes as assumed. I figured out that SequenceFile callback ist probably not the best for you because you can not give the instrument handel to your running execution(uut) with a SequenceFile Global (OK there are other solutions but i think they are too deep or not effectiv.)

I think you should try Pre and Post(for Cleanup Handles) UUT Loop

Just try the TS4.0 example

 

Greetings

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Download All
0 Kudos
Message 6 of 6
(3,454 Views)