You describe them as latching relays. I presume that means that they stay on (or off) without power and power is only needed to switch from one state to the other. In that case why is the transistor circuit necessary? Why not drive the relay directly from the output pin of the NI USB-6509 with a brief pulse to switch it on or off?