LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ramp signal generation using NI-9263 module (with selectable number of ramp)

Bonjour tout le monde,

Je viens demander un peu d’aide. J’ai commencé LabVIEW cette semaine et j’essaie de générer une rampe que je renvoie ensuite sur un NI-DAQ 9263 (je lis la sortie avec un oscilloscope).

Mon objectif serait de pouvoir choisir combien de motifs de rampe j’envoie, de définir les valeurs de Vmin et Vmax, et à terme de pouvoir sélectionner si la rampe est uniquement positive, négative, ou alternée.

Le problème, c’est que même si j’arrive à générer correctement la rampe (le signal apparaît bien en sortie du bloc "waveform"), le DAQ lui ne sort rien — aucun signal n’est visible sur l’oscilloscope.

Est-ce que quelqu’un aurait des idées ou des pistes à me proposer ?

Merci d’avance pour votre aide ! 😊 

PS: j'utilise un cDAQ-9178 pour connecter mon DAQ

 

Hi everyone,

I’m reaching out for a bit of help. I just started learning LabVIEW this week, and I’m trying to generate a ramp signal that I send to a NI-DAQ 9263 (I’m reading the output using an oscilloscope).

My goal is to be able to choose how many ramp patterns I send, set the Vmin and Vmax values, and eventually select whether the ramp is only positive, only negative, or alternating.

The issue is that even though I can successfully generate the ramp (the waveform looks correct at the output of the "waveform" block), nothing comes out of the DAQ — I see no signal on the oscilloscope.

Does anyone have any ideas or suggestions?

Thanks in advance for your help! 😊

P.S.: I’m using a cDAQ-9178 to connect the DAQ module.

Download All
0 Kudos
Message 1 of 6
(137 Views)

Are you trying to generate this signal only once or do you want it to persist on the oscilloscope? You did not give much information on what the ultimate goal of this project will be.

Tim
GHSP
0 Kudos
Message 2 of 6
(92 Views)

Your code stops the task before the requested number of samples has been generated.

dsbNI_0-1744393669112.png

 

First, wire the samples per channel to generate to the DAQmx Timing VI.

Second, insert DAQmx Wait Until Done VI after DAQmx Start and before DAQmx Stop. 

modified generation code:

dsbNI_0-1744394398488.png


acquired signal:

dsbNI_2-1744394278430.png

 

 

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
0 Kudos
Message 3 of 6
(80 Views)

 My goal is to generate a ramp with a minimum and maximum value (Vmin and Vmax), and to choose whether it's increasing (positive) or decreasing (negative), as well as to select the number of ramps to generate. For example, if I choose four, then four ramps are generated

image.jpg

0 Kudos
Message 4 of 6
(52 Views)

I will try that on Monday ( I don’t have the DAQ with me now) thank you very much, I hope it will work

0 Kudos
Message 5 of 6
(51 Views)

I tried it and it does work BUT it take a long time to be create by the NI-DAQ (5s) and when it's done it doesn't go to zero any idea??

0 Kudos
Message 6 of 6
(7 Views)