LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with TTL trigger

Solved!
Go to solution

Hello Oleks,

 

We have to make sure you are using the correct reference for your signal. You said you are connecting the CTR 0 OUT signal to the Oscilloscope but you also need to make sure you are connecting the negative portion of the scope probe to the ground of the BNC-2110. You can use the DGND pin the is in the same bank as the CTR 0 Out signal.

 

Regards,

 

-Travis E

National Instruments
Product Marketer
0 Kudos
Message 11 of 19
(1,872 Views)

Hi Travis,

 

Thank you very much! I'll give it a try tomorrow in the lab. Just out of curiosity, if the reference is not correct can it lead to both Low/High pulse from CTR0 OUT rather then just High?

0 Kudos
Message 12 of 19
(1,870 Views)

Hey Oleks,

 

If the ground of your oscilloscope is different from the ground of the our device then both the high and low signals will be affected.

 

Regards,

 

-Travis E

National Instruments
Product Marketer
Message 13 of 19
(1,850 Views)

Hi Travis,

 

I found the problem today. The scope was set to AC coupling instead of DC coupling... I switched it back to DC and everything looks and works correct now.

 

Thanks for your help!!!

0 Kudos
Message 14 of 19
(1,849 Views)

Hello Oleks/Travis

 

I am currently trying out to do the same task (phase locking) as described by the vi that u have posted. I am really greatful for that. The code generates a TTL at each zero crossing of the sine wave. What if i want to have other locking phase angels (such as 45, 90 dergees etc) ? Please guide me as to how to modify the VI. Thanks in advance.

0 Kudos
Message 15 of 19
(1,824 Views)

Hello again Oleks/Travis

 

I am unable to apply corrections that Travis suggested to the second VI uploaded (Zero_crossing_AI.vi 50 KB). I have added a DAQmx control task vi as suggested but i don't know how to "start the task in the true state in order to have it pick up again" as quoted by Travis.

 

It may be trivial but i am not able to figure it out.

 

Pl help.

0 Kudos
Message 16 of 19
(1,815 Views)

Hi bsunny,

 

In the VI you linked, there is a boolean which controls whether the program enters a "true" case statement or a "false" case statement. In the "true" case, you need to place a Start Task.vi to restart the task.

0 Kudos
Message 17 of 19
(1,778 Views)

Thank u very much Burrito.I will look into it. Another thing is how do i start a trigger at various phase angles of a sine wave?

0 Kudos
Message 18 of 19
(1,769 Views)

Hi bsunny,

 

In the code that I was using in this thread, there is a DAQmx Create Channel.vi, to which counter channel is connected. In that VI, you can wire an "Initial Delay"(see contex help, Ctrl+H). You can use initial delay to set which phase you are trigering at.

 

Hope that helps

0 Kudos
Message 19 of 19
(1,761 Views)