LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot start two HP33120A at the same time?

Hi all,

I have a problem with my attached program. The program is used to control 2 HP33120A by GPIB to generate noise at different time. But I don't know why I cannot start the two generators at the same time when I set the start time for generating noise to 0ms. I measured it by an oscilloscope that there are 40-50ms different between two signals. How should I solve it?

Best regards
Bill.
0 Kudos
Message 1 of 4
(2,816 Views)
Well the first thing I see is that unless you are talking to the instruments through two seperate gpib cards there is no way to start them simultaneously--at least doing it the way you are trying to. The problem is that while LV is multitasking, the gpib bus is not. It has to complete the transaction with one instrument, then do the other one.

Now, depending on the instrument's capabilities, there is one possibility. If you can program the instruments to start the generation when they see a gpib trigger. You can setup both instruments and then start them with a single trigger.

Finally, you don't have any of the error clusters connected. This is an open invitation for a program that just stops working and you don't know why. Always, always, always hand
le errors. Do this and your programs will always be able to tell you why they are unhappy. Which can keep you from being unhappy.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 4
(2,816 Views)
Hi Mike

Thank you very much for your reply. According to your suggestion, gpib trigger can solve my problem. How does the equipment wait for the gpib trigger? If I send two gpib trigger commands to two equipments. Is it the gpib card send one command to an equipment and then send the other one? Then there is still have a time different between two instruments start. Am I right?

Best regards
Bill
0 Kudos
Message 3 of 4
(2,816 Views)
Actually, the trigger command toggles a dedicated line in the interface that all the instruments on the bus see at once.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 4
(2,816 Views)