ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D array to table

Hi all

I would like to fill a table from 2d array (generated by while loop)
for every value of strain(manually) the vi should wait a user to change stain manually and then display the voltage corresponding for each value of strain.

does s.o can help me please
0 Kudos
Message 1 of 4
(3,094 Views)
I don't understand what exactly you want to do. Please give more descriptions of your problem.
0 Kudos
Message 2 of 4
(3,094 Views)
Hi

I just would like to read from the votlmeter every time i change manually(not automaticaly, because i need at least one minute to change the weight the pressure value) so i would like to send data point by point and the user should ok one button or a message box to measure and display the next value of voltage.

Nbre pressure(atm) Voltage
1 2 0.5
2 4 (in this field mesage box
appear and ask the user
"are you ready to measure the
output"
3 6 .......

Excuse my english and thank you for your help
0 Kudos
Message 3 of 4
(3,094 Views)
The functionality you are looking for can be done with events as well as loops. The loop solution: Inside your while loop, you place a second while loop that waits for the user to press a button. This way the outer while loop waits on the inner loop to terminate. Be sure to put a wait in the inner loop so that the VI will not consume all of your cpu resources.
To pass your array to the next itteration of the while loop, use a shift register. Right click on the border of the while loop and select add shift registers. The information sent the register on the right will be in the register on the left in the next itteration of the loop. This way you build your array in pieces and pass the current biggest piece around with the shift regis
ters. Search the LabVIEW shipping examples for sampe VI.
You can also run in highlight execution mode (the light bulb) to see what executes when in your program.

Jeremy Braden
National Instruments
0 Kudos
Message 4 of 4
(3,094 Views)