LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

making a block diagram: sequential array stay a value

Solved!
Go to solution

Hi GerdW,

 

What I am trying to do is to make synthetic data for RF system. 

 

Attachment is the capture of my vi, and the problem is between 'signal_lvl' which is the output of formula node and 'RF signal' sub vi (red box).

 

The sequential data (5,4,...)  I mentioned above is just an example, but actual targe value is 1.2 for my vi. 

 

vi.PNG

 

As it shows, the output 'signal_lvl' gives a scalar for each iteration with 500 ms. 

 

The 'signal_lvl' changes from 2 volts to 1.08 volts as minimum and goes up to 1.5 volts. What I want to do is when signal_lvl value passes 1.2 volts then just stay it as 1.2 volts and feeds it to

 

RF signal sub vi.

 

Thanks,

 

 

 

0 Kudos
Message 11 of 13
(393 Views)

Hi coffee,

 

so you have a loop to attach a shift register on its border. You have a scalar value inside the loop as shown in the example.

 

Why don't you just merge your VI with the example? You don't need to change anything in the example's code...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 12 of 13
(390 Views)

Finally...

 

I didn't think about the outer FOR loop for shift register. 

 

It works well now.. I really appreciate your advise.

 

K

0 Kudos
Message 13 of 13
(381 Views)