LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I use LabVIEW 7.1 but I have some problem when, I use LabVEW to read the data from serial communication

 
I use LabVIEW 7.1 but I have some problem when, I use LabVEW to read the data from serial communication.
 
I use LabVIEW to read the data from serial communication then, i open the example (.vi) from Serial Communication - Advanced Serial Write and Read from LabVIEW Example. BUT it have some error message that : Error - 1073807202 occured  at property node in visa configure serial port (instr).vi -> advance serial write and read .vi
this error code is undefined. no one has provide a description for this code, or you might have wired a number that is not an error code to the error code input.
 
I don't know why? please help me. thank you.
0 Kudos
Message 1 of 5
(2,970 Views)

When I copy that code into "Explain Error" I get: "VISA:  (Hex 0xBFFF009E) A code library required by VISA could not be located or loaded."

You may have a bad install of VISA or the wrong version of VISA loaded. Try re-installing VISA. You can get the latest version from the NI support site: https://www.ni.com/en/support/downloads/drivers/download.ni-visa.html.

Also ensure that you are not pointing the example towards a serial port that does not exist.

Please let us know what you find and what gets this working for you.

     Rob

0 Kudos
Message 2 of 5
(2,960 Views)

Thank you so much, Rob.

I have downloaded NI-VISA Version 3.4.1 for RTX/Windows 2000/XP x64/XP -- Includes LabVIEW RT Support and then I have installed.

It can read the data (string) from rs 232 (serial communication).

I have one question :  I use the data (string data type, actually it 's value of position of motor) that I read from rs 232 .

Can I use this data to compute in LabVIEW ? for example, I want to compare between the position of motor that I read from rs 232

with the some signal in LabVIEW (square wave , sine wave)?

0 Kudos
Message 3 of 5
(2,959 Views)
one way is to use the 'scan from string' function in the string lib. hit the right mouse button and try 'edit scan string'  and read the help to this topic.
 
If you run into problems post the string  Smiley Wink
 
 
 
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 5
(2,920 Views)

If you know the type of number (U32, I16, etc.) then you can use the String/Number Conversion functions available on the String palette. You can then do any calculations that you like on the number.

     Rob

0 Kudos
Message 5 of 5
(2,913 Views)