Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I m not getting continuous readings from my device

Solved!
Go to solution

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

0 Kudos
Message 1 of 17
(4,489 Views)
Pretty hard to recomend changes to your code when you don't provide the code but it sounds like you can display the results in an array instead of scalar indicator. Or, use the concantanate string function with a shift register to append the new result to the previous
0 Kudos
Message 2 of 17
(4,486 Views)
Solution
Accepted by topic author mpshridhar

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.

0 Kudos
Message 3 of 17
(4,482 Views)

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.

0 Kudos
Message 4 of 17
(4,476 Views)

Ok Sir,

 

This is my VI,

 

Check where to change

0 Kudos
Message 5 of 17
(4,473 Views)
reply me soon sir..........
0 Kudos
Message 6 of 17
(4,466 Views)

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?

 

Message Edited by Dennis Knutson on 03-18-2009 03:26 PM
0 Kudos
Message 7 of 17
(4,448 Views)

Thank You Sir,

 

I will check it out now.

0 Kudos
Message 8 of 17
(4,431 Views)

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.

0 Kudos
Message 9 of 17
(4,426 Views)

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.

0 Kudos
Message 10 of 17
(4,421 Views)