Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Inconsistancy in execution

Hi
I am trying to build my application using certain Agilent instruments
like
spectrum analyser and signal generators using the GPIB commands at my
customers
place.I have developed two VI's(Sweep.VI & Read_peak.VI) which i am
executing
independently as of now and they are executing fine.
i have integrated the above mentioned VI's into a third
VI(Signal_to_Noise.VI)
along with some calcualtions and other setings.
when i executed the Signal_to_Noise.VI
it normally takes around 5-7 seconds
to execute...the problem is some times
it finishes execution in less than 2secs giving out junk values.this
happens
for every ten cycles at least once or twice....
i am actually calling the sub.vi's with delay in a sequence in order to
make

sure the instrument get sufficient time for sweeping and etc..
i am stuck up and confused...
Can anybody suggest me how to getrid of this
please mail me at ragsrv@yahoo.com

rags
(Raghavendra Rao V)
0 Kudos
Message 1 of 2
(3,155 Views)

Try using NI-Spy see the sequence of commands that are being executed. One possibility is that the two VIs are inteferring with each other or intercepting each other's communications. (i.e. Sweep.VI could be reading Read_peak.VI's data and vice versa.)
NI Spy Tutorial

0 Kudos
Message 2 of 2
(3,155 Views)