10-28-2008 07:26 AM
I have a USB device, which is recognised as a Virtual COM port. I assigned it to COM6 then tried 5 and 7 (in Control Panel\Sytem properties\Hardware\Ports) and used HyperTerminal to ensure that I could establish a communication with my device. The following settings were used: COM Port6, Baud rate: 9600, Data bits: 8, Parity: none, Stop bits: 1, Flow control: none. At this point, everything worked perfectly.
Following to this, I tried to use the Serial Communication.VI (shipped with LabView) and applied the same settings for the VISA Serial.vi. Unfortunately, the communication failed and the VISA Serial.vi returned the error code: -1073807343 (BFFF0011).
Prior to this, I performed the same task using an Agilent Function Waveform Generator and everything worked fine.
I’ve looked up for the error code and couldn’t find anything in relation to my problem.
Could you please help me on that one? Thank you
Solved! Go to Solution.
10-28-2008 08:04 AM - edited 10-28-2008 08:05 AM
Just an idea : open MAX (Measurement And Automation Explorer) to check if this port is listed. If yes, check its VISA alias and status.
10-28-2008 09:58 AM
Thanks for your prompt reply. I've forgot to mention in my original post that I'm using LabView V6.1.
I've tried what you said and COM7 is seen as working properly and its VISA alias is COM7. Despite that, I could still not get any communication while using the Basic I/O in the Open VISA Session. I've tried twice with and without the asynchronous box ticked.
I also tried the VISA Session with the Agilent signal generator and it worked fine ( Maybe I should mentioned that the Agilent uses a traditional RS232 COM port).
Is there any thing else I could look at or try?
10-28-2008 10:08 AM - edited 10-28-2008 10:13 AM
Again just an idea. Hyperterminal automatically adds the \r\n termination to a message. LabVIEW doesn't and therefore these characters must be added in the code. See this document for more details.
But according to your error message, I'm afraid that the problem comes from anywhere else...
10-28-2008 10:36 AM
Thanks Jb for the interesting Info. I've just had a look at it now and I'm going to try something else with LabView. However, I'd like to know if you could send me 6.1 version of the Basic Serial Write and Read_1 bit.vi attached to the Document or alternatively a picture would do.
Thanks a lot
10-29-2008 02:47 AM