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.
06-10-2014 08:25 AM
hey !
I've got some problems to generate a sinewave with the module NI usb-6212, i created a task who generate a sinewave at 500hz, and i would like to see it on a graph, but i don't know how to do it.
if i am using the DAQ assistant, it ask me some data input, and i don't understand why, because i want to see the output data. any help ?
thank you
ps : i tried the examples but i was not able to make them work.
06-10-2014 08:40 AM
I generally advice against using DAQ Assistant because it works in very small use cases. That being said post your code and we can take it from there.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-10-2014 08:47 AM
ok, thx for this advice 😉 so i tried without dac assistant but it tells me that the buffer is not big enough, problem is, i don't know how to change the buffer's size 😕
06-10-2014 08:51 AM
This VI has little to do with the first post. You mentioned that you created code that generates an output at 500hz. This code neither outputs multiple values, nor does it output any value, it is analog read. You want an analog write, you also want to provide multiple samples to output.
The example "Cont Gen Voltage Wfm-Int Clk.vi" found in the example finder allows to output a waveform on an analog out and shows a graph of it. You should probably start there if you are trying to output a wave.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-10-2014 08:59 AM
ok thx for all the advices, so here i attached some pictures where i'm generating a sinewave of 1 Khz on the AO_0. So, if i put and BNC cable between the AO_0 of the NI 6212, and the AI_0 of my module 5731, and i devellop a little program on my FPGA i should see it right ?
thx again for everything
06-10-2014 09:04 AM
That isn't the VI I mentioned that one has triggering. Does you application need a trigger? If this VI runs without error you will have an output that can be seen with a scope, dmm, led, motor, fet, or any other DAQ input device.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-10-2014 09:18 AM
ah yes ! sorry i changed that and now i visualize it on a scope i will try to connect to the NI5731 now, to see it on the FPGA
06-10-2014 09:46 AM
And if i want to generate 2 sinewaves in the same time, for example, one on AO_0 and one on AO_1 ? i tried to copy and past 2 time the VI into one but when i start an error appear to say that the ressource is reserved what can i do ?
thx !
06-10-2014 10:17 AM
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-10-2014 10:38 AM
alright 😃 but i've got some problems 😕 sorry 😕 first, what do you mean by "the write multiple channels, and multiple samples" is it a VI ? and also, when i create a task with two channels, i choose the frequency for one of them and the other one got the same 😕 (see attached)
thk you very much