These two options are available because , there are two different ways
to look at this modules viz., either as an SCXI Digital I/O Module or
as a switch. Thats why, you have these two options.
You have the freedom to choose whatever you want. Here are some
thoughts :
1. Looking from the bigger application perspective, if you have other
switch modules etc. in your system and if you want to tightly
integrate everything, you may want to use the switch functions.
Otherwise, just the SCXI call may just suffice.
2. Try both. You may find out an interesting fact that by using
Set_SCXI_State function, closing and opening may be a little faster as
compared to when using the switch functions. This is because, the
switch functions are made keeping a big switch family in
mind. Hence
some time is taken in making some initializations.
Sincerely,
Sastry V
Applications Engineer
National Instruments