Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Set value!

Hello

 

I want to set the following input values to my device  

 

0.3, 0.4 ,0.5, 0.6, 0.7, 0.8 ,0.9 ,1.0, 1.5, 2.0, 2.5 ,3.0 ,3.5   with each interval of 2minutes. I tried to generate it using Ramp pattern for intervals of 0.3 to 1.0 using for loop.  But  is there any way to genenerate these values with the specifcied time interval with out using for-loop? 

 

Thank you!

0 Kudos
Message 1 of 4
(3,070 Views)

With 2 minutes interval you could have an array of values and in a while loop check the time 10 times per second and at the appropriate time send the value next in line.

greetings from the Netherlands
0 Kudos
Message 2 of 4
(3,056 Views)

Dear Albert Geven

 

Could you help me with it 🙂

I am new user to labivew.

 

Thank you

0 Kudos
Message 3 of 4
(3,054 Views)

It's not clear whether this is a LabVIEW question or an instrument control question. Seems like more of a LabVIEW question, so you would have gotten more visibility in the LabVIEW forum.

 

For your question, use the Elapsed Time Express VI in the loop. The example shown below just updates the string indicator when the specified time interval has elapsed. Just do whatever you need to do in the True part.

 

 

 

To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

0 Kudos
Message 4 of 4
(3,031 Views)