Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial PDA Communication

I cannot see where I should set the port (which port to use) on my PDA module in LabView.  I have LV 8.2 and NI VISA 4.0 and I can communicate to it with the PDA example (Serial Communication - Pocket PC) using "Serial Compatibility" functions.  I want to use VISA because it's simpler and I already have code written in VISA that works with PC-to-device.  I am just trying to get my PDA to send ASCII commands to a RS232 equipped device and send and receive data packets back and forth.  I can't establish communication and get the error code: -1073807343 like Amal Patel (another forum member) when I use VISA.  I tried typing "0" and COM1 (since it is port 0, which is analagous to COM1 on PC) in the VISA resource name on the front panel.  I've been struggling with this for a while now and so far no one has gotten me there.  Any help would be appreciated.  File is attached.
 
Eric MacKnight
0 Kudos
Message 1 of 4
(7,604 Views)
Hello Eric,
 
I believe that we talked about this over the phone yesterday.  I found another article on the proper resource name for a serial device.  It is written for the TCP-2006, but it is still applicable for PDAs.
 
 
A great point made in this article is that you can use the VISA Find Resource VI to find what ports are available on that device and use this as input to open your VISA session.  I hope this helps.
Brian Coalson

Software Engineer
National Instruments
0 Kudos
Message 2 of 4
(7,585 Views)

I tried several methods of inputting that ASRL1::INSTR to the function, but it never gave me a good result.  Instead of getting the -1073807343 ("Insufficient location information or the device or resource is not present in the system") error, I now get -1073807240 ("The value of some parameter (which parameter is not known) is invalid") error.  I am typing the ASRL into the VISA Configure serial port VI front panel to get the latter error and saving it.  Any help is appreciated.

Eric MacKnight

0 Kudos
Message 3 of 4
(7,548 Views)
This issue has been resolved.  I double-clicked the serial compatibility VI and copied and pasted the open port function from it onto my program to supplt the VISA resource name.  It is now successfully communicating.
0 Kudos
Message 4 of 4
(7,520 Views)