LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How Do I Do Add Trigger TO my VI without....?

I think now i know my real probleM... Smiley Very Happy
i need to trigger the function generator MANUALLY! i dont seem able to trigger  my function generator to the OSciloscope! Is there a way i can do it?
the mANual way which i tried just now was:
1. Measurement and Automation
2. Devices and INterface
3. Go to the desired Instruement ( for instance address 10)
4. Communicate with INstruement
5. Send string (TRIG) onle the program will trigger my VI to the oscilloscope
i just want to enquire is there any VI or any ways that i can add this 5 steps to my VI so that i can do it once and for all in my LABVIEW without doing the 5 mention steps?
thanks!
regards,
JASon
Smiley Happy
 
Cheers
0 Kudos
Message 1 of 5
(2,976 Views)
Manually triggering the instrument would mean physically pressing the trigger button on it. You're issuing a trigger programatically in MAX and if you want to do it in LabVIEW, just do a VISA Write of the trigger command. Put it in the program where you need it. What's the instrument? Have you looked for a driver for it and is the trigger command in the driver?
0 Kudos
Message 2 of 5
(2,961 Views)

Here's mY VI: hope can get some help sOON! thanks

merry christmas and happy new year! ^^

0 Kudos
Message 3 of 5
(2,930 Views)

The device that i am using is Agillent 33220a...It's a Function generator that usues GPIB to communicate! Smiley Wink

Here i attach the desired result that i want and the results that i have got which is not the one that i wanted....

Oh yeah, it it's posibble, the delay must be as accurate as posibble! PLs enlarge the diagram to get a better view ok?

thanks! ^^

 

0 Kudos
Message 4 of 5
(2,927 Views)
I don't have the instrument manual quickly available so I can't check the syntax of your trigger commands. You are sending two different commands: "TRIG" and "TRIG OUT". Which, if either, is correct? Also, what kind of delay do you want between the two different pulses. You're doing a comlpete setup on instrument 1, trying to trigger it, doing a complete setup on instrument 2, and then trying to trigger that. It would be much better to setup 1, then 2, then issue the trigger commands. Your delay VI is missing. If you are attempting some precise delay in software, don't expect much better resolution that 5 msec. The windows OS is just not capable of much more. Since the instrument has a trigger in and trigger out connection, you can probably better accomplish what you want by setting one to trigger off of the other. Check the specs on the trigger delay setting.
0 Kudos
Message 5 of 5
(2,914 Views)