01-22-2011 11:34 AM
how do i modified this vi so that i can seperated each register that it read..for example all value for register 100 in one table than register for 200 in another table and so on
01-22-2011 01:50 PM
Is the register number included with the data you read? In other words, how do you know which register the data came from?
Ed
01-22-2011 02:31 PM
im not make the testing yet..but as i know the register will come in randomly and unorganized..so i need to choose some of the register which i need then put the value of it in table
01-22-2011 04:23 PM
You have not nearly enough information - only some vague reference to 'registers' and some code that everyone has. Provide at least the make and model of the instrument, the programming manual, and an attempt to get your code to work. Get a capture of a read and write and do a make current values default. Save that VI and attach it.
01-23-2011 12:40 AM
ok i will try make a testing 1st and attach it here
01-25-2011 10:17 AM
attach is my vi.,my received data and motor controller manual
can someone tell me how to modified this vi so that i can know the meaning of the hex received and convert it to normal values
01-25-2011 10:39 AM
What command did you write to get the data that you show in your .jpeg image?
If you need to convert numbers such as two string characters to the equivalent 16-bit number, you use the typecast function and wire a constant to the top of the correct datatype (such as U16).
It looks like there a several different ways to request data and that you could ask for the number as hex values or as decimal. Without more information on what you are trying to get, all I can recommend is that you read the manual you attached starting at page 15.
01-25-2011 10:58 AM
i dont send any command..the data will keep sending to my labview after it connected to the controller
so i need to identify what is the meaning of the hex that i received..any idea what should i do?
01-25-2011 11:02 AM
I don't see anywhere in the manual that says data is being sent conitnuously. Everything seems to be query command/response.
Perhaps its time for you to contact the manufacturers of that device.
01-27-2011 05:48 AM
i'll check it later..but before that i need to try it by using dummy data
for example i want to send this kind of data Msg ID= 0x00000001 and Data= 0x00000010, Msg ID= 0x00000002 Data= 0x00000020 and so on
lets take it if i use basic serial write and read example vi. then i write that data and send it to another basic serial write and read example vi.
how do i modified so that the received data will arrange as every data for Msg ID= 0x00000001 in one row and and Msg ID= 0x00000002 in another row and another in another row... so on