LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ULx write does not match type of channels in the task

Hello,

I have been given a supposedly operational VI to run a stepper motor.  It uses the ULx package and I'm running into an error at the "Write" block.  I'm getting an error 20002 "ULx Write (Digital Bool 1Line 1Point).vi<ERR>
Measurements: Write cannot be performed because this version of Write does not match the type of channels in the task.

Use the version of Write that corresponds to the channel type."  I've attached a screenshot and the file in question.

Thank you for your help,

Michelle

Download All
0 Kudos
Message 1 of 6
(1,896 Views)

You created analog output tasks, but then proceed to do digital outputs with those tasks.

 

Change the type of the VI where you first create the tasks.

0 Kudos
Message 2 of 6
(1,871 Views)

Thanks for your reply.  I've changed the ULx create channel block to digital output, however, I'm getting a broken arrow with the error "The polymorphic subVI is broken. You must fix all errors in the polymorphic subVI before this VI can run."  I've attached the file with changes included.

Thanks again.

0 Kudos
Message 3 of 6
(1,843 Views)

Hi there,

I've been looking at some ULx examples and I'm having the same issue.  I opened ULx Cont Acq&Graph Voltage- To File(Binary).vi and ULx Write Dig Chan.vi; they're both doing similar things.  I've attached screen shots of what's happening on my computer - could I be missing something in the software?

Thanks again!

Download All
0 Kudos
Message 4 of 6
(1,837 Views)

I'm afraid I can't help much more because I don't have the ULx library installed nor do I have a Measurement Computing device handy right now.

0 Kudos
Message 5 of 6
(1,829 Views)

The broken VI was because the MCC daq add on needed to be reinstalled. I uninstalled and reinstalled and it’s fixed now. Thanks for the help.

0 Kudos
Message 6 of 6
(1,761 Views)