LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Able to reset the board from MAX but not from my LABVIEW6.1 program

Hi,

I have a Power supply board which has a reset LED and this board is being commmunicated through Serial Port. This Board gets reset(LED goes OFF) when I send a command thru MAX(VISA Session). But the problem is when we try sending the same command thru Labview standard program the board is not getting reset. The com port setting excatly matches the MAX setting.What could be the problem ?
0 Kudos
Message 1 of 5
(2,797 Views)
Perhaps you could post the LV vi that you are using to communicate with.

If it's working w/ MAX, it's more likely a programming error.


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 2 of 5
(2,797 Views)
Jonnie 5 gave you the best advice regarding solving your problem - post your code. I just wanted to add that when you say "Labview standard program", it doesn't mean an awful lot. There are several shipping examples of serial communication and they are different depending on which versioon of LabVIEW that you're using. Real old ones used the serpdrv and more recent ones use VISA. I don't remember any of the examples being setup to add a termination character to the write string. This is one of the most common mistakes people make when starting to program serial in LabVIEW.
0 Kudos
Message 3 of 5
(2,797 Views)
Thanks for the reply .
I have attached the .vi file which i'm using for serial port
communication. The labview ver is 6.1.
0 Kudos
Message 4 of 5
(2,797 Views)
Like I mentioned, your example doesn't append any termination
character to the string that you're writing and most serial
instruments require this. I think MAX adds a newline by default. Check
your instrument manual to see what if anything is required. If you
need to add one, you can use the build string function to always add
the character constant to each VISA Write or modify the VISA Configure
Serial Port function to add the property Serial Settings:Serial End
Mode for Writes. If you use a string constant, be sure to use one from
the string palette or in a string with \ codes enabled.
0 Kudos
Message 5 of 5
(2,797 Views)