LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

hi

ya put format string as denis said earlier but it was giving me error.so tried different ways to get output but couldnt

i tried all possible formats but it didnt worked.it was saying sacn failed.

thank yuo

naveen

0 Kudos
Message 11 of 26
(1,148 Views)
hi
its saying error "too many formats" when i try that
 
0 Kudos
Message 12 of 26
(1,144 Views)
Here is your VI with the modified format string.

Lynn
Download All
Message 13 of 26
(1,140 Views)
Thanks Lynn for getting him the fix. I thought it might be something like turning on '\' Codes Display.
0 Kudos
Message 14 of 26
(1,135 Views)

hi

thank you lynn and dennis for your help. hanks a lot for helping me in solving my problem.

naveen

0 Kudos
Message 15 of 26
(1,130 Views)

hii

previously i was using serial port read and other serial port functions to establish communication with instrument and i managed to get output.But now i want to read and write from the instument and i want to use property node to read n write the parameters.i have witten some part of code and i am attching that code.plzz suggest me wt to do next to get complete interface with device so that i can add various functions later on

thanking you

naveen

0 Kudos
Message 16 of 26
(1,119 Views)
Naveen,

Here is a simple state machine which does reads and writes to the serial port. I do not have a serial port so this has not been tested.

Lynn
Message 17 of 26
(1,102 Views)

thanks lynn

how can i inter face with the device.this prog is running continuously .so how can read n write into the devise

thank you

naveen

0 Kudos
Message 18 of 26
(1,094 Views)
Naveen,

I do not understand your question. Do you want to connect the VI to a larger program as a subVI? Or are you having trouble using it manually?

To use it manually enter the data you want to send to the device in the String to Write box and then select Mode = Write. The program will write the string to the serial port and reset the Mode to Idle. Similarly selecting Read will read the available bytes from the device and display them in the String Read box. Read then Write and Write then Read provide combinations of the Read and Write functions. There is no delay between the read and write so the instrument may not have time to respond.

To use is as a subVI connect the controls and indicators to the connector pane. It would be best to put the initialiaztion part at the beginning of your program so the port does not get repeatedly initialized. Also put the VISA Close at the end of your program outside any loops. The while loop may not be needed because your main program may have a loop which would perform the same function.

These are elementary LabVIEW programming ideas. If you are not familiar with them, look at the tutorials and beginners guides which ship with LV or are available online.

Lynn
Message 19 of 26
(1,084 Views)

hii lynn

the program is going to idle state and running continuously with out giving any output.even though i ran prob putting in read mode,its not giving any output instead its going to idle state and running continuously

         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.i am new to labview.,so plzz give me detailed information.

thank you

naveen

 

0 Kudos
Message 20 of 26
(1,079 Views)