PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

pxi6259 channel distribution

Hello,

    I would like to know the Clock source channels distribution formula, can be used in the C program.

 

In my application, I have 2 variables  ,   one is channel type like PFI, PXI_trigger etc, and second variable is line number in that group.

 

But i saw the channel distrubution seems very hafezard.   In my application i can't put formula with string length not more then 36 character.

 

The source distribution for PXI 6259 as below

 

(1) Internal          

INTERNALTIMING = 0

(2) PFI
PFI0 = 1
PFI1 = 2
PFI2 = 3
PFI3 = 4
PFI4 = 5
PFI5 = 6
PFI6 = 7
PFI7 = 8
PFI8 = 9
PFI9 = 10

PFI10 = 21
PFI11 = 22
PFI12 = 23
PFI13 = 24
PFI14 = 25
PFI15 = 26

(3) PXI_Trigger lines 
RTSI0/PXI_Trig0 = 11
RTSI1/PXI_Trig1 = 12
RTSI2/PXI_Trig2 = 13
RTSI3/PXI_Trig3 = 14
RTSI4/PXI_Trig4 = 15
RTSI5/PXI_Trig5 = 16
RTSI6/PXI_Trig6 = 17

RTSI7/PXI_Trig7 = 27



(4)  GPCROUT

G0_OUT = 19

 

(5) STAR Trigger

STAR_TRIGGER = 20

 

(6) Analog Trigger

ATRIG = 30

 

(7) Logic Low

LOW = 31

 

 

 

I have a formula  

With varial Type =A and Channel no = B

I am assigning A = 0 for Internal , A=1 for PFI, A=11 for PXI ,  A=19 for GPCROUT, A=20 for STAR Trigger, A=30 for Analog Trigger and A=31 Logic Low

 

(A!=1&&A!=11)?A:(A==1?(B<10?A+B:B+11):(A==1&&B<7?A+B:27))   

But the string size of above formula is become more then 36 character which is not allow in my applicaiton. 

 

Any one can suggest me how i can put above trigger lines with 2 variables, like above formula but strign lenght should not more than 36 character?

 

 

Thank you

0 Kudos
Message 1 of 2
(4,092 Views)

For above, i can change the equivaled value in the variable A

0 Kudos
Message 2 of 2
(4,090 Views)