06-09-2015 08:51 AM
Hi guys. I need your help on generation analog voltage for 1.2 miliseconds. I really do not know about generation/maninupulation of waveforms. I tried to modify two examples as I attached but I was unsuccesful. I tried to modify frequency input for waveform generation, however, I cannot manage it 😕 I tried to access examples/references/answers from net, however, I cannot find any helpful stuff. Could someone modify one of this vis for me to generate finite analog voltage for specified time in miliseconds. Is there any good resources to learn analog signal generation/manipulation you can suggest? I appreciate in advance.
Solved! Go to Solution.
06-09-2015 09:41 AM
You've already asked this twice http://forums.ni.com/t5/LabVIEW/analog-voltage-generation-for-1-2-ms-problem/m-p/3145950
Can you be more specific about what you are having problems with? You made it sound in the last thread like Bob had you all fixed up.
06-09-2015 01:52 PM
06-09-2015 02:00 PM
OK. So let's hear more about your desires.
What sort of analog signal do you want to generate? Square? Sine? What frequency do you want to generate?
Are you able to generate any voltages?
Have you done any DAQmx tutorials?
Have you been able to produce any voltages using tasks in NI-MAX?
Just reposting the example VIs doesn't show much about what you've tried on your own. It doesn't look like you've tried the suggestions given in the other threads.
P.S.: Don't tick off Bob. He gives good advice and is relatively polite.
06-09-2015 02:27 PM
06-09-2015 03:15 PM
Maybe it's just a language barrier thing. Does the following make sense to you?
06-09-2015 04:15 PM
To quote this Bob character,
When learning LabVIEW, it is often a good idea to write little Experiment (or Test) VIs that don't use hardware. For example, instead of trying to turn on a real LED connected to an NI USB 6353, why not try "turning on" a Boolean control on your Front Panel? You can play with timing, waveform generation, etc. and see if you can "light" your LED. You can also skip the LED entirely, and wire a numeric indicator so that you can see the actual values (and watch them change).
Once you have the basic logic worked out, and know how to generate a signal of the appropriate size and timing for your task, take that output and try to connect it to your output device.
I'm not sure what he had in mind by an Experiment VI, but it may have been something like this -- here is an example of two (!) generated Analog Voltage Signals, a 2Hz Square Wave and a 5Hz Sinusoid. Instead of sending them to some DAQ Device (which you might not have lying around, and even if you did, how would you know what it was doing?), you could send them to an Indicator of some sort. It is extremely quick and easy to rig something up like this, you can test it, see if it works as only you know it needs to work, modify it, tinker with it, and when it "does the right thing" with LabVIEW indicators, see how you can translate this to DAQmx.
BS (who is this Bob guy, anyway?)
06-09-2015 04:39 PM
@newbieeng wrote:
Analog voltage signal for 1.2 ms. It's signal type is square. It is finite signal, I want to generate it on demand. I do not adjust the frequency, but it must be once 2.4 ms like 50% duty cycle to get 1.2 ms regarding square signal. But the am not sure.
I can't even begin to guess what output you're asking for here. Can you post this in your native language so we can translate it. Or even better, provide a picture of the signal like it would appear on an oscilloscope showing the timebase and amplitude. It is very easy to create a constant of a waveform to feed into a one-shot DAQmx program but we need a better description of what output you need.
06-10-2015 12:57 AM
Hi everyone. I really do not understand what is too diffucult to understand about the problem. Anyway, I put a graph represents the analog signal that I wan to generate.
It seems that Taki1999, you have not looked at the VIs that I attached in the first thread. There is no difference between your suggested vi and "Gen finite waveform trial.vi" that is included in the attachment. Anyway, thanks again.
By the way, I am using NI USB X 6353 for that task.
06-10-2015 02:11 AM
I also edited the waveform parameters in the "Gen finite waveform trial.vi" that is attached in the first thread. However, when I decrease the duration parameter too much (magnitude of ms) chart looks like weird as it seen in the attached image. Am I in the right way to get 1.2 ms by changing the frequency and sampling frequency?