 Galli123
		
			Galli123
		
		
		
		
		
		
		
		
	
			10-03-2023 03:05 PM
Hello all,
Everything was running fine on the old PC (LBRTE 8.6.1 and NIDAQmx 9.02). After an issue with the PC the team decided to move everything to a new PC with Windows 7 installed. Once again the same run-time engine and NIDAQmx were installed. The Labview executable file open normally but the IOs and Temperatures are not OK. I did check the digital and analog data on NI MAX an everything is OK and I can even control the system. The issue then is with the Labview which is not receiving any information.
Is this something you can help me with and tell me what could be the reason causing this issue?
Thanks in advance.
 aputman
		
			aputman
		
		
		
		
		
		
		
		
	
			10-03-2023 03:14 PM
How does your code know which device to pull data from? Do you select the device in the EXE or is it looking for a device with a specific name?
 ZYOng
		
			ZYOng
		
		
		
		
		
		
		
		
	
			10-03-2023 03:57 PM
A couple of red flags:
 Kyle97330
		
			Kyle97330
		
		
		
		
		
		
		
		
	
			10-03-2023 04:33 PM
Did you do an export of NI-MAX configuration on the old system and import it on the new system to make sure everything copied over correctly?
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHceCAG&l=en-US
(the link shows examples for newer versions, but the idea is the same)
If not, do you still have the old system to try?
 GerdW
		
			GerdW
		
		
		 
		
		
		
		
		
	
			10-04-2023 01:14 AM
Hi Galli,
@Galli123 wrote:
After an issue with the PC the team decided to move everything to a new PC with Windows 7 installed.
So you replaced an outdated computer (WinXP) with a new, but also outdated computer (Win7)?
Seems the way to go nowadays… 😉
 billko
		
			billko
		
		
		
		
		
		
		
		
	
			10-04-2023 01:21 AM
@GerdW wrote:
Hi Galli,
@Galli123 wrote:
After an issue with the PC the team decided to move everything to a new PC with Windows 7 installed.
So you replaced an outdated computer (WinXP) with a new, but also outdated computer (Win7)?
Seems the way to go nowadays… 😉
I just updated an old Win7 computer to Win10 and now I have almost a full year of support! 😄
 aputman
		
			aputman
		
		
		
		
		
		
		
		
	
			10-04-2023 08:31 AM
@GerdW wrote:
Hi Galli,
@Galli123 wrote:
After an issue with the PC the team decided to move everything to a new PC with Windows 7 installed.
So you replaced an outdated computer (WinXP) with a new, but also outdated computer (Win7)?
Seems the way to go nowadays… 😉
To be honest, if I was going to upgrade to a new computer with an outdated OS, Win7 would be my choice as well.
10-05-2023 02:55 AM
Hi aputman,
Thanks for your comment. It was indeed a task with a wrong name on NI MAX (it was supposed to be a task name NI9217_task but it was NI9217 only). I did adjust and all my analog inputs are working fine.
What is now strange are the DIOs from the NI9403. It looks that all IOs are inverted. I've 30 inputs which check whether a contact relay is open or close and 2 outputs which control a heater (on/off) and a pneumatic valve (on/off). Now, if I turn on the pneumatic valve on Labview then the valve is turning off and vice versa. All inputs and outputs are like that, inverted.
When the vi was created, a couple of year ago, as you can see attached the virtual channels for the NI9403 is done in the Labview via the "Daqmx create virtual channel" and on that time was necessary to invert all the DIOs as you can also see on the attached vi picture. It was working fine like that till this pc upgrade.
As I mentioned, the executable is the same for years and it means nothing changed on that executable which can explain the Labview commands to be now inverted.
Any idea of what could be causing this issue?
Thanks in advance.
10-05-2023 03:53 AM
Hi,
No, unfortunately.
I had to add everything once again to the NI MAX. As I mentioned previously, the analog inputs are not working fine but Digital IO (all of them) are now inverted and I don't know why (explained on my previous message).
10-05-2023 07:41 AM
A typo on my last message. It should be NOW instead of NOT
the analog inputs are NOW working fine but Digital IO (all of them) are now inverted and I don't know why (explained on my previous message).