03-18-2009 12:49 PM
Respected Sir,
I m Shridhar doing my Msc in Karnatak University Dharwad, Presently I m working on Interfacing with Devices using Labview 5.1 version.
In this I've created VI for my Motwane's Micro Ohm Meter which I m using for interface as well as to get resistance value which we have connected to our device.in this my task is to get contenuous readings with respect to time.
Means for 1 sec = 10.102 ohm
2 sec = 10.103 ohm
3 sec = 10.102 ohm
but this type I m not getting.I m getting only one value means 1 sec = 10.102 after the values over lap on the first reading so first reading will disappear it becomes 2 sec =10.104 ohm.
I need help what change shold i do in my VI.
Waiting for your reply
Solved! Go to Solution.
03-18-2009 01:24 PM
03-18-2009 02:10 PM
Sorry Sir,
I m not perfect in creating VI so first I used Instrumentation and Measurement of NI. I created VI similar to that test panel but there my device will give continuous readings.But in our VI its not giving.
And Sir according to You how to use shift regiter or concatination in my VI.Tell me the path where I ll get these two commands.
03-18-2009 02:34 PM
I'm not sure what you mean by 'Instrumentation and Measurement of NI'. Are you referring to the Instrument I/O Assistant? Instead of someone trying to guess what you are doing, just attach your code. There is an option ('Add Attachments') to do that right below the message body.
The shift register and concantanate string are basic functions in LabVIEW. The shift register is an object that you can add to a while or loop. A feedback loop is similar. The concantanate string function is on the string palette. These are part of learning LabVIEW fundamentals. There is a 3 hour and a 6 hour class that would probably be of great benefit for you.
03-18-2009 03:08 PM
Ok Sir,
This is my VI,
Check where to change
03-18-2009 03:27 PM
03-18-2009 04:25 PM - edited 03-18-2009 04:26 PM
I can't save for 5.1 so I attached a picture of a modification to your imp visa VI. The most basic change was to use a shift register and the build array function so you get all of the results. I also moved the VISA Open and VISA Close to outside the loop. Your reading of the com port settings seems silly. You would normally want to set them. I don't remember much about 5.1. Is there no function called VISA Configure Serial Port?
03-19-2009 02:41 PM
Thank You Sir,
I will check it out now.
03-19-2009 04:45 PM
Sir,
I tried to do as your changes in my VI, evrything is worked out but finally I got two problems
1) within shift register connection one array is came know that I m not getting.Which one you've used in Arrays(in Functions).It is telling that build array is not connected.
2) VISA close is outside LOOP in your VI. I m trying to keep outside whenever I will try to connect from VISA read wire show continuity up to loop border.From loop border to VISA close it will show broken wires.
Sir tel me what are those four square boxes on the border of the loop which connects from left VISA OPEN and from right VISA CLOSE.
03-19-2009 06:43 PM
I don't understand question 1. Post your code or an image with a circle around the function you have a question about. For question 2, when a wire leaves a for loop, the default is that it is auto-indexed into an array. You just have to right click on the exit tunnel and select 'Disable Indexing'. The blocks are called exit and entry tunnels. They automatically appear when you enter or leave a loop.
You really need to find a basic LabVIEW tutorial but unfortunately, I don't know where you could find one for such an old version of LabVIEW.