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.
03-11-2009 02:50 PM
I am trying to communicate with an extech power analyzer with Labview. Thier data logging software and cable all work. According to the manual. I need to tie RTS to CTS and DTR to DSR.
I am trying to use the Visa commands. Visa Serial, Visa Read, and Visa close for now.
How can I programmically do this?
Thanks
Solved! Go to Solution.
03-11-2009 02:59 PM - edited 03-11-2009 02:59 PM
You can Set the DTR and RTS states. You can only Read the CTS and DTR states. (You can also read back the DTR and RTS states).
See attached using Property Nodes.
You can't actually tie the lines together in software, that is done in the cable. But if the cable works with their software, perhaps all you will need to do is assert the DTR and RTS lines in your LV program.
03-11-2009 02:59 PM
Kyle,
The connections between RTS-CTS and DTR-DSR should be already made by the cable. You can verify this by disconnecting the cable and using an ohm meter to measure resistance between these pins.
03-11-2009 03:19 PM
I checked the cable and the pins are not connected. The manual notes: "Software developers must ensure that DTR provides 10V (or higher) and RTS provides -10V (or lower). Voltage (10V, -10V) from DTR and RTS is used to generate the RS-232 signal. DTR is usually enabled (10V) but RTS must be disabled in order to provide -10V. "
I keep getting error 1073807339 and tried the property node. I toggled the unasserted and asserted states also.
Any other ideas? I ordered some parts to build a cable, but was hoping to do this programmically.
Thanks
03-11-2009 03:37 PM
Then change the constant going into the RTS node to unasserted.
If their cable works, then you can use it. Their software is setting these lines as needed. You just have to figure out what are the right line settings and do it in your LV program.
The error code is a timeout, probably because the device didn't respond when it didn't like the combination of RTS and DTR you had.
03-11-2009 04:51 PM
I tried all combinations of the DTR and RTS states (9 of them) and still can not communicate. Any other ideas?
03-11-2009 05:36 PM
03-11-2009 07:56 PM
When you post an image, make sure you attach the image file to your post first. Right now your image is located on your hard drive, so we can't see it.
Attach image file. Submit post. Edit post, Insert image based on the link to the image file on the Discussion forums.
03-12-2009 08:23 AM - edited 03-12-2009 08:27 AM
03-12-2009 08:32 AM
First, change the RTS to unasserted since you said the RTS needs to be -10V..
Second, all you are doing is reading from the port. Do you have any manual that talks about the serial communications protocol? Does the device send data continuously or are you supposed to write a command to it then read back the response?