04-25-2011 03:25 PM
Can I programmatically change the I/O direction of a LabView shared variable? I'm using LV 2010 and I'm trying to change the I/O direction of a NI 9403 module programmatically. Is this possible?
04-26-2011 06:05 PM
Hi JAF,
I'm assuming your intended purpose is to input and output data through the same DIO line.
In that case, I would recommend using a case structure. You would need to create a case for input data and another case for the output.
Below is a link describing the characteristics of a case structure.
http://zone.ni.com/reference/en-XX/help/371361G-01/glang/case_structure/
I hope this helps. BTW, are you using a cRIO? I'm just curious.
Regards,
Josh L.