07-16-2012 12:40 PM
The same VI works using XP.
I am able to use Hyperterminal in Win 7. It works fine.
I just can't seem to get Serial VISA functions to work.
I'm using Labview 8.5
I've attached the VI I'm using.
07-16-2012 12:46 PM
07-16-2012 01:00 PM
Yes. NI-488.2
Says so right on the CD.
07-16-2012 01:12 PM
Since you are using Win7, the PC probably has faster CPU than the PC running XP.
You might want to try a delay after the write and before you query for the number of bytes on the port.
07-16-2012 01:24 PM
@mot4755 wrote:
Yes. NI-488.2
Says so right on the CD.
What the heck does NI-488.2 have to do with anything related to serial communication? You also should know that LabVIEW 8.5 is not officially supported on windows 7. You should also know to connect an error out indicator to see what (if any) error you might be getting.
07-16-2012 02:08 PM
Because I'm using the VISA Serial Pallet ??
Anyway, I tried delays, slow execution, breakpoints. I'm getting no data after the write.
No errors either.
Oh, and I tried VISA 5.0.3 too. No help.
07-16-2012 02:16 PM
I meant I was using VISA 4.4.1 version
488 was a typo
07-16-2012 02:25 PM
Do you have access to an oscilloscope to make sure data in going in and out of the serial port? Where did you add delay? You should put in a delay after writing the data and before reading (bytes at port node).
07-16-2012 02:27 PM
I'm glad you are now talking about the NI-VISA driver instead of the NI-488.2 driver.
So, is it returning 0 bytes? Your VI is not the best written for serial communication and a termination character. You are configuring the VISA Read to terminate on a LF character but you are sending a CR. When you have an instrument the uses a termination character, the VISA Read has to be configured the same way as what you are using for the write. You also do not use the VISA Bytes at Serial Port when the instrument uses a termination character.
07-19-2012 10:14 AM
I was able to use the older serial functions to make it work.
Doesn't maks sense, but it works.
See screen shot.