02-21-2008 04:15 PM
02-22-2008 05:52 PM
02-23-2008 03:41 PM
02-26-2008
10:26 AM
- last edited on
04-17-2025
04:46 PM
by
Content Cleaner
Hi,
Seems like you are trying to output a voltage between 0 and 5V and from what I understand you also want to be making some measurements at the same time? Looking at your code, it does not seem like you have any kind of data acquisition code yet. Do you have the DAQmx driver installed already? If you do you should be able to use the regular DAQ assistant to get started. You can use one DAQ assistant to set up an analog output task and another one to set up an analog input task. Using that you should be able to output and input voltage at the same time.
If it is an analog input that you are trying to get, you should also be able to make frequency measurements using Express VIs in LabVIEW, specifically the Spectral Measurements Express VI.
Hope that answers your questions. Here are a few links on Data Acquisition that you might find helpful.
10 Functions in NI-DAQmx
Complete DAQ Tutorial
Which DAQ System Is Right for You_
Regards,
02-26-2008 01:02 PM
Hi
Thanks Raajit.That was great help.I am trying to output a voltage between 0-5V.I havent got the DAQ USB yet so i haven't put the DAQ code in the program yet.Regarding the measuements,these are not really measurements.I am trying to display the freq and amplitude of the breathing conditions i have selected and displaying them on chart instead of measuring them and displaying them.i.e. the freq and amplitude of the breathing options will be specified in the code.
Could some show me an example of a code where i could select an option with specific conditions (like i have three breathing optons here) and the corresponding freq and amplitude shows up on the chart.
02-28-2008
07:30 AM
- last edited on
04-17-2025
04:47 PM
by
Content Cleaner
Hi,
There are a bunch of options that you could try. It sounds like all you need is a case structure. With a case structure, you can select different sections of code based on user input or programatic calculations.
You might want to take a look at this link for more information on case structures.
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/structures/case-structure.html
Something else you could try is using tabs on your front panel (three for all of your breathing conditions). You can then select the appropriate case based on the tab that is selected on the front panel.
If you are trying to get a specific plot to show up on your chart instead of another plot, then you might want to try using property nodes inside your case structure. You can just select an active plot and then select the visible property node and set that to visible or not visible. 
I am not sure if that answers your question. Please let me know if there is something else that you are looking for.
Best Regards,
Message Edited by Raajit L on 02-28-2008 07:31 AM
03-01-2008 08:26 PM
03-03-2008 03:14 PM - edited 03-03-2008 03:15 PM
amatuer_actuator,
You can use the “In Range and Coerce.vi” to detect a specific range for your dial control.

Take a look at the example I have posted along with this forum and let me know if something is unclear.
03-03-2008 05:18 PM - edited 03-03-2008 05:19 PM

03-04-2008 01:05 PM