LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I keep getting error 2 "Digital device is not responding? (VI is attached). The VI may be broken if you try to open it because of the type def.

All I am trying to do is to write to multiple channels. I want to control 8 different relays. I kept getting this error:

 

Error 2.PNG

0 Kudos
Message 1 of 8
(1,495 Views)

Hi GRCK,

 

check the manual of your ULx device…

 


@GRCK5000 wrote:

All I am trying to do is to write to multiple channels. I want to control 8 different relays.


Then why do you use "1chan 1sample" mode, when it comes to multiple channels???

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(1,493 Views)

I fixed it and now I have Error 10034

Error 10034.PNG

 

 

0 Kudos
Message 3 of 8
(1,479 Views)

Hi GRCK,

 

did you read that error message (carefully)?

Now the number of DIO lines in the task does not fit to the number of DIO lines in your array data…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(1,473 Views)

Yes, I did and kept having the same problem.

0 Kudos
Message 5 of 8
(1,468 Views)

Please share the latest VI if updated.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 6 of 8
(1,464 Views)

Hi santo,

I have attached the latest VI updated.

By the way I am using MCC DAQ (USB-TC-AI) hardware. I even tried to open the software for this device for configuration and kept getting the same issue.

0 Kudos
Message 7 of 8
(1,452 Views)

@GRCK5000 wrote:

Hi santo,

I have attached the latest VI updated.

By the way I am using MCC DAQ (USB-TC-AI) hardware. I even tried to open the software for this device for configuration and kept getting the same issue.


Do you mean that even with MCC DAQ software, you get some errors? - if so, there is something wrong with the hardware itself.

 

General feedback - it would be best to reconsider your state machine architecture, your method of using local variables to control hardware is not best.

 

About the error you got, do you know which exact subVI call returned the error? in general, you seem to use 8 element boolean arrays everywhere and the DO task has 8 channels (0:7)

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 8 of 8
(1,445 Views)