LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do we save three 1D arrays in while loop as an excel file? I used build array, waveform. I could not make it work.

I have three separate 1 dimensional arrays in a while loop. I need to combine these arrays and save as a excel file outside the loop.
My second question is that is there any emergency STOP button in Labview so that when I press that button, it cuts all the power going to the system. Thanks...
0 Kudos
Message 1 of 5
(3,076 Views)
Hi Baho,

i am attaching a vi which combines three 1d array into either 1D or 2D array as per the selection from the front panel & writes into the file type you desire.

For emergency stop button, you have to program it. May be u can use event or parallel while loop or occurence concept to simulate it.

Regards,
Nirmal
0 Kudos
Message 2 of 5
(3,076 Views)
Use insert into array rather than build array.
Wire up the column input as opposed to the row input.
The emergency stop is a difficult one to put on a panel.
The way I found was to have your single emergency stop button as a local variable in every while loop and or it into the stop button.
Other than that, use the stop button on the top panel!
None of these work if you use the dialogue prompts!
0 Kudos
Message 3 of 5
(3,076 Views)
Just a comment on the Stop button.

It's not really a good idea to rely solely on a software emergency shutdown. Especially if the shutdown is to prevent some type of hazardous condition to the people running the test. The problem is that if your application or PC in general is having some type of problem, it may not be able to shut everything down as needed.

You should always have a mechanical �Big Red Stop Button� that you can hit to cut power to everything. In addition to the button, I usually do have LabVIEW monitor things and if conditions are not looking good, have it automatically shut things down. This has always worked good, and I can�t remember any time I�ve actually had to use the big button, but it�s nice to know it�s there.

VERY IMPORT
ANT:

Using the �Abort� button on the LabVIEW toolbar is NOT the thing to do. This stops your application where ever it is in its execution and does not allow it to finish or execute any shutdown code you might have put in. A �Kill� button on the front panel works well. I�ve put a single Boolean terminal in its own little While loop to monitor it. It usually writes to a digital line that�s holding a relay on that will cut the power.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 4 of 5
(3,076 Views)
I'm not sure of your exact application (i.e., if you're needing a true emergency stop), but a true E-Stop to shut off power to the system should be implemented in hardware with the algorithm sensing the E-Stop press and reacting appropriately. Implementing an E-Stop in softare leaves your E-Stop capabilities subject to computer malfunction (hangs, etc). Suitable buttons are commercially available and should rather easily connect with your existing controls.
0 Kudos
Message 5 of 5
(3,076 Views)