LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial transmission of only string once


Ref: Basic Serial Write and Read example in Labview 7.1

The data string will be retransmitted again and again when the write
button is turned on in this example.

I want to transmit the data string only one time (on the edge) when the
write button is turned on.
I this case the function of the write button must not be changed.

In other words I want to transmit a data string only one time when then
transmit case is activated.
How can this be done?

Regards

kas

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

Hi kas you could use several options one would simply change the mechanical action of your button for latch, with this it will only go once

Another option is use the First Call? vi check it works once.

Also you could use a shift register as a flag to only execute the section once

I hope this helps

Best Regards

Benjamin C
Principal Systems Engineer // CLA // CLED
Message 2 of 3
(3,605 Views)

The example does not do a VISA Write continuously unless you click on the run continuous button and this is not a normal way of running a VI. It will run only once if you just click the normal run button. However, if you want to modify the VI so that is running and you can just click on write whenever you want, then you should create a while loop. You can then add an event structure and have a value change event for the write and read Booleans. You could also just place the write and read cases inside the while loop without an event structure but you would have to change the mechanical action to a latch type (i.e. Latch when Released).

Message Edited by Dennis Knutson on 09-25-2006 11:12 AM

Message 3 of 3
(3,606 Views)