LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ Analog input and digital input

I want to acquire data using NI DAQ (USB 6009) and I have a pulse (the magnitude doesn't matter) and a sinusoidal signal which I want to do some analysis on the two signals (calculating the phase shift between the two,...)

 

So I put 2 DAQ assistants one for analog and one for digital input with N sampling, and it gives me error. If I change the digital one to "by demand" then I wont have the error, but I cannot do the analysis since I don't have the digital signal based on time.

 

Does anybody know what can I do to avoid the error, if there is any other way to do so?

 

(If I use analog input for the pulse signal everything works perfect, but I need the other analog input pins for other purposes) 

 

Thanks in advance.

0 Kudos
Message 1 of 6
(2,765 Views)

The only timed inputs on a USB-6009 are the analog inputs.  If you do not have enough analog channels for all the signals you want to measure, you will need a DAQ device with more capability.

 

Lynn

0 Kudos
Message 2 of 6
(2,763 Views)

Thanks. Where can I find such information? cuz I believe it doesn't say on the datasheet that the digital inputs are not timed.

 

Baran.

0 Kudos
Message 3 of 6
(2,760 Views)

@Baran wrote:

Thanks. Where can I find such information? cuz I believe it doesn't say on the datasheet that the digital inputs are not timed.

 

Baran.


The 6009 spec clearly states the DIO supports software timing.  What is not clear is this means you can't hardware trigger the DIO.  the USB-625x seires will get you there. 


"Should be" isn't "Is" -Jay
Message 4 of 6
(2,756 Views)

So if it has software timing, is it possible to synchronize it with the analog input? I mean the analog input has hardware timing, and if I can trigger the digital input and be able to synchronize it with analog one, then I should be able to compare the two signals.

 

Thanks.

0 Kudos
Message 5 of 6
(2,753 Views)

@Baran wrote:

So if it has software timing, is it possible to synchronize it with the analog input? I mean the analog input has hardware timing, and if I can trigger the digital input and be able to synchronize it with analog one, then I should be able to compare the two signals.

 

Thanks.


NOPE, software timing means the channel takes a sample(s) on demand or when the program intiates a measurement- Now, if you ALSO wire your DI signal to PFI0, you can trigger your analog in task from the same source but, there is no timing relationship between the DI task and the Analog Task. outputs. 


"Should be" isn't "Is" -Jay
Message 6 of 6
(2,749 Views)