LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hi everybodylab view

hi everybody
 
Current, I'm rushing a final year project and is in need of assistance urgently, as the deadline is just round the corner. Does anyone knows how to create an application running from -5 to 105 and from 105 to -5 again?
0 Kudos
Message 1 of 10
(3,859 Views)
 

I am not going to write your program for you. If this is a serious project then I'm sure you'll need to write some more complex programs and you will just have to learn how to do that. As for pointers for how to do this, try creating a while loop which will run until your condition has been met. If you just want to get it done faster, you could probably use 2 seperate loops for the 2 seperate conditions. You can also try looking up "shift registers" to see how they can help. You can find many examples for how to work with LabVIEW in the Help>>Find Example menu item.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 2 of 10
(3,848 Views)
Probably you should give more detail on the requirement, rather than the criticality and urgency you are facing! Smiley Very Happy
 
80% your mail describes your urgency and 20% the real problem
 
also tell us, what you have done till now. If you are struck up somewhere, we could help you

Message Edited by devchander on 10-13-2006 03:08 AM

0 Kudos
Message 3 of 10
(3,847 Views)
Really thanks for all of ur advices. I  have attached the diagram which my group member have done so far. The block diagram we created is using for loop and is able to count from -5 to 105 only. What can we do to make the program runs back to -5?
0 Kudos
Message 4 of 10
(3,836 Views)
Do as shown in the vi
 
Regards,
Dev
0 Kudos
Message 5 of 10
(3,826 Views)
Learn how to use shift registers.  It is easier than doing all the math.  I don't want to write the entire application for you since you are a student.  So I have given you a start to show how shift registers work.  After the loop executes one iteration, the shift register value on the right is transfered to the left, and the loop executes again with this new value.  This happens over and over until the loop stops.  This code will count up to the End value.  Now it's up to you to do the rest.  Hint: use a case structure to decide when to subtract instead of add and when to check the stop condition with <= instead of >=.
 
 
 

Message Edited by tbob on 10-13-2006 10:35 AM

- tbob

Inventor of the WORM Global
Message 6 of 10
(3,790 Views)
hey!! My group have overcome the obstacle. Thanks again for ur encouragement and hints to get us moving.
 
Right now, is it possible to use labview  to capture data/readings from a fieldbus device in every interval of 0.3 difference into a table format, when the application is running from -5 to 105 and 105 to -5? If it is possible, any guides on which function is more suitable for us to use?
 
 
 
 
0 Kudos
Message 7 of 10
(3,741 Views)
Why do you use the formula box?
It is way faster (and your grade should be higher) when you use native LV primitives, you are now doing something Rube-Goldberg alike...
This is better:

Now in every iteration you should read the cFpoint fieldbus

Ton

Message Edited by TonP on 10-16-2006 01:32 PM

Message Edited by TonP on 10-16-2006 01:35 PM

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 8 of 10
(3,738 Views)
Cool. I will edit the diagram.
 
Do u know how to capture data/readings from a fieldbus device in every interval of 0.3 difference into a table format, when the application is running from -5 to 105 and 105 to -5?
0 Kudos
Message 9 of 10
(3,720 Views)
Hi Jurong,

I don't have any experience with Fieldpoint.
But can you read something  at all from the fieldpoint (in MAX (measurement and automation explorer))?

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 10 of 10
(3,711 Views)