02-24-2016 09:34 AM - edited 02-24-2016 09:35 AM
If your device allows it, yes, change the range to allow negative value outputs as well.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
02-24-2016 10:14 AM
Ok so now I made some adjustments. This time I get this error.
Possible reason(s):
Not enough samples were written to satisfy the initial data transfer request condition.
To successfully start a generation, increase the number of samples initially written to the buffer before starting. Alternatively, decrease the number of samples required to start by changing the data transfer request condition.
End of Data Sample Number: 0
Minimum Value: 0
Task Name: _unnamedTask<8>
Could you help me understand why I get this one.
02-24-2016 10:17 AM - edited 02-24-2016 10:24 AM
Make sure you're generating the waveform correctly.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
02-24-2016 10:21 AM - edited 02-24-2016 10:23 AM
I see in reg compute waveform it is skipping the for loop i have hooked up to the main vi. Do you know why that is? nevermind i figured it out.
02-24-2016 10:25 AM - edited 02-24-2016 10:28 AM
All of your values are default zero so I don't know what values you're using. Probe the wires to see what values are being written. If you write a value of zero to N, the For loop will not run...
Use the debugging tools, Reggie.
The real question is, why are you generating a sine wave this way?? There are so many better ways of creating a sine wave.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
02-24-2016 10:35 AM
sorry that was very stupid of me. I did leave out a number. I guess the last question is how do i get it to produce multiple square waves and not just one.
02-24-2016 10:36 AM - edited 02-24-2016 10:37 AM
What do you mean multiple square waves? Different waves for each channel? Run the code with different settings in a For loop for this.
Have you ever gone through th LabVIEW tutorials?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
02-24-2016 10:39 AM
Are you seeing more that one channel because i only have one hooked up to the daq. But i guess what i am trying to say is that I am suppose to output 5 square waves but I am only getting one. Do I need to put in a wait time? or wait until done vi.
02-24-2016 10:47 AM - edited 02-24-2016 10:47 AM
5 pulses? Your plot shows multiple on the graph there, so you should be outputing multiple. I can't tell from your graph whether or not the gap between the pulses is a jump from high to low, or just a quick drop to low for a split second. Maybe you're just not seeing it because it's too fast.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
02-25-2016 01:23 PM
How's this working out Reggie?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'