01-12-2010 05:12 PM
I typically use error out / error in signals to sequence the execution of my VIs. However, I am using a really old instrument with an old VI (HP 54501A oscilloscope if you are interested). Basically, my task is that I want to trigger the oscilloscope through hardware (BNC cable) and only then acquire data from the oscillloscope.
The triggering instrument is an Agilent 33250A function generator (have to use a VISA write to switch its output trigger on). However, how do I correctly sequence the oscilloscope read VI in the code - it must occur immediately after (the excitation is about 200 microseconds long) the output on the agilent is switched on ?
There is no error in input to the HP VI. I have thought of writing a dummy or gate that provides one of the inputs to the HP VI (after a calculation) but since the OS is non-deterministic (Linux), there is no way of ensuring that the oscilloscope read will take place at the right time.
Solved! Go to Solution.
01-12-2010 05:24 PM
I take it you have soem sort of connectivity to the scope?
Can you read the trigger status?
A common SCPI command on scopes is TRIG?
Possibly read it's status regesters.
Or you could always run and error cluster through the vi and use a sequence and a 200ms delay to keep the error from just passing right through
01-12-2010 05:49 PM
01-12-2010 10:04 PM
Could you explain in more detail the difficulty you are having? If the VIs don't have an error in/error out, it's trivial to add them. Even without them, you could always use a (ugh) sequence structure.
I'm curious though. Since you are commanding the function gen to issue the trigger, what's the difference than just doing a software trigger of the scope?
01-13-2010 09:31 AM - edited 01-13-2010 09:32 AM
I don't know if I understand your set up, but this is how I would do it.
Set the 54501A to single sweep mode
Set 54501A trigger to the ready and waiting for trigger state
Trigger the 33250A
(this shoule trigger the 54501A)
Check the 54501A trigger status
If the 54501A has been triggered acquire data from 54501A
01-15-2010 02:47 PM
Since I do not have the manual for this old oscilloscope (we are using this because none of our more modern scopes have a GPIB interface), I am not entirely certain how to set the single sweep mode. Here is what I plan on doing:
1. Use an unused channel (in my case 2) as the trigger source (which the 33250A puts out).
2. Set the number of averages on the monitored channels (1 and 4) to 1.
Now, I am using the NI developer zone VIs for the 54501a (and they have taught me more about using this scope than the short introduction pdf that I found on the net).
I did not find a trigger check VI. I do not mind writing GPIB code for this but since I do not have the manual, I do not know what the checking command is (?TRG ?).
01-15-2010 03:09 PM
01-15-2010 03:12 PM
I bet Dennis has the entire command set memorized 🙂
But if not, and you really need a manual, there are some programmer's reference ones for purchase here:
http://www.manualsplus.com/catalog/mp_find.php
-AK2DM
01-16-2010 12:32 PM
Thanks for the response, and the question.
The issue here is that the fngen puts out a two period burst of a custom waveform. I want to monitor the response as a function of time during that burst.
With the software trigger, I do not know (I could be wrong on this), whether the process of excitation and measurement are going to be sync'ed. That is why I want to use a TTL signal from the fngen to trigger the scope on an unused channel (channel 2), do a single sweep and get the waveform.
For sanity check purposes, I am using channel 4 on the scope to monitor the burst and channel 1 for the response. That way, I hope to get both the signals on the same time scale and see if there is a triggering delay imposed by the coax BNC connecting the fngen to the scope.
A later post has really cleared up one of the cobwebs in my mind (as I think of it) - I just need to check if it was triggered *after* the measurement is complete and get the waveform.
And a big thanks to whoever suggested that I search for the manual on Agilent's website. Here is a link:
http://www.home.agilent.com/agilent/techSupport.jspx?pid=322798&pageMode=MN&cc=US&lc=eng
Duh 🙂
I will keep you guys posted to see if this works.