LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question regarding digital signals

Solved!
Go to solution

if I wanna send TFTF or TT to my daq should I create this digital wave and then feed it to my daq? Is there a way to control how many true or false is being send to daq? Should I create a pattern?  

0 Kudos
Message 1 of 5
(2,762 Views)

I'm using c series relay module.

http://digital.ni.com/public.nsf/allkb/515BD99CD2AF31EA8625724C0061F342

Here are my questions:

1- as it states c series relay modules are controlled with Boolean signals . So if I wanna send 3 True , should I create a loop with a Boolean signal and run it for 6 times ( TFTFTF)?

2- is it possible to leave the switch closed for a certain amount of time ? So let's say for 300 ms leave the switch closed ( send T signal continuously for 300 ms)? 

 

0 Kudos
Message 2 of 5
(2,744 Views)

It depends on your DIO.  Most use software timing, so a waveform will not work.  You will have to use a FOR loop to set your digital line and wait to get the signal you want.  But if you do have a hardware timed DIO, then use the digital waveform.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(2,728 Views)

Looks like this post is related to this one. 

aputman
0 Kudos
Message 4 of 5
(2,709 Views)
Solution
Accepted by Canucks.canucks

Hi canucks,

 

please don't create multiple threads for the same questions. I merged your second question into this thread…

 

1- as it states c series relay modules are controlled with Boolean signals . So if I wanna send 3 True , should I create a loop with a Boolean signal and run it for 6 times ( TFTFTF)?

When you want to send 3 times a TRUE signal you don't need to send FALSE in between. The relay will stay closed all the time. When the relay should open and close you need to send FALSE and TRUE, respectively - but that isn't clear from your question…

 

2- is it possible to leave the switch closed for a certain amount of time ? So let's say for 300 ms leave the switch closed ( send T signal continuously for 300 ms)?

Yes, that's possible. And even better: you don't need to send TRUE multiple times within the 300ms period!

Simplest scheme: write TRUE, wait 300ms, write FALSE.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(2,689 Views)