|
Re: LabVIEW Switches
Its not obvious whether you are using 1 driver station analog or mutliple digital inputs.
For digital inputs you need the vi Drvr Stn/Get Dig In, this gives you an array of bools, one for each digital input, just use the array vis to access the particular input value you want.
For analog, you need the vi Drvr Stn/Get Alg In, this gives 4 outputs, 1 number for each analog input. If I remember correctly the value is 0-5 float. Just get the inputs you need an convert the range.
I dont have a tutorial but I have an example of each (read 2 digital inputs into a global array and control 2 servos from 2 analog inputs) if this doesn't get you going.
|