03-01-2017 02:14 PM
Hello,
I want find an example vi to setup the DC Voltage (for example 2.5 VDC) for Analog Ouptput 0 of PXI 6221. I can set up the output in MAX via the test panel. However, I could not find example vi in DAQxm for setup of DC Voltage output, although there are some other example to set up output of sine waveform or other waveforms.
Thanks a lot,
James
03-01-2017 02:32 PM
PXI 6221 is an analog input.
@James_Creation wrote:
Hello,
.... I can set up the output in MAX via the test panel. ...
I am impressed.
Ben
03-01-2017 02:35 PM
Hi Ben,
It has 2 Analog Outputs, AO0 & AO 1.
Any instruction and suggestion are more than welcome.
James
03-01-2017 02:37 PM
If that is true then from inside MAX save the task.
Go to a LV block diaram, drop a DAQmx task constant.
Select the task you saved.
Right click the task constant and choose "Create config and example"
It should write the example for you.
Ben
03-01-2017 03:01 PM
Hi Ben,
I tried to create a task in MAX. However, it is automatically set up the waveform. I can only select sine, square, or other waveform. There is no selection for Constant DC Voltage.
I can find similar example vi's in Labview 2015 examples folder for these waveform outputs, but not Constant DC Voltage Output, which is what I want to set up.
Thanks a lot for more instructions,
James
03-01-2017 03:04 PM
Then you are going to have to write some code. Start with a task with a sine wave of amplitude "0". Then all you have to do is figure out how to add an offset.
Ben
03-01-2017 03:06 PM
Hi Ben,
As per your instruction, I may modify an example vi directly in Labview platform. Am I right?
Thanks a lot,
James
03-01-2017 03:09 PM
Yes but make sure you never save over any of the code in the National Instruments folders or sub-folders.
Check out some of the tutorials because it sound like you are just getting started.
Ben
03-01-2017 03:21 PM
Yes, I got it,
Thanks a lot Ben,
James
03-29-2017 07:04 AM
Good Morning Ben,
I would like you give me more help.
I modified an example and save it in our test PC. It runs well independently by itself. However, when we use it in Teststand for a separate step, it does not run itself. Instead, it does nothing. But the run icon has a arrow inside. Whatever we click on any button, it does not respond. We can only close the window to stop it.
After that, we can still run it separately in LabView platform.
Could you give some instruction?
Yes, I am new to use Labview.
Thanks a lot,
James