LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how save each data from a single source into each data display

Hi I am new to LabVIEW. I have a question about data display or saving from a single port (hardware).

 

I use APx (Audio Precision) as data communication with a uC. Through the APx' Aux_Control Output, I send ADC operation to the uC, and then through The Aux_Control Input, I read all the ADC result from the uC and display each data with its indicator. But when I run the code, all the indicator display the lats ADC data. My question is how I can latch each data from the single data port and display it separetely.

0 Kudos
Message 1 of 10
(3,629 Views)

Attach your VI so we can see what you've done.

 

Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome
0 Kudos
Message 2 of 10
(3,612 Views)

I am sorry that I for got to attach my LabVIEW code.

 

 

 

I tride to paste the picture that shows the parts about my question, but it doesn't work to post, so I also attach it with the code for your consideration. In the code, I use may sequence structures (it seems not to be recommended use frequently), because I need to wait uC and DUT processing time. It seems the only I could use. Should you have better ways to replace the sequemce structure in my code, please also let me know.

 

Thank you very much in advance,

 

Ning

Download All
0 Kudos
Message 3 of 10
(3,599 Views)

One little bit about your sequences. If you route your dataflow with error wires (as you did in the pic), the sequence structure is redundant - one step cannot start until the one(s) before give it all the data it needs. As for those wait steps, I'd suggest making a mini-VI which just includes the wait timer (use a control or constant for the wait period) and an error in - error out wire at the bottom, then inserting it where you need. Makes things much tidier and you can make an icon for the VI which shows you what's going on with a glance (see attached).

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 4 of 10
(3,546 Views)

The Time Delay function is already a wrapper around a Wait (ms). The only difference is that Time Delay uses seconds and not milliseconds.

 

In the VI, you are sending a single command and then doing 3 reads. Are you sure that is correct? Typically, you send a command requesting a measurement and then do a single read. For another measurement, you would do another write/read. 

0 Kudos
Message 5 of 10
(3,527 Views)

Thank you, Dennis,

 

I use LV send command (per the AuxControl Output in APx Instrument) to the test control uC to measure the working voltages on the DUT, and then the uC send the all the voltages to APx (Per the AuxControl Input), I want to display all the voltages on the Front Panel. So it need some thing like latch or variable to save each of the data and display it on an indicator, how can I do it with LabVIEW?

0 Kudos
Message 6 of 10
(3,511 Views)

Hi Camerond, I need to learn some something about error handling to understand your guide. Thank you for the recommended learning materials.

 

 

0 Kudos
Message 7 of 10
(3,505 Views)
It is latching the result of each query to the indicator. The query is identical for each indicator so either you need a different query or your read is incorrect.
0 Kudos
Message 8 of 10
(3,490 Views)

Really? Ok, let me check.

0 Kudos
Message 9 of 10
(3,467 Views)

Hi Dennis,

 

I just finished the check for the data reading and display with longer waiting time (reading rate) and I got each of the data and display all of them when finish the reading.

 

Thanks again for your answer,

 

Ning

0 Kudos
Message 10 of 10
(3,414 Views)