11-23-2022 05:50 AM
Hi Rolf ,
if both devices are connected at a same time , i am getting the 1st device EAN and serial number only . Not getting the 2nd device EAN and serial number .
How to get the both units (device )EAN and Serial number Simultaneously or in parallel thread something like this . This is my simple question within you
i tried by canGetHandleData() function but i am getting a error of Invalid Handle -1 .
11-23-2022 06:07 AM - edited 11-23-2022 06:10 AM
You forgot to attach your code (use save for previous if you are in LabVIEW 2020 or newer). I have no idea why you want to get this information simultaneously. The principle is to get the total number of channels, loop through each of them and query for each the SN, EAN and onboard channel number and go from there. Nothing simultaneous or parallel or whatever is needed.
11-23-2022 07:21 AM
Hi Rofl ,
how to Loop through each of channel and query EAN , SN of it .
I have LLB file provided by kvaser . using "kvCanGet8ByteChannelData.vi" am getting the UPC and SN
Can you please provide me any example vi or snippet based on your Way of your approach and Query for each channel?
11-23-2022 07:52 AM - edited 11-23-2022 07:54 AM
channelCount = canGetNumberOfChannels();
for (i = 0; i < channelCount; i++)
{
canGet8BytChannelData(i, CARD_UPC_NUMBER, eanCode);
canGet8ByteChannelData(i, CARD_SERIAL_NUMBER, serial);
canGet4ByteChannelData(i, CHANNEL_NUMBER_ON_BOARD, channeNumber);
}
These three items per available channel identify the channel fully.