08-04-2015 06:13 AM
Has anyone written anything for multistage triggering for this scope? i.e. trigger on CH1 on a falling edge & then on CH2 on a rising edge.
Manually, it works great. Now just hoping to automate this.
By adding in persistance, this become a very powerful trigger method.
Thanks
08-05-2015 12:23 PM
Hi FixedWire,
How is your physical connection set up to this scope? Also, how are you communicating your commands to the device? The LeCroy Waverunner 640Zi needs to be set up to use USBTMC as seen in the data sheet.
I found this discussion forum regarding LeCroy Waverunner 650Zi Data Acquisition. I would look through this forum and make sure you have your device communication set up correctly. After that point, you can send triggering commands to your device through NI-VISA.
08-05-2015 01:35 PM
Hello,
Although I do not have anything already written, the LabVIEW driver for the scope has a VI you can use to set this up.
The driver is posted on the NI site. You can start here to get it: http://teledynelecroy.com/support/softwaredownload/home.aspx?capid=106&mid=533&smid=
You will require NI-VISA to use the scope.
If you are using an ENET connection, you will also want to get the VICP Passport (link is on the driver page).
Here is a link to an FAQ on remote control that has links to manuals etc. and some informatoin on using remote control and automation commands. (It explains the difference and shows how to use them both).
http://teledynelecroy.com/support/knowledgebase.aspx?docid=476&typeid=1&capid=106&mid=530&smid=
The FAQ mentions an application on the scope called the XStream Browser. Here is a link to a quick tutorial on using the browser: http://teledynelecroy.com/doc/tutorial-xstream-browser
This should get things going for you.
Regards,
Leonard Brown
Applications Engineer
Teledyne LeCroy
1-800-553-2769
08-06-2015 12:37 AM
Hi Mena, Leonard,
Thanks for the suggestions. The scope connected seamlessly without hassle.
Thanks for bringing USBTMC up, that was a new one.
The hope was to leverage a bit before having to go too deep into the command set. Leonard, thanks for the browser suggestion. A search option for the browser would be nice as I couldn't find anything in the browser.
It appears that the saved setup (.lss file) contains the necessary commands.
The following snippet from the .lss file would likely need to get adapted and wrapped into a vi.
Set Trigger = Acquisition.Trigger
' Trigger ...
Trigger.Type = "Cascaded"
Trigger.ResetTrigCounter = True
Trigger.C1Level = -0.04
Trigger.C1Slope = "Positive"
Trigger.C1Coupling = "DC"
Trigger.C2Level = 0.74
Trigger.C2Slope = "Positive"
Trigger.C2Coupling = "DC"
Trigger.C3Level = 0
Trigger.C3Slope = "Positive"
Trigger.C3Coupling = "DC"
Trigger.C4Level = 1.76
Trigger.C4Slope = "Positive"
Trigger.C4Coupling = "DC"
Trigger.ExtLevel = 0
Trigger.ExtSlope = "Positive"
Trigger.ExtCoupling = "DC"
Trigger.LineLevel = 0
Trigger.LineSlope = "Positive"
Trigger.FastEdgeLevel = 0
Trigger.FastEdgeSlope = "Positive"
Trigger.DigitalLevel = 0
Trigger.DigitalSlope = "Positive"
Set TriggerSoftwareAssistedTrigger = Trigger.SoftwareAssistedTrigger
' SoftwareAssistedTrigger ...
TriggerSoftwareAssistedTrigger.Enable = False
TriggerSoftwareAssistedTrigger.HorGateStart = -0.000000001
TriggerSoftwareAssistedTrigger.HorGateStop = 0.000000001
TriggerSoftwareAssistedTrigger.Hysteresis = 0.5
TriggerSoftwareAssistedTrigger.Mode = "Auto"
Set TriggerLegacyRemote = Trigger.LegacyRemote
' LegacyRemote ...
Set TriggerCascaded = Trigger.Cascaded
' Cascaded ...
TriggerCascaded.Source = "C2"
TriggerCascaded.Slope = "Negative"
TriggerCascaded.Level = 0.74
TriggerCascaded.StageTypeA = "Edge"
TriggerCascaded.StageASource = "C1"
TriggerCascaded.TimingModeA = "Time"
TriggerCascaded.TimeLowerA = 0.0000002
TriggerCascaded.TimeUpperA = 20
TriggerCascaded.HoldoffEventsA = 1
TriggerCascaded.StageTypeB = "Edge"
TriggerCascaded.StageBSource = "C2"
TriggerCascaded.TimingModeB = "Time"
TriggerCascaded.TimeLowerB = 0.0000002
TriggerCascaded.TimeUpperB = 20
TriggerCascaded.HoldoffEventsB = 1
TriggerCascaded.StageTypeC = "None"
TriggerCascaded.TimingModeC = "Time"
TriggerCascaded.TimeLowerC = 0.0000002
TriggerCascaded.TimeUpperC = 20
TriggerCascaded.HoldoffEventsC = 1
TriggerCascaded.StageTypeD = "None"
Set TriggerCascadedAEdge = TriggerCascaded.AEdge
' AEdge ...
TriggerCascadedAEdge.Source = "C1"
TriggerCascadedAEdge.Level = -0.04
TriggerCascadedAEdge.Slope = "Positive"
TriggerCascadedAEdge.Coupling = "DC"
TriggerCascadedAEdge.OptimizeForHF = False
Set TriggerCascadedBEdge = TriggerCascaded.BEdge
' BEdge ...
TriggerCascadedBEdge.Source = "C2"
TriggerCascadedBEdge.Level = 0.74
TriggerCascadedBEdge.Slope = "Negative"
TriggerCascadedBEdge.Coupling = "DC"
TriggerCascadedBEdge.OptimizeForHF = False
08-10-2015 12:59 AM
The fastest way to get that setup would be to recall such a saved setup with the RCPN command. I think.
And then modify only the settings that will differ from that predefined setup.