From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-03-2018 01:46 AM - edited 01-03-2018 01:56 AM
If I have an analog signal on LabVIEW, I have to convert the data to digital first???.. Do you have some example with the comunication I2C on LabVIEW to use a DAC?.
Help me . I'm trying to generate a finite triangule analog signal. And configurate the scan rate and other properties on LabVIEW. So at the end I need a real signal .
01-03-2018 02:08 AM
Hi ykgr,
So at the end I need a real signal .
Would you please describe the DAQ hardware you currently use or want to use?
Do you have some example with the comunication I2C on LabVIEW to use a DAC?
How is "I2C" related to "DAC" and your general question of "outputting an analog signal"?
- Each DAQ hardware comes with example VIs (or should atleast).
- When you use DAQ devices from NI you should go through all those example VIs coming with LabVIEW!
01-03-2018 04:21 AM
@ykgr08 wrote:
If I have an analog signal on LabVIEW, I have to convert the data to digital first???.. Do you have some example with the comunication I2C on LabVIEW to use a DAC?
1. If you are in any computer language, you have a digital signal. Computers cannot manipulate analog signals. That is what DACs are for.
2. What DAC are you using? What are you using for an I2C interface?
You might want to look into using a cheap DAQ from NI since DAQmx will be easier to figure out and there are a lot fewer pieces to figure out.
01-03-2018 02:27 PM
How can I send the digital value to convert to analog to the DAC over the I2C bus??
Do you have some example?
01-03-2018 02:34 PM
01-03-2018 02:40 PM
03-26-2018 01:51 PM
Firs I´m using Labview to control an Arduino Uno and the DACMPC4725.
I used the term "analog" by mistake.
I create an analog wave form in LabVIEW and I want to send that to a DAC using the I2C protocol.
In this moment I can send the value between 0-5 using an fill slide. The 819 is for get values of 0 to 4095 because the DACMPC4725 work wiht 12 bits.
But I want to chage the vertical fill slide for the "analog wave form2 that I made or other Labview wave form (sin, triangle, etc)
03-26-2018 01:56 PM
@ykgr08 ha escrito:
Firs I´m using Labview to control an Arduino Uno and the DACMPC4725.
I used the term "analog" by mistake.
I create an analog wave form in LabVIEW and I want to send that to a DAC using the I2C protocol.
In this moment I can send the value between 0-5 using an fill slide. The 819 is for get values of 0 to 4095 because the DACMPC4725 work wiht 12 bits.
But I want to chage the vertical fill slide for the "analog wave form2 that I made or other Labview wave form (sin, triangle, etc)
Let me Know if I could explain me better. Because I´m new posting in this place and I´m learning how to speak in english.
Sorry for the inconveniences
Regards
03-27-2018 01:10 AM
Hi ykgr,
the waveform function give you an array of values, so you need to use an autoindexing (FOR) loop to output each sample…
Hint: Play with those waveform function in a test vi to understand their behaviour. Some simple steps:
1. use a waveform function to generate an array of samples. Display the samples in a graph
2. use a loop to output each single sample to a chart.
3. when you have understand how this works you can incorporate the waveform function in your Arduino/DAC VI…
03-27-2018 06:23 PM
I have another question.
How can put in the output the values for get the correct frecuency. Because I have troubles with the timing