07-19-2018 01:17 AM
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…
07-19-2018 01:24 AM
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
07-19-2018 01:38 AM
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…
07-19-2018 01:58 AM
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
07-19-2018 02:17 AM
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
07-19-2018 02:35 AM - edited 07-19-2018 02:36 AM
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?)
07-19-2018 03:41 AM
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?
Thanks again!
Best,
Jason
07-19-2018 03:48 AM
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
07-19-2018 03:57 AM
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!
07-19-2018 04:07 AM - edited 07-19-2018 04:10 AM
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