LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to sample syncronously an analog and digital channel and write them to file in array.

I have a PCI-MIO-16XE-10. I am using the AI01 and a DI01 to recieve the signals. I am monitoring and switch and want to know when it comes on in relation to my analog signals when I post process the data so it is important that the signals be synced and placed in the data array. The attatched vi gives some idea of what I want to do. Thank you in advance for help concerning this.

JML
0 Kudos
Message 1 of 5
(3,074 Views)
JML,

I would suggest that you duplicate the signal you are looking for into ACH1 and use the digital signal as a trigger for capturing the analog signal. I presume that this is what you are trying to do.

The other thing you can do is to input the switch signal to an analog channel and through software, convert it to a digital signal (i.e. using a level conversion).

Hope this is helpful.
0 Kudos
Message 2 of 5
(3,072 Views)
I don't think I worded my question/problem well enough. I am writing signals from analog channels to a file. I want to monitor a hardware switch. I am using a digital input to do this (DI01, SCC Module). The digital input is triggered by the position on the hardware. I want to monitor this switch this switch so that when I post process the data I can say "when analog channel 1 is at this voltage the switch turns on". I need to see the time relationship between the analog input and the switch value in my sample. So I need these records to be in sync with one another in the file. I want to see where the triggering occurs. I need to know how to syn them and write both the values to file. I hope this helps, sorry I was a little unclear before.
0 Kudos
Message 3 of 5
(3,071 Views)
Hello;

For the Digital Input/Output to be hardwared synchronized with the Analog Input/Output task, you need to have a board that supports strobed Digital operations, which means that the digital operation will be clocked by some pulse train.

That board of yours doesn't have that feature. The best board you can get with that feature is one of the 653x family. Then you can use the RTSI bus to route the same clock signal for both the Digital and Analog tasks, so they can be perfectly synchronized.
Hope this helps.
Filipe
0 Kudos
Message 4 of 5
(3,071 Views)

I am using 6221 same issue i have .

i need to accuire pulse of train and its simaltanously triggering the AI.

Issue is while writing this data to an Excel sheet i am missing some data in-between.

number of pulses are 870 , this count i am getting incermentally in the output of Counter

i did "build an array" with this AI and Counter data and writing it to file, there i misses data.

Attached wiring diagram for reference.

Pls suggest some method to write data to file for every pulses so that i wont miss any data.

Joe
Using Ver. 8.0
0 Kudos
Message 5 of 5
(2,909 Views)