LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading data from multiple sensors(same type) without copying the same VI in one VI for 4 times.

Solved!
Go to solution

Hi psuedonym,

 


@psuedonym wrote:
If he had written his Arduino code properly, he could send back readings from all 4 sensors with 1 response.

Yes, sure.

But according to other threads like this it seems also very hard to change the Arduino code…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 15
(987 Views)

@GerdW wrote:

Hi psuedonym,

 


@psuedonym wrote:
If he had written his Arduino code properly, he could send back readings from all 4 sensors with 1 response.

Yes, sure.

But according to other threads like this it seems also very hard to change the Arduino code…


If he is using LINX maybe. I haven't used LINX so I can't comment.

 

I wrote my own Arduino code. All I know is that it is not a big deal to respond to a query from LabVIEW for all 4 sensor readings.  LabVIEW sends S\r\n. Arduino responds with 11.11,22.22,33.33,4.44\r\n.

 

 

0 Kudos
Message 12 of 15
(969 Views)

thanks 

I'm not using linx im  using visa. furthermore command 11 which can use to change the channels. 

0 Kudos
Message 13 of 15
(952 Views)

Then use for loop with command 11 to change the channels...

Are you literally sending a string "Command 11" to Arduino or is that just a placeholder name?

0 Kudos
Message 14 of 15
(943 Views)
Solution

@User002 wrote:

thanks 

I'm not using linx im  using visa. furthermore command 11 which can use to change the channels. 


You do realize that you have to write the code for the Arduino too and you have complete control over it, right?

It seems you think that sending commands to the Arduino using VISA will get Arduino to do something.

 

 

.

Message 15 of 15
(919 Views)