Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronizing Analog Input and Digital Output

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

0 Kudos
Message 11 of 14
(1,044 Views)

Dear Sir.

 

 

Thank You very much for your sujjestions,i will try according to that.

 

 

 

Raikar A G

0 Kudos
Message 12 of 14
(1,042 Views)

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 

0 Kudos
Message 13 of 14
(1,037 Views)

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 

Download All
0 Kudos
Message 14 of 14
(1,034 Views)