From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to simultaneously write to and read from digital DAQ lines

Hi I use NI PXI-6256

And I would like to write a digital waveform to Line 16 to line 31 and simultaneously monitor line 0 and start acquiring after detecting the first rising edge. I think I should read before write to be able to capture events but I don;t know how to set the DAQmx functions and what to do for sample clock. Can I set both read and write to Internal Clock?

 

Could you please help me on this?

Thanks

 

0 Kudos
Message 1 of 6
(4,830 Views)

Any help really apprecaited

Thanks

0 Kudos
Message 2 of 6
(4,786 Views)

I don't know if you are able to do this with one device.

Anyway, most likely you have to make two different intilialisation blocks.

One for reading one for writing.

Here is how it could look like in a voltage set up.

Probably you can change it to a DIO.

ReadWrite.PNG

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 3 of 6
(4,776 Views)

I think you should be able to assign individual lines and configure them as outputs/inputs.

BTW, are you talking about lines or ports?

 

0 Kudos
Message 4 of 6
(4,764 Views)

Hi tintin,

 

I'm not sure what your device is because there is no PXI 6256 model as far as I'm aware. However, a really simple way to do digital I/O is from the MAX test panels. If you are looking for a labview program, then I would suggest looking at this community example.

 

I hope this helps. Have a good day!

NabilahF
Applications Engineer
0 Kudos
Message 5 of 6
(4,749 Views)

1.png

I have also attached my VI.

In this VI I should send data to DAQ and at the same time I should monitor DAQ to acquire a response from DUT.

I have used the following method to the acquisition. First I start to monitor the line , then send the data and then wait until I send the whole data and finally I stop acquisition and monitoring the line.

This code somehow works in LabVIEW but I need to call this VI from C# through a dll and sounds like a dll call have effects on timing paarmeters so I can't catch the DUT response.

 I tried to use 1 million samples but the data is still not there. Could you please let me know what is the best way to implement this code in LabVIEW?

 

I should be able to acquire a response from DUT while I am sending data to it. Better to say , as soon as I send the data I should be able to catch the response and I miss this response when I use dll.

 

 

 

 

0 Kudos
Message 6 of 6
(4,698 Views)