LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

analog inputs and digital outputs usb 6009

Solved!
Go to solution

@surferEE wrote:

I created the channel now I am not getting any readings on AI0-2.  I have attached the VI.  Thank you for your help Apok!


try this one...

Spoiler
read write mod_BD.png

 

0 Kudos
Message 11 of 15
(1,874 Views)

Your code produced an error as follows:

 

Error -200463 occurred at read write mod.vi

 

Possible reason(s):

Specified read or write operation failed, because the number of lines in the data for a channel does not match the number of lines in the channel.

If you are using the Digital Waveform datatype, make sure the number of lines in the digital waveform matches the number of lines in the channel. If you are using boolean data, make sure the array dimension for lines in the data matches the number of lines in the channel.

Number of Lines in Channel: 1
Number of Lines in Data: 8

Task Name: _unnamedTask<37>

 


I updated my code to reflect what you suggested with constants instead of controls, see attached.

 

 

I surf therefore I am....
0 Kudos
Message 12 of 15
(1,871 Views)
Solution
Accepted by surferEE

replace your graph with a waveform chart and connect the error line...

 

Spoiler
analog_digital_test1mod_BD.png

 

Message 13 of 15
(1,867 Views)

Success!  It works, now I need to toggle the digital output while the analog input is still being sampled.  I will post my test vi again once I have implemented the code.  Thank you.

I surf therefore I am....
0 Kudos
Message 14 of 15
(1,862 Views)

Even more success!  Super stoked!  Attached is my solution to toggle the digital outputs using a nexted case statement.

I surf therefore I am....
0 Kudos
Message 15 of 15
(1,855 Views)