04-15-2013 12:10 PM - edited 04-15-2013 12:14 PM
04-15-2013 12:17 PM
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.
04-15-2013 12:23 PM
04-15-2013 12:43 PM
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.
04-15-2013 01:10 PM
Even more success! Super stoked! Attached is my solution to toggle the digital outputs using a nexted case statement.