LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does one write to individual digital lines accross many DIO-96 ports?

I want to be able to write to any individual DIO-96 line without having to repeatedly init. The available vi's can set up only 24 lines at a time. If it is desired to write to a line outside of those 24, another 24 lines must be initialized, then to return to the first 24 lines, those must be initialized once again. Very clumsy! Does anyone know how to init all lines one time and then allow random access to all 96 lines without further initialization?

Thanks,
CBD
0 Kudos
Message 1 of 6
(3,040 Views)
Hi Tom,
try to use (or at least to insert) that control in another environment (like a Visual Basic form) in order to check if it's working properly. Also, check if you have the DLL with the same name in your system folder - this control it's just a simpler way to use that dll.

You can use Write to Digital Line.VI, but pay attention to ITERATION terminal - if it is 0(default) LV will call DIO Port Config (find details in help).
Hope I understood the problem...
0 Kudos
Message 2 of 6
(3,040 Views)
Sorry for the first part of the post (it's from a previous message). I have no idea how did it happen.
0 Kudos
Message 3 of 6
(3,040 Views)
Thanks for the info but the iteration line is not the problem. I understand the initialization line perfectly. You may want to take a closer read of my explanation.
CBC
0 Kudos
Message 5 of 6
(3,040 Views)
If you look inside Write to Digital Line.vi, you'll see Port Config and Port Write. You can just use Port Config for each of your ports and pass the Task ID out to individual Port Write VIs. If you want, you could make Port Write easier to use for individual lines by making a new VI with just the appropriate code that is in Write to Digital Line.vi.
0 Kudos
Message 4 of 6
(3,040 Views)
Thanks, I have been looking at the underlying VI's and I am not quite sure how to do what you describe. I will give it a try however.
CBD
0 Kudos
Message 6 of 6
(3,040 Views)