LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with the output form after communicating with the instrument using rs 232

It has a race condition. The local variable gets reset, setting the mode back to idle. I do not usually use local variables for this reason. I will post a better method later.

Lynn
0 Kudos
Message 21 of 26
(951 Views)
Here is a version without the VISA functions so I could test it. I added an Enter button to activate the Mode command selected. It does not need the local variable. The Enter button has the mechanical action set to Latch when Released.

Lynn
Message 22 of 26
(946 Views)
hiii lynn
 
My VI is a temperature controller.Here what i basically need to do is Write set temperature to the device and then read present temperature as well as set temperature.i may need to run continuously and obtain the display of output and need to plot the output temperature vs time.i use Rs 232 cable for interfacing.plzz suggest me how can i do this.
How can i use the programs sent by u to obtain wt i want and in what way i need to modify ur progs to get my desired output.plzz suggest me which method will be more helpful for me to get desired output.plzz suggest me how should i approach
 
thank you

naveen

0 Kudos
Message 23 of 26
(937 Views)
A controller as you have described is often implemented as a state machine. The VI templates that come with LabVIEW have some examples (File >> New.. >> VI >> From Template >> Design Patterns... The State Machine or Producer/Consumer patterns are good starting points.

Lynn
Message 24 of 26
(931 Views)

hii

i managed to read the temperature from the device using the the attached program.how can i modify same program to read one more  parameter from the device.with this progarm i am able to read present temp so what are changes i should make to the this prog to read one more parameter.

thankinh you

naveen

0 Kudos
Message 25 of 26
(919 Views)
hii
when i am running this program, i am getting outputs as 200190,2001f4,200258,2002bc,200320, 2002bc so on wher as outputs wt i should get are 30,40,50,60,70,80 .are these hexadecimal nos.how to change them to get decimal nos.please suggest me changes for the following program
thanking you
naveen
0 Kudos
Message 26 of 26
(887 Views)