Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add decimal point in out put data

Hello Sir,

 

I m working on interfacing devices using labview 5.1 version.

 

In that I've to get continuous data. I m using Micro Ohm Meter to measure resistance.

 

I've used read buffer as out put. In that it will show only one reading for 10 seconds..

 

Another problem is

 

My device showing 33.52 ohm resistor value..

 

but in my read buffer command shows 3352 without decimal point.

 

I know here some thing wrong with datatype, for my device port settings I've used avial number from serial port settings. In that it used

 

unsigned long integer type. I don't know how to use floating point to get readings as my device shows like 33.52.

 

If possible send me the PDF of user manual for labview 5.1 version.

 

thanking you

 

With regards

 

Shridhar

0 Kudos
Message 1 of 43
(6,292 Views)

maybe you need the interface description  of your device not the labview definition.

Are you sure that your device is sending a decimal point or that it simply needs a divide by 100 to get the correct reading in LabVIEW.

Some devices send data without decimal point for simplicity.

greetings from the Netherlands
0 Kudos
Message 2 of 43
(6,284 Views)

Sir,

 

I will use your idea only, if i change the value of resistor from 33.33 to 3.333 I've to devide by 1000.But its not good for me.Any way i got the solution for my decimal point.Thank You.

 

I will be in touch with you for my labview problems.

 

Thanking you

 

Shridhar

0 Kudos
Message 3 of 43
(6,274 Views)

Sir One Problem,

 

How to save our Data to direct folder while on running the VI it must ask the path.Any solution for this problem Sir.

0 Kudos
Message 4 of 43
(6,248 Views)

Provide the path. You will always get prompted for a path if you have a blank path wired to the file write functions.

 

You can use a front panel path control or a constant on the block diagram. You can even dynamically create the path. It all depends on what you want.

0 Kudos
Message 5 of 43
(6,245 Views)

No Sir I've used for loop in my VI, I tried to give path name to save data in file.But its asking for each second data should be replaced in the same file,why this is happening sir.My task is to store data for 10 seconds means if i gave for each second it must take 10 readings in a same file.Which commands I have to use.

 

Reply me Sir

0 Kudos
Message 6 of 43
(6,241 Views)
Which ever file function you are using (I don't know because you did not provide that information), you need to set it to append data. For example, Write to Spreadsheet has an Append? input. Turn on Context Help and read the descriptions of the file functions you are using or post the code.
0 Kudos
Message 7 of 43
(6,237 Views)

Sir,

 

I used open/write/close function to save my data.After 10 readings(10 seconds in my code) it will ask where to save.But if I tried to open later my PC showing this is not a VI try another one.

 

I don't know whether this problem is due to my device,first of all it is not sending decimal point. It is sending unsigned long integer type only so that I m missing decimal point in my out put.

 

Second problem is, saved file is not opening.

 

If You have any suggestion for this please post it. 

 

Thanks with regards

 

Shridhar

0 Kudos
Message 8 of 43
(6,202 Views)

It would be so much simpler if you had just posted your code.

 

So, doing some guessing, check the pos mode input of the write and make sure you don't have it set to start. That would overwrite the contents.

 

And what is the format of the file you are saving and what are you using to open it. 

 

I don't understand at all your statement 'if I tried to open later my PC showing this is not a VI try another one'.

0 Kudos
Message 9 of 43
(6,195 Views)

Respected Sir,

 

Now I m trying  to interface keithley 617 electrometer using Labview and GPIB card. For that we have created code. Using this we want to measure continuous readings form 617.

 

We are getting reading from 617 meter. But we want to measure current for that we have connected 1 kilo ohm resistor to the device using BNC cable(According to Keithley manual) voltage range is -1 to 1 increment  of the order of .1 means after -1 automatically labview must take -.9 next -.8 next -.7 till up to 1 after that it must stop collecting data.

 

I m going to attach my code. Please try to solve according to our need.

 

With regards

Shridhar

0 Kudos
Message 10 of 43
(5,988 Views)