11-15-2024 08:33 AM
Hello,
In NI MAX, I can query (*IDN?) and a Magna XR Series power supply and read the right response. I have downloaded the most recent LabVIEW drivers for this power supply, but I am unable to to get the Initialize.vi to work.
I am communicating the instrument via TCPIP. The error is occurring when inputting in the property node "IO Port" as highlighted below. The output error also confirms that it's the fourth argument.
Has anyone had this issue before with an instrument driver? Does anyone have any tips on how to resolve this?
11-15-2024 08:48 AM
Run the code in Highlight and Retain values-mode. I'm not so sure you enter that case.
11-15-2024 08:50 AM
Yes, I most definitely am entering that case, Case 6.
11-15-2024 08:57 AM
@Yamaeda wrote:
Run the code in Highlight and Retain values-mode. I'm not so sure you enter that case.
Also, that coercion dots indicates that you are typecasting the line feed constant to the wrong datatype. SHOW the lable on the integer. Are you sure the device expects LF and not CR?
11-15-2024 08:59 AM
It was U32 when it should have been U8. I have fixed that, but it did not resolve my problem.
11-15-2024 09:15 AM
@_natalie_ wrote:
It was U32 when it should have been U8. I have fixed that, but it did not resolve my problem.
OK, now try running VI Annalyzer. It is difficult debugging a picture but, I don't like the looks of some of your constants! They have strange borders. This COULD be a clue that there are objects hidden underneath them (VIA tests for hidden objects and unwired constants) you also have an unwired boolean constant so, run the VIA and see if my eyeballs and 8-Ball are working today.
11-15-2024 09:20 AM
Oh, sorry. Those loose constants and what not were added when I was trying to figure out what wrong with the driver. This has been happening even with a "fresh" download of the drive. I'll attach it.
I don't think I have access to the VI Analyzer...
11-15-2024 09:41 AM - edited 11-15-2024 09:44 AM
VIA has shipped with all versions of LabVIEW for over a decade. It's under the Tools menu.
But, it's good to know my eyes are working! There really were hidden objects under those funny looking constants. 8-Ball count ++
11-15-2024 11:44 AM
What happens if you just delete the 4th element of that property node, leaving the 1st three and not setting it?
I've been using VISA over TCP/IP for quite a while and I have never set that property while using my own code (though it may have been set by drivers in some cases without me noticing...). It's not entirely clear to me what the difference is between the "normal" setting and that setting.
11-15-2024 01:14 PM
No error occurs there, but one will occur at the Visa Write.