LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

(select a measurement and display a result) change to non-selection and display all results -- How to do?

Hi, I am new in Labview and learned basic stuff only.  I have an LDX-3200 current source. I have tried many times and still can't get it.(i'm not sure that it's visa problem or others.)

my question is the laser measurement can only displayed 1 result one time by making selection(see attached picture). Can it be modified( modify vi in labview) and display 2 or more results in front panel without making choices? 

another picture is block diagram of select a measurement and display a measurement. I just want to change to non-selection and display all results.

 

Thanks a lot...

Download All
0 Kudos
Message 1 of 17
(4,452 Views)

It would probably work if you put the 'Measure LAS' SubVI in a loop (e.g. for loop) to take one of each reading. The output of the loop will be an array with your 4 measurements which you can then put into the graph.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 17
(4,416 Views)

Hi Sam_Sharp,

 

Thanks for your reply,

I tried to insert for loop and not sure it's correct or not (see attached pic). Futhermore, i'm not sure how to put array on output(keep showing error).

any idea?

 

Thanks.

0 Kudos
Message 3 of 17
(4,372 Views)
None of that code is correct. A zero wired to the N terminal means the for loop iterates zero times. What you want to do is create an array of the commands and pass that into a for loop with just the VISA Write and VISA Read/numeric conversion inside. The string array is outside the loop. Pass that through the loop and to the VISA Write. The numeric is passed out of the loop and that will create a numeric array. Use shift registers for the resource name and error wires.

For loops and automatic handling of arrays is basic LabVIEW. There are numerous free tutorials available that you should take advantage of.
0 Kudos
Message 4 of 17
(4,363 Views)

Hi Dennis_Knutson,

 

Thanks for your reply and sorry for my stupidity. Please advise if it is correct or not.

 

Thanks

0 Kudos
Message 5 of 17
(4,330 Views)

Attached picture is another result.

 

Thanks 

0 Kudos
Message 6 of 17
(4,318 Views)
Much better. Wiring up the N terminal does nothing, though. It will iterate only four times - the number of elements in the array.
0 Kudos
Message 7 of 17
(4,300 Views)

Hi,

 

How to solve this error? thanks...

0 Kudos
Message 8 of 17
(4,270 Views)
Are you sure that address is correct? Which command does the error happen with? Does the error happen with the original VI?
0 Kudos
Message 9 of 17
(4,255 Views)
Hi Dennis_Knutson,
This error happen at (for loop display result 2.png)Measure Las.vi ( sub vi). Others sub vi don't have this error. Original vi working perfectly ( no error). Thanks.
0 Kudos
Message 10 of 17
(4,235 Views)