LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple value request from a device

Solved!
Go to solution

Here's a 2015 version. No large downloads needed 🙂


GCentral
Message 11 of 17
(1,019 Views)

I already try your VI but it's not work. 😞

0 Kudos
Message 12 of 17
(1,012 Views)

Urgh 😕 Sorry...

 

Do you know where the problem is? Perhaps you can use probes to check the values returned by the Read, the Bytes at Port, and the string subset? I'm not sure where I went wrong and I can't check without hardware 😞


GCentral
0 Kudos
Message 13 of 17
(1,004 Views)

I check by probe now but i still don't know where is the problem. 😞

0 Kudos
Message 14 of 17
(1,001 Views)

I just see that my VI at the first result from PV's reading return 0 byte that maybe that cause why PV is 0 all the time but your VI ,PV's reading return 7 bytes but the result of SV and PV are 0. 😞

0 Kudos
Message 15 of 17
(993 Views)
Solution
Accepted by Vindecua

Ok - so it looks like some part of my processing is broken, but the reads might be ok.

 

First thought realised while typing - change the 4s to 3s and try again. Perhaps I miscounted the positioning...

 

Since you previously managed to get valid results using String to Byte Array, I would suggest trying again with that and your index array function, but be aware that the data should be bytes 4 and 5, not just 4. (or maybe 3 and 4, not just 3) You can drag the index array down to get two outputs and use Join Number or something similarly named to get a U16 number.

 

Edit, checked the document you linked again. Pretty sure I messed up indexing. Change the 4 to 3 and it hopefully will work.


GCentral
Message 16 of 17
(991 Views)

i finally done it!!!!

 

i change how to get output and it's work.

 

thanks for your help.

 

ps. i have to use this to do my graduate project and you save me lot. 🙂

0 Kudos
Message 17 of 17
(985 Views)