LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set the VI_ATTR_ASRL_BREAK_LEN attribute for LABView?

I need to control the length a VISA serial port break. The LABView help says 250mS is typical but less then 500mS for a VISA serial break. I need to send a break that is 3mS(for 4800 baud). According to the NI-VISA Programmer Ref Manual it is possible to control it down to 1mS but I don't know if this applies to LABVIEW. I normally use the older serial vi's(which work fine) but wanted to take advantage of the newer VISA options. I am simulating a device we produce that spits out data every 500mS but is preceeded by a 3mS break. Thanks!
0 Kudos
Message 1 of 5
(3,025 Views)
You use a VISA Property node (Instrument I/O>VISA>VISA Advanced palette). The property is Serial Settings>Break Length.
0 Kudos
Message 2 of 5
(3,025 Views)
My menu does not contain that property. I am using ver 6.0.2 of LabVIEW. I've attached a picture for reference. Thanks for the response. :}
0 Kudos
Message 3 of 5
(3,025 Views)
This is possible.

1) See my answer at http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000427E0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
2) You will also need the attached Visa break. It was send to me by NI.
3) Set the length of the break when configuring the serial port ( Serial settings --> Break length)
4) Use the attached vi for generating the break.

I'm currently using this solution with LV6.1 and W2000 in a LIN application.

Obviously you could also use the Modem Line --> Break State property node (should appear with the new visarc) and a timer.
Message 4 of 5
(3,025 Views)
Thanks again! :}}
0 Kudos
Message 5 of 5
(3,025 Views)