10-16-2008 07:59 AM
I have to communicate with a microcontroller, and I used the VISA SERIAL PORT.
The problem I runn into is that On the VISA Configure I set the termination char enable to false (NO TERMINATION CHAR); but it doesnt seem to work, when the termination char byte arrives at the port the reception is ended.
I debug the application and found out that the value of the VI_ATTR_ASRL_END_IN attrivute is not changed to 0 as it should be when I set the termination char enabled to false.
I had to hardwire this attribute to 0 manually to make it work.
My question is; Is this a LabView Bug or am I doing something wrong ? Has it happend to any of you ?
Thankyou very much
Diego
10-16-2008 11:45 AM - edited 10-16-2008 11:45 AM
What version of LabVIEW and NI-VISA are you using? The block diagram of VISA Configure Serial Port should look like the image below and it does correctly disable the termination character in all of the versions of LabVIEW that I can remember. Can you provide a screen shot of the VISA Configure Serial Port and the other information?
10-16-2008 12:31 PM
I m usign LabView 8.20
I set the termination Char enabled to false on the Visa Configuration.
After that I monitor the ASRL END IN property and it remains in 2 (instead of 0 - what should be for no termination char)
So I m forced to set the property to 0 manualy.
Thanks Diego
10-16-2008 01:30 PM
10-16-2008 02:46 PM
10-16-2008 03:37 PM
10-16-2008 04:08 PM
The case statement is there because the hole thing is part of a larger program; the other case does not use the serial port so it is not initialized so it really doesn't matter.
It 's good to know that the other versions of Labview don't have the same problem although that doesnt resolve the problem.
Thanks for your help; and if you got any other ideas or sugestions please let me know!
10-16-2008 08:55 PM
10-17-2008 07:40 AM
Ok I ll try and make an example with out the case; although I m sure the program is going trhugh that case because I m debuging it and the other case has a pop`up dialog.
Anyway I 'll find some time toprogram a simpler example and post it.
Thanks