LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Menu ring commands for GPIB

Greetings,

 

I want to create a concatenated strings as commands for GPIB connected instrument. The instrument is not really relevant in this matter, just the programming of the strings.
I thought I'd use while loop with cases for this, but I'd like to do it only using property nodes from the menu rings, indexing arrays etc, if possible. I am guessing there is going to be a lot of wiring..

 

I've attached the VI, check the  front panel to see how it is intended to look like.
I have 4 commands from the command ring with corresponding units to be selected in the parameter ring.
1st Command (FUNC): SUN, SQU, RAMP

2nd Command (VOLT): 5,2,1, 0.5, 0.2, 0.1

3rd Command (FREQ): 1000, 2000, 3000

4th Command (OUTP): Off, ON 

When selecting FUNC in command ring I want the property ring to read the array of SUN, SQU, RAMP and have those selectable in the property ring drop down menu.  The Send button sends when pressed, the strings into the concatenated string. 

Any suggestions or is while loop the way to go?
/Chris

0 Kudos
Message 1 of 2
(2,206 Views)

Hi Chris,

 

is while loop the way to go?

Well, you need a while loop anyway to have your VI run for more than just some µs…

And you surely will need shift registers!

 

Why not just use 4 rings for your 4 commands? Why go the hazzle to redefine UI-elements based on other selections?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(2,202 Views)