Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

scxi limits of different channel

it's me again for another problem 😛

i'm using VB6 with a 6024 and a SCXI 1520 ...

i want to set the gain by putting the upper and lower limit but i want to set different gain for each channel... so set different upper and lower limit...

usually i star my acquisition like that:
With Princ.CWAI1.Channels(1)
If IsNumeric(Limite_haute_entre(0)) And IsNumeric(Limite_basse_entre(0)) Then
.upperlimit = Limite_haute_entre(0)
.LowerLimit = Limite_basse_entre(0)
Else
.upperlimit = 10 'default limits are -10 to 10
.LowerLimit = -10
End If
End With

what can i do to put the different value opf my table associate with each channel and so set different gain to them???

thanx
0 Kudos
Message 1 of 4
(3,010 Views)
Greetings,

You could use a For Loop to increment the channel and the upper and lower limit values from your table. For example:

For channel = 0 To 4
CWAI1.Channels.Add channel, upper(channel), lower(channel)
Next channel

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 4
(3,010 Views)
thanx...
i finally choose this method :
i change the channel string before "sending" upper and lower limit...!
0 Kudos
Message 3 of 4
(3,010 Views)
infact with more test (i hadn't test that i was occupied with other pb..) it don't work i'm gonna use your method..!!
but i also get pb with setting up the filter of each channel...???
i'm using cwdaqtool.aiparameter(...) with channel string configur for the channel i want, it nworks when i do an acqusition for this channel but when i statrt a multichannel the filter setting are not good...!
0 Kudos
Message 4 of 4
(3,010 Views)