01-30-2024 01:16 PM
using Labview 23
Infineon Cypress CY7C65215 USB-serial dual port device.
Issue 1 - FYI
Both ports identify as "USB Serial Port" - one port is for serial communication the other is for Bluetooth.
Don't know which is which. This is an internal problem for us to fix.
Issue 2:
I can send commands to (via the cypress device) to the unit under test but there is no response(as expected). The attached vi does work with XR21V1410 USB UART.
I there a setting I need to change?
I have successfully got CVI working in communicating via this Cypress device.
Thanks,
Dennis
Solved! Go to Solution.
01-31-2024 03:00 AM
Could it be that you forgot to append some termination character to your command and your device only will respond after it sees such a character at the end of a message?
01-31-2024 05:37 AM
@Dennis1956 wrote:
using Labview 23
Infineon Cypress CY7C65215 USB-serial dual port device.Issue 1 - FYI
Both ports identify as "USB Serial Port" - one port is for serial communication the other is for Bluetooth.
Don't know which is which. This is an internal problem for us to fix.Issue 2:
I can send commands to (via the cypress device) to the unit under test but there is no response(as expected). The attached vi does work with XR21V1410 USB UART.I there a setting I need to change?
I have successfully got CVI working in communicating via this Cypress device.
Thanks,
Dennis
Ad issue 1: As far as I can tell, your Infineon chip does not have bluetooth on it (https://www.infineon.com/cms/en/search.html#!term=cy7c65215), so I assume the bluetooth device is somewhere else on the board. Also, Infineon seems to provide tools to set up the behaviour of the chip (check the download section there).
Ad issue 2: Following from the assumptions made in issue 1, I recommend:
My best guess is that there is a flow control mismatch between the port and the periphery devices.
01-31-2024 11:12 AM
Why does CVI work but Labview doesn't?
01-31-2024 11:13 AM
No that's not it. Thanks anyway.
01-31-2024 11:21 AM
@Dennis1956 wrote:
Why does CVI work but Labview doesn't?
As you have not shown use the CVI program nor the LabVIEW program, all we can do is guessing and you got a few already. Dismissing them as “That’s not the problem” doesn’t add more information to offer new guesses.
02-05-2024 09:05 AM
@Dennis1956 wrote:
Why does CVI work but Labview doesn't?
You did not upload your code, so we can only guess.
Both guesses boil down to "Because the code does not do the same thing".
If you want better help, you need to first provide more details.
02-05-2024 10:35 AM
See code below
02-05-2024 11:55 AM
Could you save the write.vi in LabVIEW 2020 or older? I can't look at it on this machine otherwise. But unless you do append \r\n to your cfg command in LabVIEW that is already your problem.
In your CVI program you send "cfg\r\n". Those \r\n have a special meaning in a C program indicating control characters and corresponding to the <carriage return> and <line fee> control character.
LabVIEW can do that too, but you need to put the according string control or constant into "Display \ Codes" mode. You either forgot to append those characters in your LabVIEW string that you send to your device, or you forgot to put it into "Display \ codes" before entering those characters. A LabVIEW string displaying Normal code, does not translate those \ character composites into a special control character but treats them literally as a backslash character and the according letter.
02-05-2024 12:17 PM
That cfg command gets accepted by the UUT be the UUT does not reply with anything.