mallorim
2007-12-14 21:40:07 UTC
Hi Mohammad,
To answer your questions, you do not need to anything else in MAX in terms of setting the port. The VI will configure the port in your LabVIEW program. With regards to your second question, yes, the method you described works. I built a program and tested it here and the Write to a digital port.vi initializes on the first iteration and then writes a value to the line.
I would suggest looking at Traditional DAQ examples programs. These can be found by going to the Help Menu and selecting Find Examples. When the NI Example Finder box appears, under the Browse Tab on the left hand side you will need to select Directory Structure. When the new set of file appears, expand the daq folder>> expand the digital folder>> then expand the E-series.llb file. I would suggest looking at the Write to 1 Dig Port (E).vi example, since this program is already written for you.
I am unclear as to your application and what you want to eventually do. You had mentioned in your post that you are using the 6503 card as a relay. Will you be using all 24 channels, or only a few? Will you only being writing a value to that channel once each time the program is run or will you want to change the value back and for the between high and low while running? A better description of your end goal would be helpful if you post back.
Best of luck with your application, Mallori M.
To answer your questions, you do not need to anything else in MAX in terms of setting the port. The VI will configure the port in your LabVIEW program. With regards to your second question, yes, the method you described works. I built a program and tested it here and the Write to a digital port.vi initializes on the first iteration and then writes a value to the line.
I would suggest looking at Traditional DAQ examples programs. These can be found by going to the Help Menu and selecting Find Examples. When the NI Example Finder box appears, under the Browse Tab on the left hand side you will need to select Directory Structure. When the new set of file appears, expand the daq folder>> expand the digital folder>> then expand the E-series.llb file. I would suggest looking at the Write to 1 Dig Port (E).vi example, since this program is already written for you.
I am unclear as to your application and what you want to eventually do. You had mentioned in your post that you are using the 6503 card as a relay. Will you be using all 24 channels, or only a few? Will you only being writing a value to that channel once each time the program is run or will you want to change the value back and for the between high and low while running? A better description of your end goal would be helpful if you post back.
Best of luck with your application, Mallori M.