Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I apply manual triggering through labview coding? (Agilent 81110a pulse generator)

Hi there.

 

Nowadays I'm programming an Agilent 81110a pulse generator for triggered burst pulses, using LabView 2015.

 

I downloaded a collection of VI for this device in NI page and I programmed some codes to generate triggered burst pulses as I click the button.

 

But I cannot simulate the "manual" button like the one on the front panel and I cannot find any similar VI in VI trees.

 

Now I'm struggling to simulate the triggering action.

 

Is there any solution to this?

 

I attached my codes and VI tree images.

 

Thanks.

Download All
0 Kudos
Message 1 of 3
(101 Views)
Highlighted

You can set the arm/trigger to various states; INT, External, IMMEDIATE or Manual being some choices.  INT means Internal PLL, External means a trigger signal applied to the Ext In trigger port, Immediate happens as the trigger arm occurs and Manual means wait for a physical button on the instrument to be pressed.  You'll have to read the manual carefully to select the right Arm and trigger combinations, not all can be used together.  See - http://literature.cdn.keysight.com/litweb/pdf/81110-91021.pdf

 

If you choose manual it waits for you to press the button on the instrument.  But here's one catch.   After you send any programming commands to an instrument the instrument is often left in Remote (sometime called Local lockout) state and the instrument ignores all buttons on it being pushed and only responds to programming commands.  There's  a special (blue) button on the front panel to get back to LOCAL mode where once pressed the instrument will responds to buttons again.  So if you want to set the trigger to Manual in code, you must also to put the instrument into LOCAL mode, either using a programming command or pressing a button on the front panel, before you can actually cause a trigger event.

 

You don't show your code (just a picture of it) but there are a few problems with what is visible. First you don't need the sequence structures, data flow takes care of the sequencing here.  Next you have a While loop running your trigger burst configuration VI and a button to stop it. Why?? You only need to configure it once, then execute the trigger. 

 

Then you have a While loop that doesn't do anything?  Perhaps you should look at designs like State Machines using Event Structures that would take actions once a button is pressed.

 

Its not clear what you are trying to achieve, a better description of how you want the program to work would lead to better advice.

0 Kudos
Message 2 of 3
(38 Views)
Highlighted

Thank you.

 

As you commented, I already wrote the codes that simulating clicking the MAN button on the front panel. It works.

 

Also I need to arrange my codes and delete unnecessary codes like while loop.

 

Thank you for your comment. : )

0 Kudos
Message 3 of 3
(33 Views)