Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending differentes instructions via RS232

Solved!
Go to solution

Hi,
Firstable sorry for my English, and thank you to google translate


I try to communicate with a receiver via the RS232 port.
Instructions to be sent are like that:

 

RF8507000
MD2
AT1
BW1
 
My concern is in sending the data in the "visa write".
In fact, I found a solution with the use of an "End of Line Constant" at the end of each command,
but this slowed sending information.
When I send a single frame, the transfer is made immediately, but this approach does not satisfy me, because I want to send several different information.
I thought only send frames that change in the buffer, but I do not see how.
Do you think that my track is good? Or do you have another solution?

0 Kudos
Message 1 of 11
(5,253 Views)
0 Kudos
Message 2 of 11
(5,248 Views)

Your approach is not at all correct. You do not want to be constant transmitting. I would suggest you look at the event structure so a command is sent only when a control value changes.

 

LabVIEW 101

0 Kudos
Message 3 of 11
(5,244 Views)

Thank you for you answers.

Unfortunately, I have the base development System. (LV 2011 SP1)

The "Event Structure" and "value change event" are with the Full version. Do you think I can do something with another VI ?

 

Thank you

0 Kudos
Message 4 of 11
(5,224 Views)

@scab1984 wrote:

Thank you for you answers.

Unfortunately, I have the base development System. (LV 2011 SP1)

The "Event Structure" and "value change event" are with the Full version. Do you think I can do something with another VI ?

 

Thank you


Huh????

 

Event Structure is most definitely in the Full version.

 

 

 

0 Kudos
Message 5 of 11
(5,213 Views)

nyc a écrit :

Huh????

 

Event Structure is most definitely in the Full version.

 


 

Yes it is in the Full version, but I have the Base version

0 Kudos
Message 6 of 11
(5,210 Views)

I haven't worked with base development System but I'll be surprised if they're not included.

 

 

0 Kudos
Message 7 of 11
(5,183 Views)
Solution
Accepted by topic author scab1984

Just in case however, attached is a variation of your code. While what I've provided might be of some use to you, this really is a crude way of doing things. But I hope you can see the various methods that you could employ in order to do what you want.

Message 8 of 11
(5,182 Views)

@zerotolerance wrote:

I haven't worked with base development System but I'll be surprised if they're not included.

 

 


The event structure has not been in the base version.  That changed with LV2012.

 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 9 of 11
(5,168 Views)

zerotolerance a écrit :

Just in case however, attached is a variation of your code. While what I've provided might be of some use to you, this really is a crude way of doing things. But I hope you can see the various methods that you could employ in order to do what you want.


Ok, thank you, I'll check this Vi tomorow.

0 Kudos
Message 10 of 11
(5,160 Views)