I think I may have got it.
Thanks though!!
your serial port will be the raw integer numbers. If you
are using floating point numbers (singles) then you should probably
check to make sure that your instrument doesn't expect strings instead
of the binary representation of the floating point number. You can
convert a floating po
There are two ways. Set the string control to Hex Display and enter
your number in hex and write that value, or use a numeric control of
U8 data type, type cast that to a string, and write that out the port.
i want to send 8 bit nos. 0-255 to serial in binary form. When i tried
to type "250" to the write buffer of VISA write, the vi seems to treat
the no. 250 as three no. 2,5 and 0.
All i want is when i send "250" to VISA write, the vi will convert it
as 1010 to serial port
If it's not too big, can you attach one of the .bin files you created?
I had a look at your modified data reader VI from a previous post and
didn't see anything obvious in the code but it's pretty hard to debug
anything without a file to input. When you run the reader, do you see
data displayed on
That should work. Please explain what the problem is. Is the file
empty, formatted wrong, or what? Kind of hard to help when you don't
say what's broken.
take a look at the high speed data reader.vi... you shoul dbe able to
adapt that to do what you want...
Dan
How do I get the binary data file from the "High Speed Data Logger.VI"
into an Excel spreadsheet? I don't want it in binary form- I want it
converted to ASCII or some readable form.
I am using Labview 6.1. ActiveX isn't working on the computer I'm
using so I can't us
I am sampling two channels in continuous mode using labview basic
version. I would like to take the two arrays of values as I am
sampling them and write them out in block mode to a binary file.
What's the best way to do that?
Thanks for the info. You are correct on the I16 w/ 4 bits wasted on
each sample, and the data are not packed.
Everything seems to work just great now!
Cheers,
Nate
It's not clear to me - are you reading the data from the A/D, or are
you reading the data from files?
If you're reading from files, then you have to know the file format.
I would GUESS that the files would be an array of I16s - signed 16-bit
integers, with four bits wasted on each sample. It's PO
Here's the scoop. I'm collecting large amounts of binary data using
non-NI hardware (blasphemous), and need to figure out how, within LV7,
to convert the binary data to decimal data.
Specific info:
A/D is 12-bit
Each binary file contains data from 1 channel
Binary data stored in lit
Wire the two numbers to the Join Numbers function found on the
Advanced->Data Manipluation palette. Then wire that number to the
Number to boolean function.
If the numbers are strings you can simply concatinate the strings and
then type-cast it to an integer which you send to the number to
boolean
I have two number which representation is binary(8 digits each one)but
I want to work with these numbers using these like an array of 0 and
1( 16 elements, 1D), how can i do it?
I did it in a way that I think that it is not very "elegant". I have 2
strings that contain an hex numb
Use Number to Boolean array.
"jorge" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> Hello, I am very new to lab view 7 and I need to do the following for
> work. I am using the rs232 serial port on the computer to communicate
> with a prototype circuit. The communication is a
Sent: Wednesday, February 18, 2004 2:46 PM
To: David Macleod; [EMAIL PROTECTED]
Subject: Re: Converting integers to binary
At 15:47 + 02/18/2004, David Macleod wrote:
>Hi there,
>
>I'm a new LabVIEW user and I'm using it in my final year University project
(an ultrasonic
Hello,
Basically you can do it by saving the data in a file in MATLAB and
reading it directly from LabVIEW, or vice versa. In MATLAB , the
command "save" allows you to save the data in binary format (*.mat) or
ASCII format. You also have an option of saving it in ASCII format
using a tab
"Hello all!
Labview 7.0 has an example "Cont Acq to File (binary).vi" log the PCI
6014 card and writes the data to a binary file. How can I read that
file in Matlab(6.5.0... R13)? Does anyone have a solution for this?
Ok, great thanks again.
They are just clusters of Booleans. In the string to Data Out, the
binary string is converted to a number, the number to a Boolean array,
and then an array to cluster. The bottom is the reverse with cluster
tot array, Boolean array to number, number to binary string. I could
have skipped the
Wow, thank you very much for the quick reply, it is exaclty what I
needed. I am not quite sure what the "data read" and "data out"
function is. It works perfect, but it is magic to me.
Hello, I am very new to lab view 7 and I need to do the following for
work. I am using the rs232 serial port on the computer to communicate
with a prototype circuit. The communication is a simple 8bit (byte)
of 1's and 0's to and from the computer. How do I take this byte and
sepearte it to indi
I don't see any binary or bit handling functions?
Thank you
Chris
Anybody have any "binary number handling" examples?
Thank You
Chris
I have a file with 41 channels in it... every chn is 4 byte. So I want to
make a VI reading every 41x4 bytes put it in an array and write to ASCII
text file.
I am very new to LabView.
Can anyone point me to an example?
I was searching here http://www.ni.com/devzone/dev_exchange/ex_search.htm
but
You might want to start http://www.ni.com/devzone/lvzone/codechallenge1_results.htm";>here.
If that doesn't help, explain exactly want kind of binary handling you
need to do.
you can select binary in the Format & Precision menu. What
more do you want for binary functions?
Rob
I want to be able to read binary data from a serial port using
labview. The packets are of known length (in even bytes) but they are
not ascii. I am worried that if i read them as ascii first and then
try to convert, there will be problems such as with special characters
appearing
You can use different loops with different timings.
One loop with a fixed timing for device controlling,
other loop for user interface (using "Wait for front
panel activity").
Or the mentioned case statement: use a loop with a
small timing value (10 to 50ms) and check for a
condition to start your
If you want to do that, then you have to program it...
Make a case statement and let the user select when
to save data to a file. Or make some logic and start
your microwave generator only at certain conditions...
All the same programming: make a case statement of it,
like in every other language.
Hello,
thanks for your answer. But I placed the button outside the loop so
that it don=B4t work every iteration.
I want to open a com port, start a microwave generator with it or
something else - once only or alternativly in very different time
intervals - user controlled.
Or for example storing
Hello,
I think this knowledge base on how to write LabVIEW binary files that
are readable by other applications may help you.
http://digital.natinst.com/public.nsf/websearch/97332426D63630EE862565070049FFBB";>http://digital.natinst.com/public.nsf/websearch/97332426D63630EE862565070049
For reading binary, there's one example called Read Binary File that
reads a file of DBLs. You can modify this to read whatever you want.
If your data is integers, wire an I32 constant to the byte stream type
input of the Read File function. If your data is floating point,
replace with
I want one, MFC based is OK too.
Thank you very much
the imaging software. The software requires a text
>file which contains the data in 8 bit binary numbers, comma seperated. The array I
>currently have stores integers. Is there any way that you know of to convert integers
>to binary in LabVIEW? Or if there's some function that writes bin
I'm not quite sure what the problem is after looking at your diagramm.
If you're looking to have the frontpanel representation of the
"Temperature" indicator show binary, this will work if you change the
indicator type to integer (I32 or I16).
If you're looking to extrac
This doesn't seem to take care of the whole problem. My third-party
windows software needs the A/D values stored as 16-bit words, but I
can't seem to store my acquired waveforms in this manner. I'm
performing an AI mult pt acquire waveform, with output converted to
binary and sa
Hello,
Please take a look at the knowledge base about how to write binary
files in LabVIEW that can be read by other applications. At the end
of this document there are a couple example VIs that will convert from
Big to Little Endian and vice versa.
http://digital.natinst.com/public.nsf
I'm streaming waveform data to a binary file to be read by a
third-party waveform analysis software. When opening the file,
however, the waveform data is unintelligible. I have read that Labview
uses BigEndian coding, while most PC programs use LittleEndian coding;
how do I convert from B
I've submitted some MD5 VIs to Developer Zone that should become live
soon. Search Developer Exchange for "MD5" for another recent thread
on this topic.
41 matches
Mail list logo