cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

increment HOW TO help

Well can anyone help me:

 

need to increase number from 1 to 10, for each 1 second delay; and output must be double("orange wire")!

 

Can anyone make scheme?

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Mensagem 1 de 52
4.822Exibições

This should be fairly straightforward.  What have you tried?  What else is going on in your program during the delays?

 

Hint: shift register.

 

Lynn

0 Kudos
Mensagem 2 de 52
4.812Exibições

I will set with voltage from 0-10 (V), then in each 1 second i will measure current.

 

I only need double "output", so from 0-10, and 1 second time between numbers...

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Mensagem 3 de 52
4.801Exibições

Please post your code. You will learn more by finding out what you did wrong rather than just being given the solution.

0 Kudos
Mensagem 4 de 52
4.798Exibições

This is so basic that no one wants to write it for you.  We get bombarded by such basic questions way too much.  You really need to learn Labview.  There are free tutorials online at the NI website. 

 

In a text based language:

For i = 0 to 10

  Write i to power supply

  Wait 1 second

  i = i + 1

Next i

 

Or in C:

for (i=0;i<=10;i++)

  { WriteToPS(i);

     Delay(1000)  }  /*Delay is in mS.*/

 

Labview has an increment function to do i++.

Labview has a For Loop.  Use the shift register hint.

Labview has a Wait function.

Put them all together.  You can do it.

 

 

- tbob

Inventor of the WORM Global
0 Kudos
Mensagem 5 de 52
4.775Exibições

Well is not problem that I didn't try, I have problem because need for ouput 64 bit double

 

20749iE30422942AB20B1B

 

Any help wit this..?

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Mensagem 6 de 52
4.767Exibições

Right-click the blue '0' constant.  Change representation to DBL.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Mensagem 7 de 52
4.764Exibições

You mean this? I cannot change it 😞

 

20751i55B78BD7DC05CFBC

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Mensagem 8 de 52
4.755Exibições

Changing to DBL will not fix the problem that the for loop is creating an array and you are trying to connect to an input that expects a scalar. What are you trying to connect to? Your image does not show this critical part. Why post a partial image instead of the actual VI? Trying to help when you provide information in small bits and pieces is not an efficient way to get help. Most of us are volunteers that may stop volunteering if we have to keep guessing.

 

As far as changing the data type, you really don't know the fundamentals. Right click on a constant and select 'Representation'.

0 Kudos
Mensagem 9 de 52
4.747Exibições

There is something you haven't posted that is causing issues but we can't see it.  Also, you still have a fundamental problem because you're not using a shift register to pass your incremented value around to the next loop iteration.  Here is one solution (see pic).

 

EDIT:  Yuck, I should have de-selected the loop before I took a screenshot but I'm sure you get the idea.

 

Please take tbob's advice and do some LV tutorials.  You have to know this basic stuff like the back of your hand before you can go on to more advanced coding.  Good Luck!

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Mensagem 10 de 52
4.736Exibições