12-27-2012 01:12 PM
I'm missing something...I can't seem to aquire mutiple channels. It'll work if I delete one of the channels.
Solved! Go to Solution.
12-27-2012 01:55 PM
First get those error clusters on shift registers so you can see what error you are causing when your read vis try to commit the same timing resouce.
You won't be able to reserve the same timing resource for two tasks. but, you can have multiple channels in 1 task
12-27-2012 02:11 PM
If I delete the other channel creation and create another "read" inside my while loop which connects to my first channel creation...how do I stipulate which channel number this new "read" is?
12-27-2012 02:37 PM
@glskinner wrote:
If I delete the other channel creation and create another "read" inside my while loop which connects to my first channel creation...how do I stipulate which channel number this new "read" is?
Not quite.
Create the task with two chanels and then your read reads and returns data from both channels in an array of waveforms. Simply index out the waveform you want. (Or graph them as seperate plots on the same chart)
12-27-2012 02:42 PM
something like this?
12-27-2012 02:45 PM
@glskinner wrote:
something like this?
Yes. But, Start preserving those errors!
(Shift registers will reall save a lot of debug time in the future until you write error free code like me)
12-27-2012 02:47 PM
ok, thanks for your help on the mutiple channels...Now you're saying wire my error boxes that I have outside my while loop to the shift registers?
12-27-2012 02:50 PM
right click the error tunnels replace with shift registers. error in and error out of loops should always be on shift registers so that if 1 loop iteration causes an error it is passed along to the next iteration and the error information is not lost.
12-28-2012 12:44 AM
@JÞB wrote:
right click the error tunnels replace with shift registers. error in and error out of loops should always be on shift registers so that if 1 loop iteration causes an error it is passed along to the next iteration and the error information is not lost.
Except it will keep any later iterations of the loop from ever executing properly considering most functions are designed to not execute in the event of en incoming error. You'll never get the loop to run properly again unless you restart it, or handle the error and clear it.
12-28-2012 04:09 AM