From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-09-2008 08:32 AM
05-09-2008 08:53 AM
In order to access the serial ports on the cFP controller, you will have to write a real-time program that will run on the cFP. The ports would be called Com1, com2 ..... The code would look just like if you were running VISA commands on your PC to access the serial ports on the PC, the only difference is that the code must run on the cFP to access the serial ports on the cFP.
If you need to transfer the data coming from the cFP's serial port to another device such as your PC, then the code you put on the cFP could write the data to a shared variable which you PC could access.
05-12-2008 10:27 AM
05-12-2008 10:43 AM
11-06-2008 10:13 PM
Hi - the above replies are correct, there is no (direct) way to access the cFP serial ports through a host application. Without RT there's absolutely no way.
I've spent about the past month writing a 'tunneling' program. I can tell you that while it is *possible*, it's a pretty big pain. You'll spend more time debugging the link as a whole (PC->RT->device) vs focusing on the direct serial comms.
My suggestion is to use an IP-based RS232 port, such as from http://www.lantronix.com. Take a look in particular at the 'UDS' External Device servers. There's only around $120, and allow you to install a virtual 'COM' port on your PC. The device get its own IP and from LabVIEW's perspective it looks like a local port. (PS I have no affiliation with Lantronix, 'just a happy customer for years).
Of course you'll either need a second Ethernet connection near the unit, or install a small switch/hub (4-5port) in your cFP enclosure. For $200 more you'll save a ton of time/headaches.
Cheers,
Jamie
11-06-2008 10:14 PM