LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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
Message 11 of 19
(1,024 Views)

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
Message 12 of 19
(1,018 Views)

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

0 Kudos
Message 13 of 19
(1,010 Views)

"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
Message 14 of 19
(1,007 Views)

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
Message 15 of 19
(984 Views)

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
Message 16 of 19
(969 Views)

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
Message 17 of 19
(957 Views)

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

0 Kudos
Message 18 of 19
(948 Views)

Here is an example of a typical entry file

0 Kudos
Message 19 of 19
(940 Views)