LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

continous operation

Hi,

     In my app, i need send five commands everytime one by one and i need to get the data back and want to dispaly in different types of textboxes. i have seen some example on the NI forum and i tried something which makes me not clear and feeling everything wrong. i need send command in for that i have changed the properties in write visa to hexadecimal and i am receiving the values in hex also but in receiving values first one is PMBus address, containg 7 bit address mixed up with alphabets and digits. I have tried with building array to get values and feeling that it is totally wrong. how can i take the responed answers to respective textboxes and this proces should always want run because these are monitoring parameters. i need do thid process continously with the commands. Can any one help me. 

0 Kudos
Message 1 of 72
(3,676 Views)

shjukheter,

I attached a variant of your original vi (2010) that shows how you might use a case structure to handle the per-command response values you get from your system.  I included some notes on the block diagram in bright green that show what I did.  I hope this is helpful for your problem and gets you moving in the right direction with your application.

-cb

0 Kudos
Message 2 of 72
(3,649 Views)

First, this is an offshoot of this thread, so the discussion here should be limited since it seems to be the same basic question.

 

As for the suggested changes: You can't use the Number to Decimal String function there. You need to use Type Cast.

0 Kudos
Message 3 of 72
(3,638 Views)

could you repost this in labview8.5 version.

0 Kudos
Message 4 of 72
(3,626 Views)

can any one repost the given example in 8.5 version. since i was one day lost no one done that. Please can nay one make it for me.

0 Kudos
Message 5 of 72
(3,593 Views)

As long as the given example from 10degree was not opening in my system and i was tried in two way one will giving errors and other working for only one numeric indicators.

firstone(another vi)

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

In this i had to send five coomands one by one and read the data of each command and need to display in 5 numeric indicators, from read vi i can only read one value now and giving to the indicator. If i write some 5 commands from byte array then it is responding all the answers at a time and displaying all in one numeric indicator.

 how can do like sending one command and getting reply and displaying in respective indicator and next another command etc.. also this process should perform continuously to get the new values up to date.

secondone(command1)

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

 here i have several write and read blocks but its totaly not working and showing errors in read block . can nay one help me to get rid of this problem

 

Download All
0 Kudos
Message 6 of 72
(3,578 Views)

You dont send 5 commands, you send the command 88898D0000 4 times ...

Remove the 4 connected to the loop, and have the numeric array (the commands) connect and autoindex instead. Move the byte array to string inside the loop. See if that helps.

 

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 72
(3,570 Views)

and have the numeric array (the commands) connect and autoindex instead.. how can i do that?

0 Kudos
Message 8 of 72
(3,565 Views)

Here's the 8.5 version.

0 Kudos
Message 9 of 72
(3,557 Views)

in my vi i need to send commands like 88 once take the reply next 89 once take the reply etc... but in my vi always 88 command only running . how can i run one by one , so that i can change to different data type in case structure and i will show the reply in indicators.

0 Kudos
Message 10 of 72
(3,551 Views)