DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating a data channel in Diadem 6.0

Highlighted
I would like to generate a data channel to represent a x/y curve. e.g.:
x: 0.1/0.2/0.3/0.5/0.9
y: 1/3/10/11.5/15

How can i do this and how can i use these datas in different autosequences?
The next question is: how can i control with these datas an analog output?
0 Kudos
Message 1 of 3
(1,617 Views)
Hi,

If the values you would like to generate are equidistant or can be build with a mathematical algorithm you can use a lot of different DIAdem functions like CHNGENVAL, CHNSPLINEXYCALC, CHNMAPLINCALC etc.. But in your case I can't see something like this, so you must set each value in the channel (see example below)

ChnAlloc('TestChannel', 5);
chd(1, 'TestChannel') := 0.3;
chd(2, 'TestChannel') := 1.2;
chd(3, 'TestChannel') := 2.8;
chd(4, 'TestChannel') := 3.3;
chd(5, 'TestChannel') := 3.7;

To use this in different Autosequences store it as a separate file and call it with the command AutoInclude.

With the Block DAC->Simulation inputs->Channels you can read any DIAdem channel and use it to set the output values.

I hope this will help you a little b
it.

Greetings

Walter
Message 2 of 3
(1,617 Views)
Thank you very much.

Greetings,
Stefan
0 Kudos
Message 3 of 3
(1,617 Views)