Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 10008 when i try to use Port Write

I have a program that takes pictures every time interval (usually every 2 hours). Before the picture is taken, one of 6 ligths will be turned on. Wich light to be turned on is decided by a switch. I use a PCI 6025 E IO card to send digital signal to the switch.

When I use the test program this works just fine, the light i choose shines with the intensity I choose (analog signal), but when I use the same code in my main program I get the error message:
"Error -10008 occurred at DIO Port Write
Possible reason(s):
NI-DAQ LV: The group is invalid."

Can anyone please explain why I get this error?
(attached programs are made with LV 7.0)

Best regards,

Kristin
Download All
0 Kudos
Message 1 of 2
(3,207 Views)
The DIO Config VI is used for configuring buffered operations and you are just looking to perform an unstrobed digital write operation. I believe you are still receiving the error within the program to test the cards but the automatic error handling isn't bringing up the error. If you were to use the Simple Error Handler VI or just create an indicator from the error cluster output of the DIO Port Write VI, you'll see you're getting the same -10008 error.

You're going to need to replace the DIO Config VI with a DIO Port Config VI. Also, make sure you pass the task ID from the DIO Port Config VI to DIO Port Write VI. Take a look at the 'Write to 1 Dig Port (E) VI' which is a LabVIEW shipping example for an example of using the DIO Port Config VI and DIO Port Writ
e VI.

I hope this helps.

Regards,

Todd D.
NI Applications Engineer
0 Kudos
Message 2 of 2
(3,207 Views)