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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using NI 9184, Acquire two analog input voltages(force and displacement) and plot xy graph and write values into .csv file

hello guys, I have a NI 9184 CDAQ. Want to acquire two analog input voltage signals( ie. Force and distance) by using Load cell and a LVDT.  Following are my requirements and plz help me to find the solution.

1. Start acquistion of both the signals by an external Digital triggering.  

2. Stop acquisition when V1, V2 reaches

            14<V1<16 and V2<2,               Here V1 is distance Min.=0, Max=20; V2 is force Min.=0, Max=10

   and  Plot V1 versus V2 graph.

3. Write last value of V1 and V2 (single pair value ) into a.csv file

 

Thanks  in advance

                                                                             

0 Kudos
Message 1 of 3
(3,353 Views)

Hi power,

 

I have a NI 9184 CDAQ. Want to...

When you "want" something you need to program it!

 

What have you tried so far? Where are you stuck?

Mind to attach your current VI(s)?

 

1. DAQmx devices allow for external triggers…

2. Check the measured signals and stop the acquisition when your limits are reached. Use a XY graph to plot XY data…

3. There are file functions available to reach your goal!

 

It seems you should take the free online lessons offered by NI for LabVIEW beginners. And it seems you should study the example VIs coming with LabVIEW to explain most aspects of LabVIEW and DAQmx!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(3,329 Views)

Thank you for your reply. here i attached my work so far. generated XY graph with Distance vs force.

But my issues are,

1. here i am getting plots in discontinous manner, means in each loop iteration it plots a number of (x,y) values...here no. of samples acquired is 1000 . so it plots 1000 pairs of (x,y) values in one loop iteration and another 1000 sets in next iteration and so on. i want a continous xy plot, until it stops acquistion.

2. I want to stop the acquisition once it reaches/satisfy the following condition, 14<distance <16 and force<8 .
3. Write the result in a .csv file. ie.only one pair (x,y) is to be stored.

0 Kudos
Message 3 of 3
(3,319 Views)