Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing synchronization of Relay Switiching based on the Zero Crossing of Input Line Voltage

Hello,
 
Thanks for all you help so far. First of all I would like to perform 2 steps correctly:
 
1. Monitor the 60Hz sine wave signal on a waveform chart after reading through DAQMX Read.VI.
2. Once that happens I would like to verify my zero crossing logic with the 60Hz sine signal I am reading using the DAQMX Read.vi.
 
I think I will be able to cope up with the latency issues; if the first 2 steps are working correctly.
 
Can you help me get this working first, would really appreciate all your help.
 
Thank You,
 
Best regards,
Rohit
0 Kudos
Message 11 of 13
(1,053 Views)

Hello,

Well if you are okay with the latency, the examples I provided should be a great starting point.  They are meant to be modified and used in a similar structure.  In the 8th post of this forum, I made some suggestions for troubleshooting the code you posted. 

In addition, the Zero Crossing PtbyPt.VI  that you are using accepts a double and not a waveform of doubles.  I also saw that the chart/graph you have labeled Zero Crossing Output is only taking in one value per loop due to the one data point you are converting into a waveform.  Please spend some more time troubleshooting this code. 

Please don’t expect parts of code from another example with a specific structure to work without some to several modifications in a new VI.  There was a For Loop in the example in the Knowledge Base and this is missing the code in the last post.  This might help with the update.  However, please note that the examples I have previously posted were to provide a starting point for you to modify to your application.  They might not allign with the application you are envisioning.”

Samantha
National Instruments
Applications Engineer
0 Kudos
Message 12 of 13
(1,033 Views)

Hello,

Thanks for your help. 

Have a Happy New Year.

Rohit

0 Kudos
Message 13 of 13
(1,025 Views)