08-22-2014 09:33 AM
I would like to use one of my PO lines to turn on a relay off/on.
I haven't been successful in triggering the line via a counter? I'd like to use PFI0 or PFI1
PCI-6035E is the card I have.
Solved! Go to Solution.
08-22-2014 09:37 AM
I tried the following but get an error:
Possible reason(s):
Specified property is not supported by the device or is not applicable to the task.
Property: Start.TrigType
Task Name: _unnamedTask<2D4A2>
08-22-2014 09:39 AM
You have 8 digital I/O lines on your card. They are very easy to control. Just look at the examples: Help > Find Examples... Hardware IO > DAQmx > Digital Output
08-22-2014 09:44 AM
Yes, thank you, I was looking at the "digital-finite output.vi" but I also get an error there:
Requested value is not a supported value for this property. The property value may be invalid because it conflicts with another property.
Property: SampTimingType
Requested Value: Sample Clock
You Can Select: On Demand
Task Name: _unnamedTask<2D4AB>
I can't select On Demand...
08-22-2014 09:46 AM
08-22-2014 09:56 AM
08-22-2014 09:59 AM
I am not sure what you mean by 'shipping examples'
As for timing, I am looking at various way to trigger a relay on and off.
I need to be able to trigger the relay on for a, at most, 500ms, and have it stay off for 600000ms
08-22-2014 10:09 AM
08-22-2014 10:13 AM
Dennis, I appreciate the help, I do believe you've mentioned this in another thread, but we are going around in circles.
I know how to trigger the relay on/off via a digital line as per the code I posted above.
I also know how to send a pulse via a counter.
How do I tie the two together?
I cannot energize the relay via the counter, but easily can via the digital line.
What I was thinking was to use the counter pulse as the timing, that tells the digital line to go HIGH or LOW.
Is this possible??
08-22-2014 10:14 AM
Your card only has software timed DIO available. This means that you can't use any triggering or timing on the digital lines. You just write the value you want out to the DAQmx Write and the output to write that value.