LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

iam labview beginner

“I am using an NI 9264 (DSUB) module to generate a 16-channel AC signal. The sample rate is set to 25 kS/s with 15,000 samples. When I observe the output on a CRO/oscilloscope, the waveform appears stepped instead of smooth. Is this behavior expected for the NI 9264, or am I missing any configuration or filtering settings?” i paste the vi below that iam using

 

0 Kudos
Message 1 of 6
(92 Views)

what should i change when i use more that 1 channels to generate the analog Ac signal

0 Kudos
Message 2 of 6
(93 Views)

You only have one channel because the "output array" input (I am sure you could give it a better label!) only has one element and you are only creating 1000 samples, not 15000. Are you using "continuous run" to run this? that would be a bad idea!

 

Why is the "offset" control inside the loop? Are you expecting it to change during execution of the FOR loop?

 

Can you show a picture of your definition of "stepped"? That terms is a big vague.

 

(Sorry, I am not commenting purely on the software, because I don't even have DAQmx installed. I am sure somebody else will give more insight)

 

 

0 Kudos
Message 3 of 6
(65 Views)

Hello, A-Jay.

 

     You describe yourself as a LabVIEW beginner (we could tell that because you didn't properly spell "LabVIEW").  How many days/weeks/months have you been studying LabVIEW?  Are you taking a class, with exercises using LabVIEW, or are you trying to learn it by yourself (perhaps with viewing some YouTube videos)?

 

     You seem to have found the Examples that ship with LabVIEW, and have chosen the "Voltage - Continuous Output.vi" example, which shows it can run on the NI-9264 and NI-9264 D-sub.  You seem to be running LabVIEW 2020 (any other details you want to give us?) -- I opened your code in LabVIEW 2024 Q3 (64-bit).  If I chose the D-sub version, it immediately "errored out" (not sure why).  I didn't explore any further.

 

     You say "The sample rate is set to 25 kS/s with 15,000 samples."  I don't see that in your code.  Your code seems to be using a Sample Rate of 1000 S/s to generate a Sine Wave with a frequency of 10 Hz (so 100 points per cycle of sinusoid).

 

     Do you know anything about debugging LabVIEW code?  About using a probe to examine the data on a wire, Highlight Execution to watch the data flow through wires and show their values?

 

     Have you examined what the "data generation step" (from Output Array input to Waveform Graph output) does if run just by itself?  Do you have classmates or instructors to whom you could discuss your work?

 

Bob Schor

0 Kudos
Message 4 of 6
(55 Views)

Hi Ajay,

 


@AJAYY06 wrote:

what should i change when i use more that 1 channels to generate the analog Ac signal


Maybe you should start with reading the specs of your NI9264 module!

 

It clearly says "max 25 kS/s per channel", so why do you intend to go to 250kS/s???

 

And why do you need to start (atleast) 2 threads for the same/similar problem? Keep things in one place!

Didn't you learn that lesson 2 month ago?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(26 Views)

@AJAYY06 wrote:

what should i change when i use more that 1 channels to generate the analog Ac signal

 


Istead of chaging the index to 1, just expand the array so you see as many signal configurations as you like.

(Personally, I would right-click the cluster and "autosizing...arrange horizontally" e.g. as follows.

 

Here's how it would look for five signals.

 

I recommend some basic tutorials. 

 

altenbach_0-1766860306928.png

 

I cannot comment on the rest of your questions.

 

0 Kudos
Message 6 of 6
(22 Views)