Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending signal whilst collecting data issues

Hello,

i have a program that should send a signal to an external device (AOD) whilst at the same time collecting data from another external device (QPD). both devices are controlled by a separate board.

so i run the program on the front panel i have 2 main buttons - 1 for the qpd, this opens a popup vi that allows me to centre the qpd's at 2 different  values, i  then press the return the vi closes and the main front panel is active.

by pressing the qpd button my AOD is activated and receives a signal, on pressing return the AOD is still receiving the signal - which is good.

the next thing i need to do is press the collect button to collect data, another vi opens as a popup and then data is collected.

now the problem is when i press the collect button the AOD no longer receives the signal even though the wiring for sending the signal is the same in both the collect and qpd vi's.

any help would be most appriciated.

thanks
roge
0 Kudos
Message 1 of 7
(3,671 Views)
Hi roge,

Would it be possible for you to post your code, as it will allow me to get a better idea of how you have architected it all? Is that feasible?

Regards,

Daniel

NIUK
0 Kudos
Message 2 of 7
(3,651 Views)
yes,

no problem, i have attached the library for the project. let me know if there is anything missing.

cheers

roge
0 Kudos
Message 3 of 7
(3,648 Views)
Hi roge,

I am missing the following subVIs : DVE Open Handle.vi, DVE Close Handle.vi and AD9852 Set OSKM.vi

Could you post them if it is convienient?

Regards,

Daniel
0 Kudos
Message 4 of 7
(3,635 Views)
Hi Daniel,

Attached are the missing vi's.
Thank you very much for your help

Roge
0 Kudos
Message 5 of 7
(3,630 Views)
Hi,

Just to keep you up to date. I have been out of the office for a couple of days, so I am currently still looking in to this issue for you.

Regards,

Daniel
0 Kudos
Message 6 of 7
(3,576 Views)

Hello Daniel,

I believe I have fixed the problem with my AOD, unfortunately it has been replaced with another problem.

It appears that there is a timing issue when I am collecting data and simultaneously trying to change the parameters of my external device (the AOD).  The program is designed to create a header file then collect data using initial parameter for the AOD, after a certain time the signal to the AOD should change, rapidly, and then the program should take some more data, both portions of data are then written to a single file.

The problem is that when the signal to the AOD is altered it is done in 2 steps (it should be done in 1 step, the hardware could be causing the issue, but according to specifications this should not be the case), therefore I get a jump then a plateau then another jump, now this make the analysis of this data difficult. So, would it be possible for you to look at the attached programs and see if there is anything amiss. The main program is call Dissipationfun.vi and the collection program is called AnychannelCollectBinData DAQmx(global).vi. I tried to solve the problem using a stacked sequence with the last frame being a wait step but this did not work -see attached data.

Thanks
Roger

Download All
0 Kudos
Message 7 of 7
(3,446 Views)