LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

continous operation

Hi,

    I changed the existing indicators to controls and I taken the local variable of control to act as indicator. Now I have the controls for sending the commands and display the result in indicators(same controls) but the problem is before i had taken the array constant and seding all the commands one by one and displaying in respective indicators. Now, i have 8 same controls and local indicators and if user write any number into local indicator then it should take that number and append to the respective command(only when ever user written any value in local indicator otherwise it should run as usual with before command).

First problem

-------------------

user may want to written only one value in among eight controls and sometimes two, three or four controls.

Second problem

------------------------

Already i am always writing commands for only reading values from serial device but how i will change matching command when user enters value into control.

 

how can i do this? Thanks a lot for such helping forum.

0 Kudos
Message 61 of 72
(1,816 Views)

Well, a user can only change the values in one control at a time.

 

What you can do is use the Value Change event of the controls to determine when the user changed them and in the event write the new data out to the serial port.  Use the timeout case of the event structure to do your background updating of the local variables of the controls.

0 Kudos
Message 62 of 72
(1,810 Views)

ok, ravens i will try out and ask you again if need any help...first time some thing i understand straigh away... Thank you:manhappy:

0 Kudos
Message 63 of 72
(1,802 Views)

I had taken the event structure for each control which are used to write the values to serial device. Problem is when i am reading data from serial device i am using same command and when writing to serial device u just want to appened user value to the existing read command and send it to serial port only on user entered sistuation. Otherwise the old command should run always for read values and only i need to send write commands when the user enter specific value in specific control.

 

How can I do that and again one silly question(Please dont mind it because i have asked many times and got replied and still not clear) on " I am dealing with USB serial device which will convert all the USB data to I2C". So, for the I2C device i need to communicate in byte orientation format but i am sending strings now. I think it will not work with strings? Is it write or wrong. If so, then how i will rectify this problem and indeed i did not check with the real device but imagining my self.

0 Kudos
Message 64 of 72
(1,784 Views)

see the attchment below.

0 Kudos
Message 65 of 72
(1,783 Views)

Hi shjuk,

 

"i have asked many times and got replied ... So, for the I2C device i need to communicate in byte orientation format but i am sending strings now."

 

Sorry, Shjuk, but now I'm leaving this thread!

You still don't read our messages! (Or you ask for answers, but don't want to here them...)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 66 of 72
(1,777 Views)

I have six monitoring commands which should always run continuously to get the answers. More I have 8 control commands(in event structure) which always user can set the values into them and written to the port parallel(like user enter some value in any of the 8 controls and press send button) and while writing these values to the port I want to append the user values to the existing command in hex (So far I have done it) but strucked with writing to serial device. I want to make a simple terminal instead of these controls and indicators to user can enter the command in write command box and he can see the result in read display box. Now read display box display the result of running command which I don't want and need to used same property in case of simple terminal creation. Errors are always hitting me when try to put write control to the write visa. Please can any one help me?

0 Kudos
Message 67 of 72
(1,740 Views)

"Concatenate Strings" on your Write command and input array.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 68 of 72
(1,738 Views)

In that sistuation, User always try to change the value and he will write it to the port then array should change always by flushing the previous commands. Can it do like what i am interested. Problem is already six monitoring commands writing always to write visa and how can i add these array to write visa.

0 Kudos
Message 69 of 72
(1,732 Views)

Please some one help me how can i do the written one in 67 message.:mansad:

0 Kudos
Message 70 of 72
(1,726 Views)