Hello. My customer want use DT9817-H with C#. so i informed the route of C# examples. but my customer need more information how to change the input channel to Output channel or Output to input. I know that it's in the manual but it's very hard to get. So could you give me some C# examples or let me know how to change the channel
- Job Title: sales
- Industry:
- Application:
52 months ago
jun
korea
Answers
The DT9817 and DT9817-H modules each have 28 programmable I/O lines that are organized into three 8-bit ports and one 4-bit port. Each port is considered a subsystem element. For each subsystem element, a user must decide whether all the bits are wired as inputs or outputs. When a user configures a digital subsystem, each subsystem element must be specified independently, before calling a get or set single value with an integer value, for that subsystem element
- Once Open Layers is installed, look in the following location for examples:
C:\Program Files (x86)\Data Translation\DotNet\OLClassLib\Examples\
- Here is a code snipped for a setting a digital output:
- doutSS = device.DigitalOutputSubsystem (x); // where x is the element
- doutSS.DataFlow = DataFlow.SingleValue;
- doutSS.Config ();
- doutSS.SetSingleValue (y); // where y is a decimal value of which bits will be set high
52 months ago
Measurement Computing
Was this answer helpful?
Yes (5) /
No
(0)