取消
显示结果 
搜索替代 
您的意思是: 

daq assistant

I am using a NI USB DAQ 6009 for a project. Sensors are attached to the daq and then I am building a program on LabVIEW to look at the sensor information. I am using 4 channels from the daq. When building a program to use two different daq assist the program will not run why?? Is the anyway to have two daq assistances working in one block diagram??

 

Thank you

0 项奖励
1 条消息(共 18 条)
4,029 次查看

could you post a screenshot of the vi, or the vi itself please. People will be able to help better if they can see the code

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
0 项奖励
2 条消息(共 18 条)
4,028 次查看

@Ails26 wrote:

I am using a NI USB DAQ 6009 for a project. Sensors are attached to the daq and then I am building a program on LabVIEW to look at the sensor information. I am using 4 channels from the daq. When building a program to use two different daq assist the program will not run why?? Is the anyway to have two daq assistances working in one block diagram??

 

Thank you


You can have more than one assistant running in a loop as long as they address different types of channels. You could have one analog and one digital for example. Or you could read four analog and ten digital and have to analog out. But you can not have two analog input channels and two analong input channels.

Tim
GHSP
3 条消息(共 18 条)
4,020 次查看

Here is the code

 

 

Thank you

 

 

 

0 项奖励
4 条消息(共 18 条)
4,014 次查看

I think that's must be the problem them Tim my FSR is coming into a analogue terminal ((ai1)and the accelerometer is coming also into analogue terminals (ai3,ai6,ai7) how can I fix it? Can I just move the fsr to the digital side?

 

When are there so many channels if u can only select on from each side (analogue and digital)? What would happen if I had 3 sensor linked to the daq?

 

Thanks TIM

0 项奖励
5 条消息(共 18 条)
4,010 次查看
This has come up over and over again. Add all of your analog input channels to a single DAQ Assistant.
0 项奖励
6 条消息(共 18 条)
3,998 次查看

When you add all of your analog channels into one assistant then you will need to index the array of data that is coming out to get the channel that you want for control and use the other for the graph. This will not be hard. Move all of your controls in the top while loop inside the bottom loop. Add the additional channel to the daq assistant there. Index the array to get the data that you need for each process and you are working.

Tim
GHSP
0 项奖励
7 条消息(共 18 条)
3,994 次查看

It should look like this when it is done.

 

Example.png

Tim
GHSP
8 条消息(共 18 条)
3,991 次查看

Thanks Tim

0 项奖励
9 条消息(共 18 条)
3,981 次查看

By the way if you are going to design code this way you need to add a wait to the loop to keep from over loading your processor(s). Even adding a 10 ms wait would help (unless it takes longer than that for your code to exicute).

Tim
GHSP
0 项奖励
10 条消息(共 18 条)
3,969 次查看