LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulation and Testing my results

The attached file is supposed to receive 3 signals from the microcontroller via serial communication in the format
sig1sig2sig3
Is there a way I could simulate and test the file without connecting it to the hardware???
0 Kudos
Message 1 of 4
(2,746 Views)
Easy. Take out the VISA Configure and VISA Read VIs and the things conected to them. Change Read Buffer indicator to a control and type in test data.

Alternatively, if there is a lot of data that you do not want to re-type, put a Read Characters from File VI in place of teh VISA Read and get your test data from a text file.

Lynn
0 Kudos
Message 2 of 4
(2,746 Views)
Or, write a VI that outputs to com2 and wire com2 to com1 with a loopback cable.
0 Kudos
Message 3 of 4
(2,746 Views)
Hey Lynn
Thanks for your response.
I did understand what you are trying to say but that only enables me to do the test once
If you notice my file, I have to read the following format in a while loop
sig1sig2sig3
I am trying to find a way whereby i can simulate multiple reads.
Also, I want to channel all the incoming data via "serial read" so as to demonstrate the whole file working as a whole entity (for my presentation)
I am quite aware that there is a "random number generator" and "read from spreadsheet" that could help me accomplish this.
But i just cant figure out the whole logic.
0 Kudos
Message 4 of 4
(2,746 Views)