01-15-2013 08:10 PM
Hello Raikar,
Yes, in my example I’m closing the task. You are using a DO task to control to which pin in the MUX you want to read from and using the AI task to read from it. If that is the case, I would recommend using a state machine with both tasks in parallel. For instance, you would have Case1: DO task pin 1. You continue transferring this task reference with shift registers throughout all cases. In Case2: AI task pin 1, you set Ch0 to read from the MUX and get that value into the array. Then in Case3: DO task pin 2 you change the written value to select pin 2, and you back to the AI task to read from that channel and append the values to the array. This is going to be a software time acquisition and it has to be finite. This would repeat for all pins in Ch0.
Best Regards,
Alina M
01-15-2013 10:02 PM
Dear Sir.
Thank You very much for your sujjestions,i will try according to that.
Raikar A G
01-16-2013 03:57 AM
Dear Sir.
I did the vi on according requiered,there is no error in VI,but In this VI I am not able to get predictaed output from Digital lines,in Default and CH05 case i am getting the predicted Output but in CH01,CH02,CH03,CH04 case i am not able to get the output,Analog Input in AI0 terminal is fine,kinldy find the attachments and advise me.
Thanking You
Raikar A G
01-16-2013 03:59 AM
Dear Sir.
I did the vi on according requiered,there is no error in VI,but In this VI I am not able to get predictaed output from Digital lines,in Default and CH05 case i am getting the predicted Output but in CH01,CH02,CH03,CH04 case i am not able to get the output,Analog Input in AI0 terminal is fine,kinldy find the attachments and advise me.
Thanking You
Raikar A G