LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to achieve the timing A contain timing B in the same block diagram?

Hi Jason,

 

you don't send those waveforms to DAQmxTiming: you wire them to DAQmxWrite to output them…

 

What should I do if the Leitung 0 and Leitung 1 are separated timing control for data and scan1a?

It has no impact on your VI how those signals are named and what they enforce outside of your DAQmx device: you just output them…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 23
(1,415 Views)

Hi GerdW,

 

If I only wire them to DAQmxWrite to output them, then how can I use them as separated timing for data and scan1a? I should wire back the DO  I wired of the DAQ to the clk pins of the chips, right?

 

If not, how can I use them as the hardware timing?

 

Thanks a lot!

 

Best,

 

Jason

0 Kudos
Message 12 of 23
(1,411 Views)

Hi Jason,

 

how can I use them as separated timing for data and scan1a?

Why should they be "separated"? You wanted them with a certain pattern "in sync" and now you want to separate them?

 

I should wire back the DO  I wired of the DAQ to the clk pins of the chips, right?

You get two bit streams (aka TTL signals) on two DO pins.

As they have a purpose/meaning you need to wire them (using real copper wire :D) to your "clk pin of the chips", whatever that is…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 23
(1,408 Views)

Hi GerdW,

 

Thanks for your quick reply!

 

So if I wire the TTL signals to two DO (for example DO1.0~1.1) pins and then wire them to clk pins of the chips, for the programming I only need to choose the source of DAQmxTiming to DO1.0~1.1, then I will get the prepared HW timing control, right? 

But how can I set the rising or falling edge according to time base to trigger the HW Timing control then?

 

I am a little confused about it. Sorry!

 

Thanks a lot!

 

Best,

 

Jason

0 Kudos
Message 14 of 23
(1,405 Views)

Hi GerdW,

 

how can I use them as separated timing for data and scan1a?

Why should they be "separated"? You wanted them with a certain pattern "in sync" and now you want to separate them?

Because scan1a and data are two separated device controlled by chips, both of them need to set timing control, yes, I hope the timings of them work in a pattern "in sync", but how can I set DAQmxTiming (HW timing control) with them? just choose the sources which they are linked such as DO0 and DO1, right?

I am not very sure how to use them as timing. Could you please give me some tips or snippet?

 

Thanks again!

 

Best,

 

Jason

0 Kudos
Message 15 of 23
(1,404 Views)

Hi Jason,

 

you just output those boolean signals on your DO pins and connect those pins to your IC clk inputs.

 

how can I set DAQmxTiming (HW timing control) with them?

You don't set DAQmxTiming "with them"…

You just set DAQmxTiming to the desired sample rate! Your boolean signals will be output one sample after the other using that sample rate… (Haven't we discussed this before, several times?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 23
(1,407 Views)

Dear GerdW,

 

Should I set the Timing like this? But if I want to use it, need I to start it first and then start the programming of scan and data? How would I know whether it starts from the beginning when my programming is running?

微信截图_20180719163734.png

 

Thanks again!

 

Best,

 

Jason

0 Kudos
Message 17 of 23
(1,402 Views)

Dear GerdW,

 

As you can see in the snippet below, where can I put the DAQmxTiming to substitute the function of the "WAIT" node?

 

Thanks a lot!

 

Best,

Jason

ex1 (1).jpg

0 Kudos
Message 18 of 23
(1,400 Views)

Hi Jason,

 

Should I set the Timing like this?

I don't see any (DAQmx) timing in the image. Maybe you did set it with the task definition in MAX, but I cannot judge on this.

 

But if I want to use it, need I to start it first and then start the programming of scan and data? How would I know whether it starts from the beginning when my programming is running?

First you should write the data to the task, then you should start the task.

This way you know when the output of the booloean signals is started.

When you want more accurate starting of your DO task you can even use a trigger for starting the output.

All those DAQmx things are shown and explained in the example VIs coming with LabVIEW!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 19 of 23
(1,396 Views)

Dear GerdW,

 

Thank you very much!

 

If we set the message 18 as an example, all I try to do is using DAQmxTiming with prepared Boolean data to substitute the function of "WAIT" node in the loops. As a result, the data flow should run according to the prepared Boolean data.

 

Message 18 is for scanning. I got another one for data. Should I use 2 DAQmxTiming to achieve the function?

 

Is that possible?

 

Thanks again!

 

Best,

 

Jason

0 Kudos
Message 20 of 23
(1,394 Views)