11-07-2005 09:19 AM
11-07-2005 10:09 AM
11-07-2005 10:25 AM
11-09-2005 12:12 PM
It's true that my application is not typical...
The fact is that I use the DTR line as a control (changing it from asserted to unasserted), independant from any RS-232 protocol. The device on the other hand is only hardware that acts in function of the voltage of the DTR line . So, if the DTR line changes while init, my device acts without my intention...
The only solution I'll choose (if exists!) is a software one, as the hardware is specific and non-modifiable.
Another question : You told about previous versions of serial communication VIs but I can't find them on LabVIEW 7.1, they are all VISA. So, is there a real difference between them and if true, where can I find the previous version?
Thank you in advance.
Bim
11-09-2005 01:23 PM - edited 11-09-2005 01:23 PM
In LV 7.1, it is buried in the property nodes. First open a VISA session with COM1 or whatever (ASRL...). Then look in the Function palette - Instrument I/O - VISA - VISA Advanced - Property Node. Create a property node on the block diagram and wire it to the VISA session. Then click in the property box and select Modem Line Settings - Line DTR State. Change to write. Right click on property and select Create Constant. This will create an enum with the correct values for asserting DTR and such.
Message Edited by tbob on 11-09-2005 12:24 PM
11-10-2005 03:18 AM
Thanks tbob,
But I already use this method to control the line state, I've also add the line control in the port config VI but it still switch the DTR line. I think the init of one of the parameter in the port config vi acts on the DTR state.
Maybe, we can remove one of the actions done while initializing the com port?
11-10-2005 08:25 AM
11-10-2005 10:30 AM
Thanks Matthew!
It works like I want ! Finally, to avoid the problem of init, simply avoid init !
Now, I'll know that the com init isn't compulsory if the serial protocol isn't required (that's it?)...
Thank you again.
Best regards
Bim
11-10-2005 08:27 PM
12-05-2005 12:17 PM
Hi,
I am using LabVIEW 8.0 VISA to communicate a device over the COM port.
The device requires that the DTR bit is set to low before sending any data to it and set to high before receiving any data from it.
So, would you explain how to set the DTR bit manually to high and low ?
Thanks.
Lev