11-21-2005 11:37 AM
11-22-2005 04:57 PM
Hi,
It sounds like you may have the port configured for digital input when you are trying to perform digital output. You can change the port direction by going to Measurement and Automation Explorer (MAX).
1. Select your device
2. Open Test Panels
3. Select your desired port
4. Select "all output"
I also would like to point out that you have a DAQmx task name constant wired into a Traditional NI-DAQ (Legacy) function. This could also cause you to run into problems. If you are trying to perform simple digital output, the best way is to use one of the shipping examples that come with LabVIEW. There are examples available using the DAQmx driver (Recommended) and Traditional NI-DAQ (Legacy).
The DAQmx Digital Output Examples are located in: Help>> Find Examples >> Hardware Input and Output >> DAQmx >> Digital Generation. I recommend taking a look at the Write Dig Port.vi.
The Traditional NI-DAQ (Legacy) Examples are located in: Help>> Find Examples >> Hardware Input and Output >> Traditional DAQ >> Digital Input and Output >> 8255. I recommend taking a look at the Write to 1 Digital Port.vi.
I hope this information helps you with your application.