12-15-2009 03:44 PM
Hi,
I'm using a cdaq-9172 with a NI 9421 input card. I want to look at the first 4 bits as an integer and see this in the shared variable engine. Any thoghts on how I could do this? I have tried making a new Global virtual channel but can only select input, or port input. Port input is a bool and not integer.
Solved! Go to Solution.
12-16-2009 03:34 PM
You will need to build your data into a boolean array and convert to a number. Then you can turn that value into a shared variable and see the number rather than the boolean. Hopefully this helps!
12-17-2009 11:59 AM
Thanks for the input..It is working for me but I have another problem. I want this app to run when started so I used a while loop instruction. With the while loop the number does not update it stays at Zero. I can see the boolean switches working but that is all. Any thoghts?
12-17-2009 12:53 PM
Problem solved..Was not puting everything inside the while loop.
Thanks for your help!!!
Kevin