01-27-2023 05:14 PM
I would like to generate a single TTL if possible, so to answer your last question, I would like to turn it on, thanks for your response.
01-30-2023 10:23 AM - edited 01-30-2023 10:45 AM
I am not the most well versed in electronics, this is all very new to me. I have made a new VI and am getting this error:
Error -209836
The devices in your task cannot be synchronized. This may be because there are no available synchronization mechanisms between the devices.
Some synchronization paths are not available in interactive tools like the DAQ Assistant. To determine whether synchronization between these devices is possible, try deploying and executing your task in your application environment.
Task Name: _unnamedTask<8>
*Edit*
I believe I was able to get the vi to work now. I am now curious as how to convert the array to a digital output and plot it. I have attached my working vi titled "Finite digital output2.vi"
01-30-2023 11:51 AM
Hi svazquez,
@svazquez22 wrote:
I am now curious as how to convert the array to a digital output and plot it.
You already use that array for digital output, don't you!?
Why is the array defined as U32, when you need an U8 array as set in the DAQmxWrite function??? Did you notice the coercion dot?
Why do you set a finite task of 1000 samples, but only provide 8 samples in the array control?
To plot the array data just use a waveform graph…
01-30-2023 12:10 PM
I tried changing the number of samples and added a waveform graph, it outputs as 0 and I am unsure why.
01-30-2023 12:17 PM
Hi svazquez,
@svazquez22 wrote:
I tried changing the number of samples and added a waveform graph, it outputs as 0 and I am unsure why.
So you define your DAQmx task as digital output, but then you try to read samples from a digital input?
Which samples do you expect to read from an output channel???
01-30-2023 12:20 PM - edited 01-30-2023 12:22 PM
Right, I forgot that I need to define an input channel, thank you for the clarification. How would I go about reading my digital signals in an analog channel? I know there are some conversion functions for digital to analog.
01-30-2023 12:29 PM
Hi svazquez,
@svazquez22 wrote:
How would I go about reading my digital signals in an analog channel? I know there are some conversion functions for digital to analog.
When you read a digital signal using an analog input then you need to convert from "analog to digital"! Why do you ask for "digital to analog" conversion functions?
Did you read the specs for a TTL (compatible) signal?
When you read an analog voltage then how do you determine the TTL logic level? Which voltage range is accepted as "FALSE" and which voltage range corresponds to a TTL HIGH level? which kind of "conversion" might come handy?
Hint: most often you use a comparator to convert an analog signal to a digital one. That comparator can be hardware or software!
01-30-2023 12:31 PM
The way I have my wiring set up is my digital output is being routed to an analog reader, so wouldn't I need to convert it to an analog signal?
01-30-2023 12:50 PM - edited 01-30-2023 12:51 PM
Hi svazques,
@svazquez22 wrote:
The way I have my wiring set up is my digital output is being routed to an analog reader, so wouldn't I need to convert it to an analog signal?
I really hate to repeat myself:
Did you read the specs for a TTL (compatible) signal?When you read an analog voltage then how do you determine the TTL logic level? Which voltage range is accepted as "FALSE" and which voltage range corresponds to a TTL HIGH level? which kind of "conversion" might come handy?
Hint: most often you use a comparator to convert an analog signal to a digital one. That comparator can be hardware or software!
Especially when you are "not the most well versed in electronics" you should: