02-25-2011 03:13 AM
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.
02-25-2011 08:33 AM
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
02-25-2011 09:59 AM
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.
02-25-2011 10:45 AM
could you repost this in labview8.5 version.
02-26-2011 04:49 AM
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.
02-26-2011 07:08 AM
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
02-26-2011 07:55 AM
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
02-26-2011 08:16 AM
and have the numeric array (the commands) connect and autoindex instead.. how can i do that?
02-26-2011 08:40 AM
Here's the 8.5 version.
02-26-2011 09:37 AM
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.