01-14-2014 05:29 PM
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.
01-14-2014 06:16 PM
Attach your VI so we can see what you've done.
01-14-2014 06:56 PM
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
01-15-2014 07:52 AM
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
01-15-2014 08:58 AM
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.
01-15-2014 10:53 AM
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?
01-15-2014 10:58 AM
Hi Camerond, I need to learn some something about error handling to understand your guide. Thank you for the recommended learning materials.
01-15-2014 11:28 AM
01-15-2014 03:10 PM
Really? Ok, let me check.
01-16-2014 05:44 PM
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