DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

data trigger to solid state relay

What you need to do is separate the input process with the output.

 

To do that you can use variables and sync them with the respective sample rate.

 

The only issue you will have is that there will be a block delay from the trigger moment to the reaction.  In your case 100 samples or 20 ms or the sample rate your are going to use for the output.

 

Use the Driver time base to define the digital output rate.

 

 

Tom Rizzo
InSyS Corp.
www.insyscorp.com
Your DASYLab integrator
0 Kudos
Message 11 of 13
(2,765 Views)

Now is the time to disconnect the inputs from the output.

 

What you are going to want to do is to delete the wires to the Digital Output.

 

Now create a Control-Write Variable module with two channels -- it defaults to variable 1 and 2 - if you aren't using variables, leave it that way.

 

Connect the wires that used to go to the Digital Output to the Write Variable module.

 

Create a Read Variable module. Configure it with two channels, and change the time base to DASYLab. That should be 10s/sec, block size 1.

Connect the Read variable module to the Digital output. It's now going to work with a 100 ms update rate.

 

Note - if you didn't use variables 1 and 2, ensure that both the read and write variable modules match.

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 12 of 13
(2,764 Views)

Thank you to CJ ,Jeff ,Tom and any others I forgot ,for all for your patience and knowledge.

Program is running great. Smiley LOL Kent.

0 Kudos
Message 13 of 13
(2,758 Views)