LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

digital output without DAQ-Assistent

Solved!
Go to solution

Hello,

 

I can produce a certain digital output signal with sampling rate 10kHz with the DAQ-Assistent. Now I'd like to build up the same functionality with the normal DAQ-VIs, as I have to synchronize lateron serveral outputs. However, I failed to get the normal VIs so that they work like the DAQ-assistent. The most important point is getting the arbitrary signal out with 10kHz.

Thanks.

Normal_DAQ.PNGNormal_DAQ.PNG

0 Kudos
Message 1 of 4
(2,960 Views)

There are two ways which might help.

 

1. Look at the examples which come with DAQmx. Find one which is close to what you want to do. Save it to a different location and with a new name, then modify it as needed.

 

2. Set up a DAQ Assistant to do what you want. Then right-click on the icon and select Open Front Panel. Click OK or Yes in the dialog which pops ups. You will then have a standard VI with all the DAQmx code which does what the DAQ Assistant did. Ther may be some extra stuff in there which you can remove but it will help you get started.

 

Lynn

0 Kudos
Message 2 of 4
(2,946 Views)

Are you getting any errors?

 

The thing that sticks out to me is a digital waveform with a dt of 0.  Instead of the waveform, try just passing in an array of Booleans.  Your DAQmx Timing VI already takes care of the clock rate.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(2,932 Views)
Solution
Accepted by topic author db2nc

Thanks a lot. The idea to look inside the DAQ-Assistent helped.

 

0 Kudos
Message 4 of 4
(2,914 Views)