annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

mouse down help

Have your menu do an index array on the array that you have now rather than doing what you are currently doing.

0 Kudos
Messaggio 11 di 19
1.172Visualizzazioni

Hi,

 

use an autoindexing FOR loop instead of your TWL and forget about that ReshapeArray in front of the loop...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Messaggio 12 di 19
1.166Visualizzazioni

what do you mean by the array that i have now?

0 Kudos
Messaggio 13 di 19
1.158Visualizzazioni

"ReshapeArray" is a function found on the array function palette - and in your VI...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Messaggio 14 di 19
1.155Visualizzazioni

Im going to change things up a little bit, so could use a little more help. Instead of having a menu, i want to just create 2 more rows on the excel file. What I want to happen is that when you run the gui, labview picks the first row from the excel file, reads in the valve # and intensity for the standard, and same for the odor.  What else would I need to do to make this happen?

0 Kudos
Messaggio 15 di 19
1.132Visualizzazioni

First of all, your VI does NOT read an excel file in any shape or form, it simply reads a comma delimited text file. Don't confuse the two. (Of course excel can also read .csv files, but that does not make it an excel file).

 


@HePlayGame wrote:

What I want to happen is that when you run the gui, labview picks the first row from the excel file, reads in the valve # and intensity for the standard, and same for the odor.


Well, you should simply take away of lot of the existing code, since this is a simpler task. Where did you encounter problems?

This still does not sound like a complete specification. What should happen after it reads the first line? (program exit? wait for input? Go to the next line in a button press? etc.)

 

 

0 Kudos
Messaggio 16 di 19
1.117Visualizzazioni

My problem is that only the last line of the csv file is being read and implemented.  I want labview to read the first line, which contains A valve number for the standard, an intensity for the standard, and a valve number for the adjustable odor.  These numbers are then used in labview to select the appropriate valve using the Daq, turn it on for the standard, and allow me to adjust the adjustable.  When I press the next button, I want the second line to be read, and so on.

0 Kudos
Messaggio 17 di 19
1.105Visualizzazioni

Why don't you also show us a typical input file?

0 Kudos
Messaggio 18 di 19
1.096Visualizzazioni

Here is an example of a typical entry file

0 Kudos
Messaggio 19 di 19
1.088Visualizzazioni